FX::FXBitmap Class Reference

#include <FXBitmap.h>

Inheritance diagram for FX::FXBitmap:

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

Detailed Description

A Bitmap is a rectangular array of pixels. It supports two representations of these pixels: a client-side pixel buffer, and a server-side pixmap which is stored in an organization directly compatible with the screen, for fast drawing onto the device. The server-side representation is not directly accessible from the current process as it lives in the process of the X Server or GDI. The client-side pixel array is of size height x (width+7)/8 bytes, in other words 8 pixels packed into a single byte, starting at bit 0 on the left.

Definition at line 57 of file FXBitmap.h.

Public Member Functions

 FXBitmap (FXApp *a, const void *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1)
void setOptions (FXuint opts)
FXuint getOptions () const
virtual void setData (FXuchar *pix, FXuint opts=0)
virtual void setData (FXuchar *pix, FXuint opts, FXint w, FXint h)
FXuchargetData () const
FXbool getPixel (FXint x, FXint y) const
void setPixel (FXint x, FXint y, FXbool color)
virtual void create ()
virtual void detach ()
virtual void destroy ()
virtual void restore ()
virtual void render ()
virtual void release ()
virtual void resize (FXint w, FXint h)
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, FXbool color=0)
virtual void fill (FXbool color)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual bool savePixels (FXStream &store) const
virtual bool loadPixels (FXStream &store)
virtual ~FXBitmap ()
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

 FXBitmap ()

Protected Attributes

FXuchardata
FXint bytewidth
FXuint options
FXVisualvisual
FXint width
FXint height
FXID xid

Friends

class FXDC
class FXDCWindow


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:32:43 2009 for TnFOX by doxygen v1.4.7