![]() |
![]() |
It is used throughout GDK and GTK+ to specify which screen the top level windows are to be displayed on. It is also used to query the screen specification and default settings such as the default colormap (get_default_colormap()), the screen width (get_width()), etc. Note that a screen may consist of multiple monitors which are merged to form a large screen area.
Public Member Functions | |
void | broadcast_client_message (GdkEvent* event) |
On X11, sends an X ClientMessage event to all toplevel windows on screen . | |
Glib::RefPtr<const Colormap> | get_default_colormap () const |
Gets the default colormap for screen . | |
Glib::RefPtr<Colormap> | get_default_colormap () |
Gets the default colormap for screen . | |
Glib::RefPtr<const Display> | get_display () const |
Gets the display to which the screen belongs. | |
Glib::RefPtr<Display> | get_display () |
Gets the display to which the screen belongs. | |
int | get_height () const |
Gets the height of screen in pixels. | |
int | get_height_mm () const |
Returns the height of screen in millimeters. | |
int | get_monitor_at_point (int x, int y) const |
Returns the monitor number in which the point ( x , y ) is located. | |
int | get_monitor_at_window (const Glib::RefPtr<Window>& window) const |
void | get_monitor_geometry (int monitor_num, Rectangle& dest) const |
Retrieves the Gdk::Rectangle representing the size and position of the individual monitor within the entire screen area. | |
int | get_n_monitors () const |
Returns the number of monitors which screen consists of. | |
int | get_number () const |
Gets the index of screen among the screens in the display to which it belongs. | |
Glib::RefPtr<const Colormap> | get_rgb_colormap () const |
Gets the preferred colormap for rendering image data on screen . | |
Glib::RefPtr<Colormap> | get_rgb_colormap () |
Gets the preferred colormap for rendering image data on screen . | |
Glib::RefPtr<const Visual> | get_rgb_visual () const |
Gets a "preferred visual" chosen by GdkRGB for rendering image data on screen . | |
Glib::RefPtr<Visual> | get_rgb_visual () |
Gets a "preferred visual" chosen by GdkRGB for rendering image data on screen . | |
Glib::RefPtr<const Window> | get_root_window () const |
Gets the root window of screen . | |
Glib::RefPtr<Window> | get_root_window () |
Gets the root window of screen . | |
template<class ValueType> | |
bool | get_setting (const Glib::ustring& name, ValueType& value) const |
Glib::RefPtr<const Colormap> | get_system_colormap () const |
Gets the system's default colormap for screen. | |
Glib::RefPtr<Colormap> | get_system_colormap () |
Gets the system's default colormap for screen. | |
Glib::RefPtr<const Visual> | get_system_visual () const |
Get the system's default visual for screen . | |
Glib::RefPtr<Visual> | get_system_visual () |
Get the system's default visual for screen . | |
Glib::ListHandle< Glib::RefPtr< Window > > | get_toplevel_windows () |
Obtains a list of all toplevel windows known to GDK on the screen screen . | |
int | get_width () const |
Gets the width of screen in pixels. | |
int | get_width_mm () const |
Gets the width of screen in millimeters. | |
const GdkScreen* | gobj () const |
Provides access to the underlying C GObject. | |
GdkScreen* | gobj () |
Provides access to the underlying C GObject. | |
GdkScreen* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::ListHandle< Glib::RefPtr< Visual > > | list_visuals () |
Lists the available visuals for the specified screen . | |
Glib::ustring | make_display_name () |
Determines the name to pass to Gdk::Display::open() to get a Gdk::Display with this screen as the default screen. | |
void | set_default_colormap (const Glib::RefPtr<const Colormap>& colormap) |
Sets the default colormap for screen . | |
Glib::SignalProxy0<void> | signal_size_changed () |
The size_changed signal is emitted when the pixel width or height of a screen changes. | |
virtual | ~Screen () |
Static Public Member Functions | |
static Glib::RefPtr<Screen> | get_default () |
Gets the default screen for the default display. | |
Protected Member Functions | |
virtual void | on_size_changed () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gdk::Screen> | wrap (GdkScreen* object, bool take_copy=false) |
|
|
|
On X11, sends an X ClientMessage event to all toplevel windows on screen . Toplevel windows are determined by checking for the WM_STATE property, as described in the Inter-Client Communication Conventions Manual (ICCCM). If no windows are found with the WM_STATE property set, the message is sent to all children of the root window. On Windows, broadcasts a message registered with the name GDK_WIN32_CLIENT_MESSAGE to all top-level windows. The amount of data is limited to one long, i.e. four bytes.
|
|
Gets the default screen for the default display. (See Gdk::Display::get_default()).
|
|
Gets the default colormap for screen .
|
|
Gets the default colormap for screen .
|
|
Gets the display to which the screen belongs.
|
|
Gets the display to which the screen belongs.
|
|
Gets the height of screen in pixels.
|
|
Returns the height of screen in millimeters. Note that on some X servers this value will not be correct.
|
|
Returns the monitor number in which the point ( x , y ) is located.
|
|
|
|
Retrieves the Gdk::Rectangle representing the size and position of the individual monitor within the entire screen area. Note that the size of the entire screen area can be retrieved via get_width() and get_height().
|
|
Returns the number of monitors which screen consists of.
|
|
Gets the index of screen among the screens in the display to which it belongs. (See get_display())
|
|
Gets the preferred colormap for rendering image data on screen . Not a very useful function; historically, GDK could only render RGB image data to one colormap and visual, but in the current version it can render to any colormap and visual. So there's no need to call this function.
|
|
Gets the preferred colormap for rendering image data on screen . Not a very useful function; historically, GDK could only render RGB image data to one colormap and visual, but in the current version it can render to any colormap and visual. So there's no need to call this function.
|
|
Gets a "preferred visual" chosen by GdkRGB for rendering image data on screen . In previous versions of GDK, this was the only visual GdkRGB could use for rendering. In current versions, it's simply the visual GdkRGB would have chosen as the optimal one in those previous versions. GdkRGB can now render to drawables with any visual.
|
|
Gets a "preferred visual" chosen by GdkRGB for rendering image data on screen . In previous versions of GDK, this was the only visual GdkRGB could use for rendering. In current versions, it's simply the visual GdkRGB would have chosen as the optimal one in those previous versions. GdkRGB can now render to drawables with any visual.
|
|
Gets the root window of screen .
|
|
Gets the root window of screen .
|
|
|
|
Gets the system's default colormap for screen.
|
|
Gets the system's default colormap for screen.
|
|
Get the system's default visual for screen . This is the visual for the root window of the display. The return value should not be freed.
|
|
Get the system's default visual for screen . This is the visual for the root window of the display. The return value should not be freed.
|
|
Obtains a list of all toplevel windows known to GDK on the screen screen . A toplevel window is a child of the root window (see gdk_get_default_root_window()). newin2p2
|
|
Gets the width of screen in pixels.
|
|
Gets the width of screen in millimeters. Note that on some X servers this value will not be correct.
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
Lists the available visuals for the specified screen . A visual describes a hardware image data format. For example, a visual might support 24-bit color, or 8-bit color, and might expect pixels to be in a certain format. newin2p2
|
|
Determines the name to pass to Gdk::Display::open() to get a Gdk::Display with this screen as the default screen. newin2p2
|
|
|
|
Sets the default colormap for screen .
|
|
The size_changed signal is emitted when the pixel width or height of a screen changes.
|
|
|