|
| Visual (Visual&& src) noexcept |
|
Visual& | operator= (Visual&& src) noexcept |
|
| ~Visual () noexceptoverride |
|
GdkVisual* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GdkVisual* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GdkVisual* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
Glib::RefPtr< Screen > | get_screen () |
| Gets the screen to which this visual belongs. More...
|
|
Glib::RefPtr< const Screen > | get_screen () const |
| Gets the screen to which this visual belongs. More...
|
|
VisualType | get_visual_type () const |
| Returns the type of visual this is (PseudoColor, TrueColor, etc). More...
|
|
int | get_depth () const |
| Returns the bit depth of this visual. More...
|
|
void | get_red_pixel_details (guint32& mask, int&shift, int& precision) const |
| Obtains values that are needed to calculate red pixel values in TrueColor and DirectColor. More...
|
|
void | get_green_pixel_details (guint32& mask, int&shift, int& precision) const |
| Obtains values that are needed to calculate green pixel values in TrueColor and DirectColor. More...
|
|
void | get_blue_pixel_details (guint32& mask, int&shift, int& precision) const |
| Obtains values that are needed to calculate blue pixel values in TrueColor and DirectColor. More...
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) |
|
| ~trackable () |
|
void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) |
|
void | remove_destroy_notify_callback (void *data) const |
|
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.
There are several standard visuals. The visual returned by Gdk::Screen::get_system_visual() is the system's default visual.
A number of methods 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, GDK_VISUAL_PSEUDO_COLOR is preferred at 8bpp, otherwise, the visual types are ranked in the order of (highest to lowest) GDK_VISUAL_DIRECT_COLOR, GDK_VISUAL_TRUE_COLOR, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, GDK_VISUAL_GRAYSCALE, then GDK_VISUAL_STATIC_GRAY.