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.
gdk_visual_get_best
protected static final Handle gdk_visual_get_best()
gdk_visual_get_best_depth
protected static final int gdk_visual_get_best_depth()
gdk_visual_get_best_type
protected static final int gdk_visual_get_best_type()
gdk_visual_get_best_with_both
protected static final Handle gdk_visual_get_best_with_both(int depth,
int visualType)
gdk_visual_get_best_with_depth
protected static final Handle gdk_visual_get_best_with_depth(int depth)
gdk_visual_get_best_with_type
protected static final Handle gdk_visual_get_best_with_type(int visualType)
gdk_visual_get_screen
protected static final Handle gdk_visual_get_screen(Handle visual)
gdk_visual_get_system
protected static final Handle gdk_visual_get_system()
gdk_visual_get_type
protected static final int gdk_visual_get_type()
getBestDepth
public static int getBestDepth()
Get the best available depth for the default GDK display.
"Best" means "largest," i.e. 32 preferred over 24 preferred over 8 bits per pixel.
getBestVisualType
public static VisualType getBestVisualType()
Return the best available visual type (the one with the most colors) for the default GDK display.
getBitsPerRGB
public int getBitsPerRGB()
getBitsPerRgb
protected static final int getBitsPerRgb(Handle obj)
getBlueMask
public int getBlueMask()
getBlueMask
protected static final int getBlueMask(Handle obj)
getBluePrec
public int getBluePrec()
getBluePrec
protected static final int getBluePrec(Handle obj)
getBlueShift
public int getBlueShift()
getBlueShift
protected static final int getBlueShift(Handle obj)
getByteOrder
protected static final int getByteOrder(Handle obj)
getColormapSize
public int getColormapSize()
getColormapSize
protected static final int getColormapSize(Handle obj)
getDepth
public int getDepth()
getDepth
protected static final int getDepth(Handle obj)
getGreenMask
public int getGreenMask()
getGreenMask
protected static final int getGreenMask(Handle obj)
getGreenPrec
public int getGreenPrec()
getGreenPrec
protected static final int getGreenPrec(Handle obj)
getGreenShift
public int getGreenShift()
getGreenShift
protected static final int getGreenShift(Handle obj)
getRedMask
public int getRedMask()
getRedMask
protected static final int getRedMask(Handle obj)
getRedPrec
public int getRedPrec()
getRedPrec
protected static final int getRedPrec(Handle obj)
getRedShift
public int getRedShift()
getRedShift
protected static final int getRedShift(Handle obj)
getScreen
public Screen getScreen()
getSystemVisual
public static Visual getSystemVisual()
Get the default or system visual for the default GDK display.
This is the visual for the root window of the display.
getVisual
public static Visual getVisual()
Get the visual with the most available colors for the default GDK display.
getVisual
public static Visual getVisual(int depth)
Get the best visual with depth depth for the default GDK display.
Color visuals and visuals with mutable colormaps are preferred over grayscale or fixed-colormap visuals.
NULL may be returned if no visual supports depth.
getVisual
public static Visual getVisual(int depth,
VisualType vt)
Combines getVisual(int depth) and getVisual(VisualType vt).
getVisual
public static Visual getVisual(VisualType vt)
Get the best visual of the given visual_type for the default GDK display. Visuals with higher color depths are considered better.
NULL may be returned if no visual has type visual_type.