![]() |

Public Methods | |
| virtual | ~Visual () |
| GdkVisual* | gobj () |
| Provides access to the underlying C GObject. | |
| const GdkVisual* | gobj () const |
| Provides access to the underlying C GObject. | |
| GdkVisual* | gobj_copy () |
| Glib::RefPtr<Screen> | get_screen () |
| Gets the screen to which this visual belongs. | |
| Glib::RefPtr<const Screen> | get_screen () const |
| Gets the screen to which this visual belongs. | |
Static Public Methods | |
| Glib::RefPtr<Visual> | get_system () |
| Get the system'sdefault visual for the default GDK screen. | |
| Glib::RefPtr<Visual> | get_best () |
| Get the visual with the most available colors for the default GDK screen. | |
| Glib::RefPtr<Visual> | get_best (int depth) |
| Get the best visual with depth depth for the default GDK screen. | |
| Glib::RefPtr<Visual> | get_best (VisualType visual_type) |
| Get the best visual of the given visual_type for the default GDK screen. | |
| 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 screen. | |
| VisualType | get_best_type () |
| Return the best available visual type for the default GDK screen. | |
Protected Methods | |
| Visual () | |
Related Functions | |
| (Note that these are not member functions.) | |
| Glib::RefPtr<Gdk::Visual> | wrap (GdkVisual* object, bool take_copy=false) |
|
|
|
|
|
|
|
||||||||||||
|
Combines gdk_visual_get_best_with_depth() and gdk_visual_get_best_with_type().
|
|
|
Get the best visual of the given visual_type for the default GDK screen.
Visuals with higher color depths are considered better. The return value should not be freed.
|
|
|
Get the best visual with depth depth for the default GDK screen.
Color visuals and visuals with mutable colormaps are preferred over grayscale or fixed-colormap visuals. The return value should not be freed.
|
|
|
Get the visual with the most available colors for the default GDK screen. The return value should not be freed.
|
|
|
Get the best available depth for the default GDK screen. "Best" means "largest," i.e. 32 preferred over 24 preferred over 8 bits per pixel.
|
|
|
Return the best available visual type for the default GDK screen.
|
|
|
Gets the screen to which this visual belongs.
|
|
|
Gets the screen to which this visual belongs.
|
|
|
Get the system'sdefault visual for the default GDK screen. This is the visual for the root window of the display. The return value should not be freed.
|
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
|
|
|
||||||||||||
|
|