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

FX::FXBMPIcon Class Reference

#include <FXBMPIcon.h>

Inheritance diagram for FX::FXBMPIcon:
FX::FXIcon FX::FXImage FX::FXDrawable FX::FXId FX::FXObject

Public Member Functions

 FXBMPIcon (FXApp *a, const void *pix=NULL, FXColor clr=FXRGB(192, 192, 192), FXuint opts=0, FXint w=1, FXint h=1)
 
virtual bool savePixels (FXStream &store) const
 
virtual bool loadPixels (FXStream &store)
 
virtual ~FXBMPIcon ()
 
- Public Member Functions inherited from FX::FXIcon
 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 ()
 
- Public Member Functions inherited from FX::FXImage
 FXImage (FXApp *a, const FXColor *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1)
 
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 ~FXImage ()
 
- Public Member Functions inherited from FX::FXDrawable
FXint getWidth () const
 
FXint getHeight () const
 
FXVisualgetVisual () const
 
void setVisual (FXVisual *vis)
 
virtual ~FXDrawable ()
 
- 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 ()
 

Static Public Attributes

static const FXchar fileExt []
 
static const FXchar mimeType []
 

Detailed Description

The BMP Icon class is a convenience class for working with icons in the Microsoft Bitmap (.bmp) graphics file format.

This makes it possible to use resources created with Windows development tools inside FOX without need for graphics file format translators. The bitmap loaded handles 1, 4, and 8 bit paletted bitmaps, 16 and 24 bit RGB bitmaps, and 32 bit RGBA bitmaps.

Constructor & Destructor Documentation

FX::FXBMPIcon::FXBMPIcon ( FXApp a,
const void *  pix = NULL,
FXColor  clr = FXRGB(192, 192, 192),
FXuint  opts = 0,
FXint  w = 1,
FXint  h = 1 
)

Construct icon from memory stream formatted in Microsoft BMP format.

virtual FX::FXBMPIcon::~FXBMPIcon ( )
virtual

Destroy icon.

Member Function Documentation

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

Save pixels into stream in Microsoft bitmap format.

Reimplemented from FX::FXImage.

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

Load pixels from stream in Microsoft bitmap format.

Reimplemented from FX::FXImage.

Member Data Documentation

const FXchar FX::FXBMPIcon::fileExt[]
static
const FXchar FX::FXBMPIcon::mimeType[]
static

Copyright © 1997-2005 Jeroen van der Zijp