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

FX::FXCursor Class Reference

Cursor class. More...

#include <FXCursor.h>

Inheritance diagram for FX::FXCursor:
FX::FXId FX::FXObject FX::FXCURCursor FX::FXGIFCursor

List of all members.

Public Member Functions

 FXCursor (FXApp *a, FXStockCursor curid=CURSOR_ARROW)
 Make stock cursor.
 FXCursor (FXApp *a, const FXuchar *src, const FXuchar *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!
 FXCursor (FXApp *a, const FXColor *pix, FXint w=32, FXint h=32, FXint hx=0, FXint hy=0)
 Make cursor from FXColor pixels; cursor size should be at most 32x32 for portability!
void setOptions (FXuint opts)
 Change options.
FXuint getOptions () const
 To get to the option flags.
void setOwned (FXbool owned)
 Set pixel data ownership flag.
FXbool isOwned () const
 Get pixel data ownership flag.
FXint getWidth () const
 Width of cursor; returns 0 for stock cursors.
FXint getHeight () const
 Height of cursor; returns 0 for stock cursors.
void setHotX (FXint x)
 Set hotspot x; returns 0 for stock cursors.
FXint getHotX () const
 Get hotspot x; returns 0 for stock cursors.
void setHotY (FXint y)
 Set hotspot y; returns 0 for stock cursors.
FXint getHotY () const
 Get hotspot y; returns 0 for stock cursors.
FXbool isColor () const
 Check if there is color in the cursor.
virtual void create ()
 Create cursor.
virtual void detach ()
 Detach cursor.
virtual void destroy ()
 Destroy cursor.
virtual void release ()
 Release pixels buffer if it was owned.
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.

Protected Attributes

FXColor * data
FXint width
FXint height
FXint hotx
FXint hoty
FXuint options

Detailed Description

Cursor class.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp