PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

GetHardwareCursorDrawState (csCode = 23)

GetHardwareCursorDrawState is a required routine for drivers that support hardware cursors.

OSErr = Status (theDeviceRefNum, cscGetHardwareCursorDrawState,
                     &theVDHardwareCursorDrawStateRec);
<-- csCursorX
X coordinate from last DrawHardwareCursor call
<-- csCursorY
Y coordinate from last DrawHardwareCursor call
<-- csCursorVisible
true if the cursor is visible
<-- csCursorSet
true if cursor was successfully set by the last SetHardwareCursor call

The csCursorSet parameter should be true if the last SetHardwareCursor control call was successful and false otherwise. If csCursorSet is true, the csCursorX, csCursorY, and csCursorVisible values must match the parameters passed in to the last DrawHardwareCursor control call.

After driver initialization the cursor's visible state and set state should be false. After a mode change the cursor should be made invisible but the set state should remain unchanged.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)