GObject.Object
Gdk.Screen
GdkX11.X11Screen
Import line: | GdkX11 = imports.gi.GdkX11; |
GIR File: | GdkX11-3.0.gir |
C documentation: | GdkX11X11Screen |
Class : | X11Screen |
Extends: | Gdk.Screen |
Properties | Defined By | |
---|---|---|
font_options : void*
|
Gdk.Screen | |
resolution : gdouble
|
Gdk.Screen |
Method / Constructor | Defined By | |
---|---|---|
new GdkX11.X11Screen
(Object properties)
Create a new GdkX11.X11Screen
Create a new GdkX11.X11Screen
|
||
Returns the index of a GdkScreen.
Returns the index of a GdkScreen.
|
GdkX11.X11Screen | |
Returns the name of the window manager for screen.
Returns the name of the window manager for screen.
"unknown" if the window manager is unknown. The string is owned by GDK and should not be freed.
|
GdkX11.X11Screen | |
Returns the screen of a GdkScreen.
Returns the screen of a GdkScreen.
|
GdkX11.X11Screen | |
Looks up the GdkVisual for a particular screen and X Visual ID.
Looks up the GdkVisual for a particular screen and X Visual ID.
object), or NULL if the visual ID wasn't found.
|
GdkX11.X11Screen | |
This function is specific to the X11 backend of GDK, and indicates
whether the window manager supports a certain hint from the Extended Window Manager Hints Specification.
This function is specific to the X11 backend of GDK, and indicates
whether the window manager supports a certain hint from the Extended Window Manager Hints Specification. You can find this specification on When using this function, keep in mind that the window manager can change over time; so you shouldn't use this function in a way that impacts persistent application state. A common bug is that your application can start up before the window manager does when the user logs in, and before the window manager starts gdk_x11_screen_supports_net_wm_hint() will return FALSE for every property. You can monitor the window_manager_changed signal on GdkScreen to detect a window manager change.
|
GdkX11.X11Screen | |
get_active_window
()
:
Gdk.Window
Returns the screen's currently active window.
Returns the screen's currently active window.
On X11, this is done by inspecting the _NET_ACTIVE_WINDOW property on the root window, as described in the Manager Hints. If there is no currently currently active window, or the window manager does not support the _NET_ACTIVE_WINDOW hint, this function returns NULL. On other platforms, this function may return NULL, depending on whether it is implementable on that platform. The returned window should be unrefed using g_object_unref() when no longer needed.
|
Gdk.Screen | |
get_display
()
:
Gdk.Display
Gets the display to which the screen belongs.
Gets the display to which the screen belongs.
|
Gdk.Screen | |
get_font_options
()
:
cairo.FontOptions
Gets any options previously set with gdk_screen_set_font_options().
Gets any options previously set with gdk_screen_set_font_options().
font options have been set.
|
Gdk.Screen | |
get_height
()
:
gint32
Gets the height of screen in pixels
Gets the height of screen in pixels
|
Gdk.Screen | |
get_height_mm
()
:
gint32
Returns the height of screen in millimeters.
Returns the height of screen in millimeters.
Note that on some X servers this value will not be correct.
|
Gdk.Screen | |
Returns the monitor number in which the point (x,y) is located.
Returns the monitor number in which the point (x,y) is located.
a monitor close to (x,y) if the point is not in any monitor.
|
Gdk.Screen | |
Returns the number of the monitor in which the largest area of the
bounding rectangle of window resides.
Returns the number of the monitor in which the largest area of the
bounding rectangle of window resides.
|
Gdk.Screen | |
get_monitor_geometry
(gint32 monitor_num)
:
cairo.RectangleInt
Retrieves the GdkRectangle representing the size and position of
the individual monitor within the entire screen area.
Retrieves the GdkRectangle 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 gdk_screen_get_width() and gdk_screen_get_height().
|
Gdk.Screen | |
Gets the height in millimeters of the specified monitor.
|
Gdk.Screen | |
Returns the output name of the specified monitor.
Returns the output name of the specified monitor.
Usually something like VGA, DVI, or TV, not the actual product name of the display device. or NULL if the name cannot be determined
|
Gdk.Screen | |
Gets the width in millimeters of the specified monitor, if available.
|
Gdk.Screen | |
get_n_monitors
()
:
gint32
Returns the number of monitors which screen consists of.
Returns the number of monitors which screen consists of.
|
Gdk.Screen | |
get_number
()
:
gint32
Gets the index of screen among the screens in the display
to which it belongs.
Gets the index of screen among the screens in the display
to which it belongs. (See gdk_screen_get_display())
|
Gdk.Screen | |
get_primary_monitor
()
:
gint32
Gets the primary monitor for screen.
Gets the primary monitor for screen. The primary monitor
is considered the monitor where the 'main desktop' lives. While normal application windows typically allow the window manager to place the windows, specialized desktop applications such as panels should place themselves on the primary monitor. If no primary monitor is configured by the user, the return value will be 0, defaulting to the first monitor.
|
Gdk.Screen | |
get_resolution
()
:
gdouble
Gets the resolution for font handling on the screen; see
gdk_screen_set_resolution() for full details.
Gets the resolution for font handling on the screen; see
gdk_screen_set_resolution() for full details. has been set.
|
Gdk.Screen | |
get_rgba_visual
()
:
Gdk.Visual
Gets a visual to use for creating windows with an alpha channel.
Gets a visual to use for creating windows with an alpha channel.
The windowing system on which GTK+ is running may not support this capability, in which case NULL will be returned. Even if a non-NULL value is returned, its possible that the window's alpha channel won't be honored X an appropriate windowing manager and compositing manager must be running to provide appropriate display. This functionality is not implemented in the Windows backend. For setting an overall opacity for a top-level window, see gdk_window_set_opacity(). alpha channel or NULL if the capability is not available.
|
Gdk.Screen | |
get_root_window
()
:
Gdk.Window
Gets the root window of screen.
Gets the root window of screen.
|
Gdk.Screen | |
Retrieves a desktop-wide setting such as double-click time
for the GdkScreen screen.
Retrieves a desktop-wide setting such as double-click time
for the GdkScreen screen. FIXME needs a list of valid settings here, or a link to more information. in value, FALSE otherwise.
|
Gdk.Screen | |
get_system_visual
()
:
Gdk.Visual
Get the system's default visual 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.
|
Gdk.Screen | |
get_toplevel_windows
()
:
Array
Obtains a list of all toplevel windows known to GDK on the screen screen.
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()). The returned list should be freed with g_list_free(), but its elements need not be freed. list of toplevel windows, free with g_list_free()
|
Gdk.Screen | |
get_width
()
:
gint32
Gets the width of screen in pixels
Gets the width of screen in pixels
|
Gdk.Screen | |
get_width_mm
()
:
gint32
Gets the width of screen in millimeters.
Gets the width of screen in millimeters.
Note that on some X servers this value will not be correct.
|
Gdk.Screen | |
get_window_stack
()
:
Array
Returns a GList of GdkWindows representing the current
window stack.
Returns a GList of GdkWindows representing the current
window stack. On X11, this is done by inspecting the _NET_CLIENT_LIST_STACKING property on the root window, as described in the Manager Hints. If the window manager does not support the _NET_CLIENT_LIST_STACKING hint, this function returns NULL. On other platforms, this function may return NULL, depending on whether it is implementable on that platform. The returned list is newly allocated and owns references to the windows it contains, so it should be freed using g_list_free() and its windows unrefed using g_object_unref() when no longer needed. a list of GdkWindows for the current window stack, or NULL.
|
Gdk.Screen | |
is_composited
()
:
gboolean
Returns whether windows with an RGBA visual can reasonably
be expected to have their alpha channel drawn correctly on the screen.
Returns whether windows with an RGBA visual can reasonably
be expected to have their alpha channel drawn correctly on the screen. On X11 this function returns whether a compositing manager is compositing screen. expected to have their alpha channels drawn correctly on the screen.
|
Gdk.Screen | |
list_visuals
()
:
Array
Lists the available visuals for the specified screen.
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. Call g_list_free() on the return value when you're finished with it. a list of visuals; the list must be freed, but not its contents
|
Gdk.Screen | |
make_display_name
()
:
String
Determines the name to pass to gdk_display_open() to get
a GdkDisplay with this screen as the default screen.
Determines the name to pass to gdk_display_open() to get
a GdkDisplay with this screen as the default screen.
|
Gdk.Screen | |
set_font_options
(FontOptions options)
:
none
Sets the default font options for the screen.
Sets the default font options for the screen. These
options will be set on any PangoContext's newly created with gdk_pango_context_get_for_screen(). Changing the default set of font options does not affect contexts that have already been created.
|
Gdk.Screen | |
set_resolution
(gdouble dpi)
:
none
Sets the resolution for font handling on the screen.
Sets the resolution for font handling on the screen. This is a
scale factor between points specified in a PangoFontDescription and cairo units. The default value is 96, meaning that a 10 point font will be 13 units high. (10 * 96. / 72. = 13.3).
|
Gdk.Screen |
Event | Defined By | |
---|---|---|
composited_changed (Screen self)
:
none
The ::composited-changed signal is emitted when the composited
status of the screen changes
The ::composited-changed signal is emitted when the composited
status of the screen changes
|
Gdk.Screen | |
monitors_changed (Screen self)
:
none
The ::monitors-changed signal is emitted when the number, size
or position of the monitors attached to the screen change.
The ::monitors-changed signal is emitted when the number, size
or position of the monitors attached to the screen change. Only for X11 and OS X for now. A future implementation for Win32 may be a possibility.
|
Gdk.Screen | |
size_changed (Screen self)
:
none
The ::size-changed signal is emitted when the pixel width or
height of a screen changes.
The ::size-changed signal is emitted when the pixel width or
height of a screen changes.
|
Gdk.Screen | |
window_manager_changed (X11Screen self)
:
none
|
GdkX11.X11Screen |