GObject.Object
Gdk.Screen
Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-3.0.gir |
C documentation: | GdkScreen |
Class : | Screen |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
font_options : void*
|
Gdk.Screen | |
resolution : gdouble
|
Gdk.Screen |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Screen
(Object properties)
Create a new Gdk.Screen
Create a new Gdk.Screen
|
||
Gdk.Screen.get_default
()
:
Gdk.Screen
Gets the default screen for the default display.
Gets the default screen for the default display. (See
gdk_display_get_default ()).
|
Gdk.Screen | |
Gdk.Screen.height
()
:
gint32
Returns the height of the default screen in pixels.
Returns the height of the default screen in pixels.
|
Gdk.Screen | |
Gdk.Screen.height_mm
()
:
gint32
Returns the height of the default screen in millimeters.
Returns the height of the default screen in millimeters.
Note that on many X servers this value will not be correct. though it is not always correct.
|
Gdk.Screen | |
Gdk.Screen.width
()
:
gint32
Returns the width of the default screen in pixels.
Returns the width of the default screen in pixels.
|
Gdk.Screen | |
Gdk.Screen.width_mm
()
:
gint32
Returns the width of the default screen in millimeters.
Returns the width of the default screen in millimeters.
Note that on many X servers this value will not be correct. though it is not always correct.
|
Gdk.Screen | |
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 |
Class / Namespace | Method / Signal / Properties |
---|---|
EvinceDocument.Attachment
Method |
|
EvinceDocument.Document
Method |
|
EvinceView
Method |
EvinceView.stock_icons_set_screen
(Screen screen)
:
none
|
Gdk
Method |
Gdk.drag_find_window_for_screen
(DragContext context, Window drag_window, Screen screen, gint32 x_root, gint32 y_root)
:
Object
Finds the destination window and DND protocol to use at the
given pointer position. |
Gdk
Method |
Creates a PangoContext for screen.
|
Gdk.AppLaunchContext
Method |
set_screen
(Screen screen)
:
none
Sets the screen on which applications will be launched when
using this context. |
Gdk.Device
Method |
get_position
()
:
Object
Gets the current location of device.
|
Gdk.Device
Method |
Warps device in display to the point x,y on
the screen screen, unless the device is confined to a window by a grab, in which case it will be moved as far as allowed by the grab. |
Gdk.Display
Method |
get_default_screen
()
:
Gdk.Screen
Get the default GdkScreen for display.
|
Gdk.Display
Method |
get_pointer
()
:
Object
Gets the current location of the pointer and the current modifier
mask for a given display. |
Gdk.Display
Method |
get_screen
(gint32 screen_num)
:
Gdk.Screen
Returns a screen object for one of the screens of the display.
|
Gdk.Display
Method |
Warps the pointer of display to the point x,y on
the screen screen, unless the pointer is confined to a window by a grab, in which case it will be moved as far as allowed by the grab. |
Gdk.Event
Method |
get_screen
()
:
Gdk.Screen
Returns the screen for the event.
|
Gdk.Event
Method |
set_screen
(Screen screen)
:
none
Sets the screen for event to screen.
|
Gdk.Visual
Method |
get_screen
()
:
Gdk.Screen
Gets the screen to which this visual belongs
|
Gdk.Window
Method |
get_screen
()
:
Gdk.Screen
Gets the GdkScreen associated with a GdkWindow.
|
GdkX11.X11Screen
Method |
Returns the index of a GdkScreen.
|
GdkX11.X11Screen
Method |
Returns the name of the window manager for screen.
|
GdkX11.X11Screen
Method |
Returns the screen of a GdkScreen.
|
GdkX11.X11Screen
Method |
Looks up the GdkVisual for a particular screen and X Visual ID.
|
GdkX11.X11Screen
Method |
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. |
Gtk
Method |
Returns TRUE if dialogs are expected to use an alternative
button order on the screen screen. |
Gtk
Method |
This is a convenience function for launching the default application
to show the uri. |
Gtk.IconTheme
Method |
Gets the icon theme object associated with screen; if this
function has not previously been called for the given screen, a new icon theme object will be created and associated with the screen. |
Gtk.IconTheme
Method |
set_screen
(Screen screen)
:
none
Sets the screen for an icon theme; the screen is used
to track the user's currently configured icon theme, which might be different for different screens. |
Gtk.Invisible
Property |
screen : Gdk.Screen
|
Gtk.Invisible
Method |
Create a new Gtk.Invisible
|
Gtk.Invisible
Method |
get_screen
()
:
Gdk.Screen
Returns the GdkScreen object associated with invisible
|
Gtk.Invisible
Method |
set_screen
(Screen screen)
:
none
Sets the GdkScreen where the GtkInvisible object will be displayed.
|
Gtk.Menu
Method |
set_screen
(Screen screen)
:
none
Sets the GdkScreen on which the menu will be displayed.
|
Gtk.MountOperation
Property |
screen : Gdk.Screen
|
Gtk.MountOperation
Method |
get_screen
()
:
Gdk.Screen
Gets the screen on which windows of the GtkMountOperation
will be shown. |
Gtk.MountOperation
Method |
set_screen
(Screen screen)
:
none
Sets the screen to show windows of the GtkMountOperation on.
|
Gtk.Settings
Method |
Gets the GtkSettings object for screen, creating it if necessary.
|
Gtk.StatusIcon
Property |
screen : Gdk.Screen
|
Gtk.StatusIcon
Method |
get_screen
()
:
Gdk.Screen
Returns the GdkScreen associated with status_icon.
|
Gtk.StatusIcon
Method |
set_screen
(Screen screen)
:
none
Sets the GdkScreen where status_icon is displayed; if
the icon is already mapped, it will be unmapped, and then remapped on the new screen. |
Gtk.StyleContext
Property |
screen : Gdk.Screen
|
Gtk.StyleContext
Method |
Gtk.StyleContext.add_provider_for_screen
(Screen screen, StyleProvider provider, guint32 priority)
:
none
Adds a global style provider to screen, which will be used
in style construction for all GtkStyleContexts under GTK+ uses this to make styling information from GtkSettings available. |
Gtk.StyleContext
Method |
Removes provider from the global style providers list in screen.
|
Gtk.StyleContext
Method |
Gtk.StyleContext.reset_widgets
(Screen screen)
:
none
This function recomputes the styles for all widgets under a particular
GdkScreen. |
Gtk.StyleContext
Method |
get_screen
()
:
Gdk.Screen
Returns the GdkScreen to which context is attached.
|
Gtk.StyleContext
Method |
set_screen
(Screen screen)
:
none
Attaches context to the given screen.
|
Gtk.ThemingEngine
Method |
get_screen
()
:
Gdk.Screen
Returns the GdkScreen to which engine currently rendering to.
|
Gtk.Widget
Signal |
The ::screen-changed signal gets emitted when the
screen of a widget has changed. |
Gtk.Widget
Method |
get_screen
()
:
Gdk.Screen
Get the GdkScreen from the toplevel window associated with
this widget. |
Gtk.Window
Property |
screen : Gdk.Screen
|
Gtk.Window
Method |
get_screen
()
:
Gdk.Screen
Returns the GdkScreen associated with window.
|
Gtk.Window
Method |
set_screen
(Screen screen)
:
none
Sets the GdkScreen where the window is displayed; if
the window is already mapped, it will be unmapped, and then remapped on the new screen. |