Class: Gdk::Visual
- Inherits:
-
Object
- Object
- Gdk::Visual
- Defined in:
- (unknown)
Overview
A Gdk::Visual contains information about a particular visual.
Instance Method Summary collapse
-
#bits_per_rgb ⇒ Integer
Returns the number of significant bits per red, green and blue value.
-
#byte_order ⇒ Gdk::ByteOrder
Returns the byte order of this visual.
-
#colormap_size ⇒ Integer
Returns the size of a colormap for this visual.
-
#depth ⇒ Integer
Returns the bit depth of this visual.
-
#get_blue_pixel_details(mask, shift, precision) ⇒ nil
Obtains values that are needed to calculate blue pixel values in TrueColor and DirectColor.
-
#get_green_pixel_details(mask, shift, precision) ⇒ nil
Obtains values that are needed to calculate green pixel values in TrueColor and DirectColor.
-
#get_red_pixel_details(mask, shift, precision) ⇒ nil
Obtains values that are needed to calculate red pixel values in TrueColor and DirectColor.
-
#screen ⇒ Gdk::Screen
Gets the screen to which this visual belongs.
-
#visual_type ⇒ Gdk::VisualType
Returns the type of visual this is (PseudoColor, TrueColor, etc).
Instance Method Details
#bits_per_rgb ⇒ Integer
Returns the number of significant bits per red, green and blue value.
Not all GDK backend provide a meaningful value for this function.
#byte_order ⇒ Gdk::ByteOrder
Returns the byte order of this visual.
The information returned by this function is only relevant when working with XImages, and not all backends return meaningful information for this.
#colormap_size ⇒ Integer
Returns the size of a colormap for this visual.
You have to use platform-specific APIs to manipulate colormaps.
#depth ⇒ Integer
Returns the bit depth of this visual.
#get_blue_pixel_details(mask, shift, precision) ⇒ nil
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.
#get_green_pixel_details(mask, shift, precision) ⇒ nil
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.
#get_red_pixel_details(mask, shift, precision) ⇒ nil
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.
#screen ⇒ Gdk::Screen
Gets the screen to which this visual belongs
#visual_type ⇒ Gdk::VisualType
Returns the type of visual this is (PseudoColor, TrueColor, etc).