GObject.Object
Gdk.Visual
Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-3.0.gir |
C documentation: | GdkVisual |
Class : | Visual |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Visual
()
Create a new Gdk.Visual
Create a new Gdk.Visual
|
||
Gdk.Visual.get_best
()
:
Gdk.Visual
Get the visual with the most available colors for the default
GDK screen.
Get the visual with the most available colors for the default
GDK screen. The return value should not be freed.
|
Gdk.Visual | |
Gdk.Visual.get_best_depth
()
:
gint32
Get the best available depth for the default GDK screen.
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.
|
Gdk.Visual | |
Gdk.Visual.get_best_type
()
:
Gdk.VisualType
Return the best available visual type for the default GDK screen.
Return the best available visual type for the default GDK screen.
|
Gdk.Visual | |
Combines gdk_visual_get_best_with_depth() and
gdk_visual_get_best_with_type().
Combines gdk_visual_get_best_with_depth() and
gdk_visual_get_best_with_type().
|
Gdk.Visual | |
Get the best visual with depth depth for the default GDK screen.
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. NULL may be returned if no visual supports depth.
|
Gdk.Visual | |
Get the best visual of the given visual_type for the default GDK screen.
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. NULL may be returned if no visual has type
|
Gdk.Visual | |
Gdk.Visual.get_system
()
:
Gdk.Visual
Get the system's default visual for the default GDK screen.
Get the system's default visual for the default GDK screen.
This is the visual for the root window of the display. The return value should not be freed.
|
Gdk.Visual | |
get_bits_per_rgb
()
:
gint32
Returns the number of significant bits per red, green and blue value.
Returns the number of significant bits per red, green and blue value.
|
Gdk.Visual | |
get_blue_pixel_details
()
:
Object
Obtains values that are needed to calculate blue pixel values in TrueColor
and DirectColor.
Obtains values that are needed to calculate blue pixel values in TrueColor
and DirectColor. The "mask" is the significant bits within the pixel. The "shift" is the number of bits left we must shift a primary for it to be in position (according to the "mask"). Finally, "precision" refers to how much precision the pixel value contains for a particular primary. |
Gdk.Visual | |
get_byte_order
()
:
Gdk.ByteOrder
Returns the byte order of this visual.
Returns the byte order of this visual.
|
Gdk.Visual | |
get_colormap_size
()
:
gint32
Returns the size of a colormap for this visual.
Returns the size of a colormap for this visual.
|
Gdk.Visual | |
get_depth
()
:
gint32
Returns the bit depth of this visual.
Returns the bit depth of this visual.
|
Gdk.Visual | |
get_green_pixel_details
()
:
Object
Obtains values that are needed to calculate green pixel values in TrueColor
and DirectColor.
Obtains values that are needed to calculate green pixel values in TrueColor
and DirectColor. The "mask" is the significant bits within the pixel. The "shift" is the number of bits left we must shift a primary for it to be in position (according to the "mask"). Finally, "precision" refers to how much precision the pixel value contains for a particular primary. |
Gdk.Visual | |
get_red_pixel_details
()
:
Object
Obtains values that are needed to calculate red pixel values in TrueColor
and DirectColor.
Obtains values that are needed to calculate red pixel values in TrueColor
and DirectColor. The "mask" is the significant bits within the pixel. The "shift" is the number of bits left we must shift a primary for it to be in position (according to the "mask"). Finally, "precision" refers to how much precision the pixel value contains for a particular primary. |
Gdk.Visual | |
get_screen
()
:
Gdk.Screen
Gets the screen to which this visual belongs
Gets the screen to which this visual belongs
|
Gdk.Visual | |
get_visual_type
()
:
Gdk.VisualType
Returns the type of visual this is (PseudoColor, TrueColor, etc).
Returns the type of visual this is (PseudoColor, TrueColor, etc).
|
Gdk.Visual |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk.Screen
Method |
get_rgba_visual
()
:
Gdk.Visual
Gets a visual to use for creating windows with an alpha channel.
|
Gdk.Screen
Method |
get_system_visual
()
:
Gdk.Visual
Get the system's default visual for screen.
|
Gdk.Window
Method |
get_visual
()
:
Gdk.Visual
Gets the GdkVisual describing the pixel format of window.
|
GdkX11.X11Screen
Method |
Looks up the GdkVisual for a particular screen and X Visual ID.
|
Gtk.Widget
Method |
get_visual
()
:
Gdk.Visual
Gets the visual that will be used to render widget.
|
Gtk.Widget
Method |
set_visual
(Visual visual)
:
none
Sets the visual that should be used for by widget and its children for
creating GdkWindows. |