Icon class
Inheritance:
Public Methods
-
FXIcon(FXApp* a, const void* pix=NULL, FXColor clr=0, FXuint opts=0, FXint w=1, FXint h=1)
- Create an icon with an initial pixel buffer pix, a transparent color clr, and options as in FXImage
-
virtual void create()
- Create the icon resource
-
virtual void detach()
- Detach the icon resource
-
virtual void destroy()
- Destroy the icon resource
-
virtual void render()
- Render the image from client-side pixel buffer
-
virtual void resize(FXint w, FXint h)
- Resize pixmap to the specified width and height
-
FXColor getTransparentColor() const
- Obtain transparency color
-
void setTransparentColor(FXColor color)
- Change transparency color
-
virtual ~FXIcon()
- Destructor
Inherited from FXImage:
Public Methods
-
FXuchar* getData() const
-
FXuint getOptions() const
-
void setOptions(FXuint opts)
-
FXint getChannels() const
-
FXColor getPixel(FXint x, FXint y) const
-
void setPixel(FXint x, FXint y, FXColor color)
-
virtual void restore()
-
virtual void scale(FXint w, FXint h)
-
virtual void mirror(FXbool horizontal, FXbool vertical)
-
virtual void rotate(FXint degrees)
-
virtual void crop(FXint x, FXint y, FXint w, FXint h)
-
virtual void save(FXStream& store) const
-
virtual void load(FXStream& store)
-
virtual void savePixels(FXStream& store) const
-
virtual void loadPixels(FXStream& store)
Public Methods
-
FXint getWidth() const
-
FXint getHeight() const
-
FXVisual* getVisual() const
-
void setVisual(FXVisual* vis)
Inherited from FXId:
Public Methods
-
FXApp* getApp() const
-
FXID id() const
-
void setUserData(void* ptr)
-
void* getUserData() const
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
Documentation
Icon class
FXIcon(FXApp* a, const void* pix=NULL, FXColor clr=0, FXuint opts=0, FXint w=1, FXint h=1)
-
Create an icon with an initial pixel buffer pix, a transparent color clr,
and options as in FXImage
virtual void create()
- Create the icon resource
virtual void detach()
- Detach the icon resource
virtual void destroy()
- Destroy the icon resource
virtual void render()
- Render the image from client-side pixel buffer
virtual void resize(FXint w, FXint h)
- Resize pixmap to the specified width and height
FXColor getTransparentColor() const
- Obtain transparency color
void setTransparentColor(FXColor color)
- Change transparency color
virtual ~FXIcon()
- Destructor
- Direct child classes:
- FXXPMIcon
FXTIFIcon
FXTGAIcon
FXRGBIcon
FXPNGIcon
FXPCXIcon
FXJPGIcon
FXICOIcon
FXGIFIcon
FXBMPIcon
- Friends:
- class FXDCWindow
class FXDrawable
class FXTopWindow
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.