FX::FXIcon Class Reference

#include <FXIcon.h>

Inheritance diagram for FX::FXIcon:

FX::FXImage FX::FXDrawable FX::FXId FX::FXObject FX::FXBMPIcon FX::FXGIFIcon FX::FXICOIcon FX::FXIFFIcon FX::FXJPGIcon FX::FXPCXIcon FX::FXPNGIcon FX::FXPPMIcon FX::FXRASIcon FX::FXRGBIcon FX::FXTGAIcon FX::FXTIFIcon FX::FXXBMIcon FX::FXXPMIcon List of all members.

Detailed Description

An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask those pixels where the background should be preserved during the drawing, and a etch bitmap, which is used to draw the icon when it is disabled.

Definition at line 45 of file FXIcon.h.

Public Member Functions

 FXIcon (FXApp *a, const FXColor *pix=NULL, FXColor clr=0, FXuint opts=0, FXint w=1, FXint h=1)
virtual void create ()
virtual void detach ()
virtual void destroy ()
virtual void render ()
virtual void resize (FXint w, FXint h)
FXColor getTransparentColor () const
void setTransparentColor (FXColor color)
virtual ~FXIcon ()
void setOptions (FXuint opts)
FXuint getOptions () const
virtual void setData (FXColor *pix, FXuint opts=0)
virtual void setData (FXColor *pix, FXuint opts, FXint w, FXint h)
FXColorgetData () const
FXColor getPixel (FXint x, FXint y) const
void setPixel (FXint x, FXint y, FXColor color)
bool hasAlpha () const
virtual void restore ()
virtual void release ()
virtual void scale (FXint w, FXint h, FXint quality=0)
virtual void mirror (bool horizontal, bool vertical)
virtual void rotate (FXint degrees)
virtual void crop (FXint x, FXint y, FXint w, FXint h, FXColor color=0)
virtual void fill (FXColor color)
virtual void fade (FXColor color, FXint factor=255)
virtual void xshear (FXint shear, FXColor clr=0)
virtual void yshear (FXint shear, FXColor clr=0)
virtual void hgradient (FXColor left, FXColor right)
virtual void vgradient (FXColor top, FXColor bottom)
virtual void gradient (FXColor topleft, FXColor topright, FXColor bottomleft, FXColor bottomright)
virtual void blend (FXColor color)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual bool savePixels (FXStream &store) const
virtual bool loadPixels (FXStream &store)
FXint getWidth () const
FXint getHeight () const
FXVisualgetVisual () const
void setVisual (FXVisual *vis)
FXAppgetApp () const
FXEventLoopgetEventLoop () const
FXID id () const
void setUserData (void *ptr)
void * getUserData () const
virtual long onDefault (FXObject *, FXSelector, void *)
const FXchargetClassName () const
bool isMemberOf (const FXMetaClass *metaclass) const
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const

Protected Member Functions

 FXIcon ()
FXColor guesstransp ()

Protected Attributes

FXID shape
FXID etch
FXColor transp
FXColordata
FXuint options
FXVisualvisual
FXint width
FXint height
FXID xid

Friends

class FXDC
class FXWindow
class FXDCWindow
class FXDrawable
class FXTopWindow


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:34:22 2009 for TnFOX by doxygen v1.4.7