[Previous] [Contents] [Index] [Next]

PhBlit()

Blit an area within a region

Synopsis:

int PhBlit( PhRid_t rid, 
            const PhRect_t *rect,
            const PhPoint_t *offset );

Description:

This function "blits" the area that is defined by rect and whose origin is defined by the origin of the region specified by rid. The area is blitted by the given offset. Other windows aren't affected by the blit.

Returns:

0
Success.
-1
The blit failed, possibly because rid was incorrect or the Photon Manager wasn't running.

Examples:

PhRect_t rect = { 10,10,20,20};
PhPoint_t offset = { -5, 5 };
PhRect_t exposed = { 15, 10, 20, 15 };

// Blit the area bounded by (10,10), (20,20) 
// five pixels left and five pixels down.

PhBlit( PtWidgetRid( region_widget ), &rect, &offset );
PtDamageExtent( region_widget, &exposed );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtWidgetRid()


[Previous] [Contents] [Index] [Next]