logo top
Main Page   Widgets   Namespaces   Book  

Gdk::Visual Class Reference

Inheritance diagram for Gdk::Visual:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~Visual ()
GdkVisual* gobj ()
const GdkVisual* gobj () const
GdkVisual* gobj_copy ()

Static Public Methods

Glib::RefPtr<Visual> get_system ()
 Get the default or system visual for the default GDK display.

Glib::RefPtr<Visual> get_best ()
 Get the visual with the most available colors for the default GDK display.

Glib::RefPtr<Visual> get_best (int depth)
 Get the best visual with depth depth for the default GDK display.

Glib::RefPtr<Visual> get_best (VisualType visual_type)
 Get the best visual of the given visual_type for the default GDK display.

Glib::RefPtr<Visual> get_best (int depth, VisualType visual_type)
 Combines gdk_visual_get_best_with_depth() and gdk_visual_get_best_with_type().

int get_best_depth ()
 Get the best available depth for the default GDK display.

VisualType get_best_type ()
 Return the best available visual type (the one with the most colors) for the default GDK display.


Protected Methods

 Visual ()

Related Functions

(Note that these are not member functions.)

Glib::RefPtr<Gdk::Visual> wrap (GdkVisual* object, bool take_copy=false)

Constructor & Destructor Documentation

virtual Gdk::Visual::~Visual (   [virtual]
 

Gdk::Visual::Visual (   [protected]
 


Member Function Documentation

Glib::RefPtr<Visual> Gdk::Visual::get_best ( int    depth,
VisualType    visual_type
[static]
 

Combines gdk_visual_get_best_with_depth() and gdk_visual_get_best_with_type().

Parameters:
depth A bit depth.
visual_type A visual type.
Returns:
Best visual with both depth and visual_type, or 0 if none.

Glib::RefPtr<Visual> Gdk::Visual::get_best ( VisualType    visual_type [static]
 

Get the best visual of the given visual_type for the default GDK display.

Visuals with higher color depths are considered better. The return value should not be freed. 0 may be returned if no visual has type visual_type.

Parameters:
visual_type A visual type.
Returns:
Best visual of the given type.

Glib::RefPtr<Visual> Gdk::Visual::get_best ( int    depth [static]
 

Get the best visual with depth depth for the default GDK display.

Color visuals and visuals with mutable colormaps are preferred over grayscale or fixed-colormap visuals. The return value should not be freed. 0 may be returned if no visual supports depth.

Parameters:
depth A bit depth.
Returns:
Best visual for the given depth.

Glib::RefPtr<Visual> Gdk::Visual::get_best (   [static]
 

Get the visual with the most available colors for the default GDK display.

The return value should not be freed.

Returns:
Best visual.

int Gdk::Visual::get_best_depth (   [static]
 

Get the best available depth for the default GDK display.

"Best" means "largest," i.e. 32 preferred over 24 preferred over 8 bits per pixel.

Returns:
Best available depth.

VisualType Gdk::Visual::get_best_type (   [static]
 

Return the best available visual type (the one with the most colors) for the default GDK display.

Returns:
Best visual type.

Glib::RefPtr<Visual> Gdk::Visual::get_system (   [static]
 

Get the default or system visual for the default GDK display.

This is the visual for the root window of the display. The return value should not be freed.

Returns:
System visual.

const GdkVisual* Gdk::Visual::gobj (   const [inline]
 

Reimplemented from Glib::ObjectBase.

GdkVisual* Gdk::Visual::gobj (   [inline]
 

Reimplemented from Glib::ObjectBase.

GdkVisual* Gdk::Visual::gobj_copy (  
 


Friends And Related Function Documentation

Glib::RefPtr<Gdk::Visual> wrap ( GdkVisual*    object,
bool    take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm by Doxygen 1.3-rc1 © 1997-2001