This class represents the specification for a cursor that moves in tandem with the mouse or other pointing device.
![]() | PCursor () Create a standard arrow cursor. |
![]() | PCursor ( PRESOURCE_ID resID ) Create a cursor as loaded from the resources for the application. |
![]() | PCursor ( const PPixelImage & andMask, const PPixelImage & xorMask, const PPoint & hotSpot ) Create a cursor from the raw pixel images. |
![]() | Compare ( const PObject & obj ) const Determine if the two cursors are the same. |
![]() | Overrides from class PObject |
Construction
Common functions for containers
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This class represents the specification for a cursor that moves in tandem with the mouse or other pointing device.An instance of a cursor is attached to every PInteractor class and is automatically made current whenever the mouse is over that interactor.
A cursor consists of a small pixel image that interacts with the screen to yield transparent parts and or inverted parts as well as fixed colour image parts.
Pixels on the screen are determined by applying the and mask to it, then
the xor mask. Thus pixels can be transparent, inverted, cleared or set
as required. The hot spot is the poin within the cursor bit map that is the actual
cursor position, eg the point of the arrow cursor, the centre of a
cross hair cursor etc.
PCursor( PRESOURCE_ID resID )
PCursor( const PPixelImage & andMask, const PPixelImage & xorMask, const PPoint & hotSpot )
xorMask - Value for pixels in the cursor.
hotSpot - Hot spot relative to corner of bit map Overrides from class PObject
virtual Comparison Compare( const PObject & obj ) const
Alphabetic index HTML hierarchy of classes or Java