Gtk-- Reference: Gdk_Visual

Class Index | Cross Index | Namespace Index

# Class Gdk_Visual

Gdk Visual Handle
Contained in: global
Derived from: Gdk_Handle
Derived by: none

#include <gtk--/visual.h>

### public function member index:
`` | `Gdk_Visual` | `()`;
`` | `Gdk_Visual` | `(`GdkVisual`* `visual`)`;
`` | `Gdk_Visual` | `(`const` `Gdk_Visual`& `visual`)`;
``Gdk_Visual`&` | `get_best` | `(`void`)`;
``Gdk_Visual`&` | `get_best` | `(`gint` `depth`)`;
``Gdk_Visual`&` | `get_best` | `(`GdkVisualType` `visual_type`)`;
``Gdk_Visual`&` | `get_best` | `(`gint` `depth`, `GdkVisualType` `visual_type`)`;
``static` `gint`` | `get_best_depth` | `(`void`)`;
``static` `GdkVisualType`` | `get_best_type` | `(`void`)`;
``Gdk_Visual`&` | `get_system` | `(`void`)`;
``Gdk_Visual`&` | `operator``=` | `(`const` `Gdk_Visual`&)`;
``void`` | `release` | `()`;
`` | `~Gdk_Visual` | `()`;
### protected function member index:
``void`` | `ref` | `()`;
``void`` | `unref` | `()`;
### private function member index:
``void`` | `create` | `()`;

## Description:

Visual refers to the properties of a display that are assocuated with a window. Visuals can not be changed. They are given by the system to be used.

## Function Member Descriptions:

Gdk_Visual::Gdk_Visual - Create an unconnect Visual Handle.

`` `Gdk_Visual``()`;
Gdk_Visual::Gdk_Visual - Wrap an existing GdkVisual.

`` `Gdk_Visual``(`GdkVisual`* `visual`)`;
Gdk_Visual::Gdk_Visual - Initialize a Visual reference from a existing one.

`` `Gdk_Visual``(`const` `Gdk_Visual`& `visual`)`;
Gdk_Visual::create - Create a visual.

``void`` `create``()`;

> You can't create a visual! You must ask the system for one! Use the get functions.

Gdk_Visual::get_best_depth - Returns the best available depth for this display

``static` `gint`` `get_best_depth``(`void`)`;
Gdk_Visual::get_best_type - Returns the best available type for this display

``static` `GdkVisualType`` `get_best_type``(`void`)`;
Gdk_Visual::ref - (internal function) increment gdk reference counter

``void`` `ref``()`;
Gdk_Visual::unref - (internal function) decrement gdk reference counter

``void`` `unref``()`;
Gdk_Visual::~Gdk_Visual - Delete this handle.

`` `~Gdk_Visual``()`;