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

FX::FXPNGIcon Class Reference

Portable Network Graphics (PNG) Icon class. More...

#include <FXPNGIcon.h>

Inheritance diagram for FX::FXPNGIcon:

FX::FXIcon FX::FXImage FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXPNGIcon (FXApp *a, const void *pix=NULL, FXColor clr=FXRGB(192, 192, 192), FXuint opts=0, FXint w=1, FXint h=1)
virtual FXbool savePixels (FXStream &store) const
virtual FXbool loadPixels (FXStream &store)
virtual ~FXPNGIcon ()

Static Public Attributes

const FXchar fileExt []
const FXbool supported

Detailed Description

Portable Network Graphics (PNG) Icon class.


Constructor & Destructor Documentation

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

Construct an icon from memory stream formatted in PNG format.

virtual FX::FXPNGIcon::~FXPNGIcon  )  [virtual]
 

Destroy.


Member Function Documentation

virtual FXbool FX::FXPNGIcon::savePixels FXStream store  )  const [virtual]
 

Save pixels into stream in PNG format.

Reimplemented from FX::FXImage.

virtual FXbool FX::FXPNGIcon::loadPixels FXStream store  )  [virtual]
 

Load pixels from stream in PNG format.

Reimplemented from FX::FXImage.


Member Data Documentation

const FXbool FX::FXPNGIcon::supported [static]
 

True if format is supported.

Copyright © 1997-2005 Jeroen van der Zijp