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

FX::FXCursor Class Reference

#include <FXCursor.h>

Inheritance diagram for FX::FXCursor:

FX::FXId FX::FXObject FX::FXCURCursor FX::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=0, FXint hy=0)
 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 FXbool savePixels (FXStream &store) const
 Save pixel data only.

virtual FXbool 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.


Detailed Description

Cursor class

See also: