gdk-sharp2.8.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Describes a particular video hardware display format.
A Gdk.Visual describes a particular video hardware display
format. It includes information about the number of bits used
for each color, the way the bits are translated into an RGB
value for display, and the way the bits are stored in
memory. For example, a piece of display hardware might support
24-bit color, 16-bit color, or 8-bit color; meaning
24/16/8-bit pixel sizes. For a given pixel size, pixels can be
in different formats; for example the "red" element of an RGB
pixel may be in the top 8 bits of the pixel, or may be in the
lower 4 bits.
Usually you can avoid thinking about visuals in GTK+. Visuals
are useful to interpret the contents of a , but you should avoid GdkImage precisely
because its contents depend on the display hardware; use instead, for all but the most low-level
purposes. Also, anytime you provide a , the visual is implied as part of the
colormap (), so you won't
have to provide a visual in addition.
There are several standard visuals. The visual returned by
is the system's default
visual. return the visual most
suited to displaying full-color image data. If you use the
calls in , you should create your
windows using this visual (and the colormap returned by ).
A number of functions are provided for determining the "best"
available visual. For the purposes of making this
determination, higher bit depths are considered better, and
for visuals of the same bit depth, is preferred at 8bpp,
otherwise, the visual types are ranked in the order of
(highest to lowest) , , , , then
.
GLib.ObjectMethodGdk.VisualGet the best visual with depth depth for the default GDK screen.
A bit depth
Best visual for the given depth.
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. may be returned if no visual supports
.
MethodGdk.VisualGet the best visual of the given visual_type for the default GDK screen.
Required visual type.
Best visual of the given type
Get the best visual of the given for the default GDK screen. Visuals
with higher color depths are considered better. The return
value should not be freed. may be
returned if no visual has type .
MethodGdk.VisualGet the best visual given a visual type and a
required depth.
Required depth.
Required visual type.
Best visual of the given type and depth.
Get the best visual of the given at the given for the default GDK screen. Visuals with
higher color depths are considered better. The return
value should not be freed. may be
returned if no visual that match the type and .
ConstructorInternal constructor
Pointer to the C object.
This is an internal constructor, and should not be used by user code.PropertyGdk.VisualTypeBest visual type for the default Gdk screenThe best visual type available.Return the best available visual type for the default GDK screen.PropertySystem.Int32Best depth for the default Gdk screen.The best depth
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.
PropertyGdk.VisualVisual with the most available colors for the default GDK screen.The best visual.Get the visual with the most available colors for the default GDK screen. PropertyGdk.VisualThe system'sdefault visual for the default GDK
screen.The system visualGet the system'sdefault visual for the default GDK
screen. This is the visual for the root window of the
display.PropertyGdk.ScreenGets the screen to which this visual belongs.The to which this visual belongs.None.PropertyGLib.GTypeGType Property.a Returns the native value for .ConstructorProtected Constructor.
a Chain to this constructor if you have manually registered a native value for your subclass.System.Obsolete(Message=null, IsError=False)ConstructorDefault constructor.None.