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 List of all members.

Public Member Functions

 FXVisual (FXApp *a, FXuint flgs, FXuint d=32)
FXVisualType getType () const
virtual void create ()
virtual void detach ()
virtual void destroy ()
FXuint getFlags () const
FXuint getDepth () const
FXuint getNumColors () const
FXuint getNumRed () const
FXuint getNumGreen () const
FXuint getNumBlue () const
FXPixel getPixel (FXColor clr)
FXColor getColor (FXPixel pix)
void setMaxColors (FXuint maxcols)
FXuint getMaxColors () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXVisual ()

Detailed Description

Visual describes pixel format of a drawable.

See also:


Constructor & Destructor Documentation

FX::FXVisual::FXVisual FXApp a,
FXuint  flgs,
FXuint  d = 32
 

Construct default visual.

virtual FX::FXVisual::~FXVisual  )  [virtual]
 

Destructor.


Member Function Documentation

FXVisualType FX::FXVisual::getType  )  const [inline]
 

Get visual type.

virtual void FX::FXVisual::create  )  [virtual]
 

Create visual.

Reimplemented from FX::FXId.

Reimplemented in FX::FXGLVisual.

virtual void FX::FXVisual::detach  )  [virtual]
 

Detach visual.

Reimplemented from FX::FXId.

Reimplemented in FX::FXGLVisual.

virtual void FX::FXVisual::destroy  )  [virtual]
 

Destroy visual.

Reimplemented from FX::FXId.

Reimplemented in FX::FXGLVisual.

FXuint FX::FXVisual::getFlags  )  const [inline]
 

Get flags (see FXVisualOptions).

FXuint FX::FXVisual::getDepth  )  const [inline]
 

Get depth, i.e. number of significant bits in color representation.

FXuint FX::FXVisual::getNumColors  )  const [inline]
 

Get number of colors.

FXuint FX::FXVisual::getNumRed  )  const [inline]
 

Get number of reds.

FXuint FX::FXVisual::getNumGreen  )  const [inline]
 

Get number of greens.

FXuint FX::FXVisual::getNumBlue  )  const [inline]
 

Get number of blues.

FXPixel FX::FXVisual::getPixel FXColor  clr  ) 
 

Get device pixel value for color.

FXColor FX::FXVisual::getColor FXPixel  pix  ) 
 

Get color value for device pixel value.

void FX::FXVisual::setMaxColors FXuint  maxcols  ) 
 

Set maximum number of colors to allocate.

FXuint FX::FXVisual::getMaxColors  )  const [inline]
 

Get maximum number of colors.

virtual void FX::FXVisual::save FXStream store  )  const [virtual]
 

Save visual information to a stream.

Reimplemented from FX::FXId.

Reimplemented in FX::FXGLVisual.

virtual void FX::FXVisual::load FXStream store  )  [virtual]
 

Load visual information from a stream.

Reimplemented from FX::FXId.

Reimplemented in FX::FXGLVisual.

Copyright © 1997-2005 Jeroen van der Zijp