Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXCursor Class Reference

Cursor class.

#include <FXCursor.h>

Inheritance diagram for FXCursor:

FXId FXObject FXCURCursor FXGIFCursor List of all members.

Public Methods

 FXCursor (FXApp *a, FXStockCursor curid=CURSOR_ARROW)
 Make stock cursor.

 FXCursor (FXApp *a, const void *src, const void *msk, FXint w=32, FXint h=32, FXint hx=-1, FXint hy=-1)
 Make cursor from source and mask; cursor size should at most 32x32 for portability!

FXint getWidth () const
 Width of cursor.

FXint getHeight () const
 Height or cursor.

FXint getHotX () const
 Get hotspot x.

FXint getHotY () const
 Get hotspot y.

virtual void create ()
 Create cursor.

virtual void detach ()
 Detach cursor.

virtual void destroy ()
 Destroy cursor.

virtual void savePixels (FXStream &store) const
 Save pixel data only.

virtual void loadPixels (FXStream &store)
 Load pixel data only.

virtual void save (FXStream &store) const
 Save cursor to a stream.

virtual void load (FXStream &store)
 Load cursor from a stream.

virtual ~FXCursor ()
 Destructor.