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

Public Member Functions

 FXCursor (FXApp *a, FXStockCursor curid=CURSOR_ARROW)
 
 FXCursor (FXApp *a, const FXuchar *src, const FXuchar *msk, FXint w=32, FXint h=32, FXint hx=0, FXint hy=0)
 
 FXCursor (FXApp *a, const FXColor *pix, FXint w=32, FXint h=32, FXint hx=0, FXint hy=0)
 
FXint getWidth () const
 
FXint getHeight () const
 
void setHotX (FXint x)
 
FXint getHotX () const
 
void setHotY (FXint y)
 
FXint getHotY () const
 
bool isColor () const
 
virtual void create ()
 
virtual void detach ()
 
virtual void destroy ()
 
virtual void release ()
 
virtual bool savePixels (FXStream &store) const
 
virtual bool loadPixels (FXStream &store)
 
virtual void save (FXStream &store) const
 
virtual void load (FXStream &store)
 
virtual ~FXCursor ()
 
- Public Member Functions inherited from FX::FXId
FXAppgetApp () const
 
FXID id () const
 
void setUserData (void *ptr)
 
void * getUserData () const
 
virtual ~FXId ()
 
- Public Member Functions inherited from FX::FXObject
virtual long onDefault (FXObject *, FXSelector, void *)
 
const FXchargetClassName () const
 
bool isMemberOf (const FXMetaClass *metaclass) const
 
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 
virtual ~FXObject ()
 

Detailed Description

Cursor class.

See also:

Constructor & Destructor Documentation

FX::FXCursor::FXCursor ( FXApp a,
FXStockCursor  curid = CURSOR_ARROW 
)

Make stock cursor.

FX::FXCursor::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!

FX::FXCursor::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!

virtual FX::FXCursor::~FXCursor ( )
virtual

Destructor.

Member Function Documentation

FXint FX::FXCursor::getWidth ( ) const
inline

Width of cursor; returns 0 for stock cursors.

FXint FX::FXCursor::getHeight ( ) const
inline

Height of cursor; returns 0 for stock cursors.

void FX::FXCursor::setHotX ( FXint  x)
inline

Set hotspot x; returns 0 for stock cursors.

FXint FX::FXCursor::getHotX ( ) const
inline

Get hotspot x; returns 0 for stock cursors.

void FX::FXCursor::setHotY ( FXint  y)
inline

Set hotspot y; returns 0 for stock cursors.

FXint FX::FXCursor::getHotY ( ) const
inline

Get hotspot y; returns 0 for stock cursors.

bool FX::FXCursor::isColor ( ) const

Check if there is color in the cursor.

virtual void FX::FXCursor::create ( )
virtual

Create cursor.

Reimplemented from FX::FXId.

virtual void FX::FXCursor::detach ( )
virtual

Detach cursor.

Reimplemented from FX::FXId.

virtual void FX::FXCursor::destroy ( )
virtual

Destroy cursor.

Reimplemented from FX::FXId.

virtual void FX::FXCursor::release ( )
virtual

Release pixels buffer if it was owned.

virtual bool FX::FXCursor::savePixels ( FXStream store) const
virtual

Save pixel data only.

Reimplemented in FX::FXGIFCursor, and FX::FXCURCursor.

virtual bool FX::FXCursor::loadPixels ( FXStream store)
virtual

Load pixel data only.

Reimplemented in FX::FXGIFCursor, and FX::FXCURCursor.

virtual void FX::FXCursor::save ( FXStream store) const
virtual

Save cursor to a stream.

Reimplemented from FX::FXId.

virtual void FX::FXCursor::load ( FXStream store)
virtual

Load cursor from a stream.

Reimplemented from FX::FXId.

Copyright © 1997-2005 Jeroen van der Zijp