Functions |
|
Rt2dObject * | Rt2dPickRegionCreate (void) |
RwBool | Rt2dPickRegionDestroy (Rt2dObject *pickRegion) |
Rt2dPath * | Rt2dPickRegionGetPath (Rt2dObject *pickRegion) |
RwBool | Rt2dPickRegionIsPointIn (Rt2dObject *pickRegion, RwV2d *point) |
Rt2dObject * | Rt2dPickRegionStreamWrite (Rt2dObject *pickRegion, RwStream *stream) |
RwUInt32 | Rt2dPickRegionStreamGetSize (Rt2dObject *pickRegion) |
Rt2dObject * | Rt2dPickRegionStreamRead (RwStream *stream) |
A pick region is an invisible area on a screen. Pick regions can be used as buttons and clickable areas on a screen. Pick regions can also be used in conjunction with shapes and added to a scene.
|
Rt2dPickRegionCreate creates a pick region object. To create a new pick region:
|
|
Rt2dPickRegionDestroy Destroys a pick region object.
|
|
Rt2dPickRegionGetPath Returns the local definition of the pick region path.
|
|
Rt2dPickRegionIsPointIn Checks if a point is in the pick region. The last 'render' operation provides the background for the positioning of the pick region.
|
|
Rt2dPickRegionStreamGetSize is used to determine the size in bytes of the binary representation of the given pick region. This value is used in the binary chunk header to indicate the size of the chunk. The size does include the size of the chunk header.
|
|
Rt2dPickRegionStreamRead is used to read a pick region from the specified binary stream. Note that prior to this function call, a binary pick region chunk must be found in the stream using the RwStreamFindChunk API function. The sequence to locate and read a pick region from a binary stream is as follows: RwStream *stream; Rt2dObject *newPickRegion; stream = RwStreamOpen(rwSTREAMFILENAME, rwSTREAMREAD, "mybinary.xxx"); if( stream ) { if( RwStreamFindChunk(stream, rwID_2DPICKREGION, NULL, NULL) ) { newPickRegion = Rt2dPickRegionStreamRead(stream); } RwStreamClose(stream, NULL); }
|
|
Rt2dPickRegionStreamWrite is used to write the specified pick region to the given binary stream. Note that the stream will have been opened prior to this function call.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |