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

FX::FXVisual Class Reference

Visual describes pixel format of a drawable. More...

#include <FXVisual.h>

Inheritance diagram for FX::FXVisual:
FX::FXId FX::FXObject FX::FXGLVisual

Public Types

enum  {
  Unknown, Mono, Gray, Index,
  Color
}
 Visual types. More...
 

Public Member Functions

 FXVisual (FXApp *a, FXuint flgs=VISUAL_DEFAULT, FXuint hnt=32)
 Construct visual.
 
FXuchar getType () const
 Get visual type.
 
void * getVisual () const
 Get visual or pixel format.
 
virtual void create ()
 Create visual.
 
virtual void detach ()
 Detach visual.
 
virtual void destroy ()
 Destroy visual.
 
void setFlags (FXuint flgs)
 Change option flags.
 
FXuint getFlags () const
 Get option flags.
 
void setHint (FXuint hnt)
 Change hints.
 
FXuint getHint () const
 Get hints.
 
FXuint getDepth () const
 Get depth, i.e. number of significant bits in color representation.
 
FXuint getNumColors () const
 Get number of colors.
 
FXuint getNumRed () const
 Get number of reds.
 
FXuint getNumGreen () const
 Get number of greens.
 
FXuint getNumBlue () const
 Get number of blues.
 
FXPixel getPixel (FXColor clr)
 Get device pixel value for color.
 
FXColor getColor (FXPixel pix)
 Get color value for device pixel value.
 
void setMaxColors (FXuint maxcols)
 Set maximum number of colors to allocate.
 
FXuint getMaxColors () const
 Get maximum number of colors.
 
virtual void save (FXStream &store) const
 Save visual information to a stream.
 
virtual void load (FXStream &store)
 Load visual information from a stream.
 
virtual ~FXVisual ()
 Destructor.
 
- Public Member Functions inherited from FX::FXId
FXAppgetApp () const
 Get application.
 
FXID id () const
 Get XID handle.
 
void setUserData (FXptr ptr)
 Set user data pointer.
 
FXptr getUserData () const
 Get user data pointer.
 
virtual ~FXId ()
 Destructor.
 
- Public Member Functions inherited from FX::FXObject
const FXchar * getClassName () const
 Get class name of some object.
 
FXbool isMemberOf (const FXMetaClass *metaclass) const
 Check if object is member of metaclass.
 
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 Try handle message safely, catching certain exceptions.
 
virtual long onDefault (FXObject *, FXSelector, void *)
 Called for unhandled messages.
 
virtual ~FXObject ()
 Virtual destructor.
 

Protected Member Functions

void setuptruecolor ()
 
void setupdirectcolor ()
 
void setuppseudocolor ()
 
void setupstaticcolor ()
 
void setupgrayscale ()
 
void setupstaticgray ()
 
void setuppixmapmono ()
 
void setupcolormap ()
 
void * setupgc (FXbool)
 
- Protected Member Functions inherited from FX::FXId
 FXId (FXApp *a)
 

Protected Attributes

void * visual
 
FXID colormap
 
FXuint maxcolors
 
FXuint numcolors
 
FXuint numred
 
FXuint numgreen
 
FXuint numblue
 
FXuint depth
 
FXuint flags
 
FXuint hint
 
FXuchar type
 
FXbool freemap
 
void * scrollgc
 
void * gc
 
FXPixel rpix [16][256]
 
FXPixel gpix [16][256]
 
FXPixel bpix [16][256]
 
FXPixel lut [256]
 
- Protected Attributes inherited from FX::FXId
FXID xid
 

Friends

class FXApp
 
class FXWindow
 
class FXImage
 
class FXIcon
 
class FXBitmap
 
class FXDCWindow
 
class FXGLCanvas
 
class FXGLContext
 

Detailed Description

Visual describes pixel format of a drawable.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Visual types.

Enumerator
Mono 

Undetermined visual type.

Gray 

Monochrome 1 bit/pixel.

Index 

Gray scale color.

Color 

Index color.

True color


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp