Libraries:Gtk:Gdk:Visual
Types
T
Inherits from:Constants
Nil : T
Functions
GetBest() : Gtk.Gdk.Visual.T
Get the visual with the most available colors for the default GDK screen. The return value should not be freed.
Returns | best visual. [transfer none] |
GetBestDepth() : Std.Integer.SmallT
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.
Returns | best available depth |
GetBestType() : Gtk.Gdk.VisualType.T
Return the best available visual type for the default GDK screen.
Returns | best visual type |
GetBestWithBoth(depth @ Std.Integer.SmallT, visual_type @ Gtk.Gdk.VisualType.T) : Gtk.Gdk.Visual.T
Combines GetBestWithDepth and GetBestWithType.
depth | a bit depth |
visual_type | a visual type |
Returns | best visual with both depth and visual_type, or NULL if none. [transfer none] |
GetBestWithDepth(depth @ Std.Integer.SmallT) : Gtk.Gdk.Visual.T
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.
depth | a bit depth |
Returns | best visual for the given depth. [transfer none] |
GetBestWithType(visual_type @ Gtk.Gdk.VisualType.T) : Gtk.Gdk.Visual.T
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 visual_type.
visual_type | a visual type |
Returns | best visual of the given type. [transfer none] |
GetSystem() : Gtk.Gdk.Visual.T
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.
Returns | system visual. [transfer none] |
GetType() : Gtk.GObject.Type.T
Methods
:GetBitsPerRgb(self @ T) : Std.Integer.SmallT
Returns the number of significant bits per red, green and blue value.
visual | a T |
Returns | The number of significant bits per color value for visual. |
:GetBluePixelDetails(self @ T, mask @ Std.Object.T, shift @ Std.Object.T, precision @ Std.Object.T) : Std.Object.T
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.
visual | a T |
mask | A pointer to a guint32 to be filled in, or NULL. [out][allow-none] |
shift | A pointer to a gint to be filled in, or NULL. [out][allow-none] |
precision | A pointer to a gint to be filled in, or NULL. [out][allow-none] |
:GetByteOrder(self @ T) : Gtk.Gdk.ByteOrder.T
Returns the byte order of this visual.
visual | A T. |
Returns | A Gtk.Gdk.ByteOrder.T stating the byte order of visual. |
:GetColormapSize(self @ T) : Std.Integer.SmallT
Returns the size of a colormap for this visual.
visual | A T. |
Returns | The size of a colormap that is suitable for visual. |
:GetDepth(self @ T) : Std.Integer.SmallT
:GetGreenPixelDetails(self @ T, mask @ Std.Object.T, shift @ Std.Object.T, precision @ Std.Object.T) : Std.Object.T
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.
visual | a T |
mask | A pointer to a guint32 to be filled in, or NULL. [out][allow-none] |
shift | A pointer to a gint to be filled in, or NULL. [out][allow-none] |
precision | A pointer to a gint to be filled in, or NULL. [out][allow-none] |
:GetRedPixelDetails(self @ T, mask @ Std.Object.T, shift @ Std.Object.T, precision @ Std.Object.T) : Std.Object.T
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.
visual | A T. |
mask | A pointer to a guint32 to be filled in, or NULL. [out][allow-none] |
shift | A pointer to a gint to be filled in, or NULL. [out][allow-none] |
precision | A pointer to a gint to be filled in, or NULL. [out][allow-none] |
:GetScreen(self @ T) : Gtk.Gdk.Screen.T
Gets the screen to which this visual belongs
visual | a T |
Returns | the screen to which this visual belongs. [transfer none] |
:GetVisualType(self @ T) : Gtk.Gdk.VisualType.T
Returns the type of visual this is (PseudoColor, TrueColor, etc).
visual | A T. |
Returns | A Gtk.Gdk.VisualType.T stating the type of visual. |