GObject.Object
Gdk.Screen
Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-2.0.gir |
C documentation: | GdkScreen |
Class : | Screen |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
closed : Number
read only
|
Gdk.Screen | |
exposure_gcs : Array
read only
|
Gdk.Screen | |
font_options : void*
|
Gdk.Screen | |
font_options : cairo.FontOptions
read only
|
Gdk.Screen | |
normal_gcs : Array
read only
|
Gdk.Screen | |
parent_instance : GObject.Object
read only
|
Gdk.Screen | |
resolution : Number
|
Gdk.Screen | |
resolution : Number
read only
|
Gdk.Screen | |
subwindow_gcs : Array
read only
|
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
()
:
Number
Returns the height of the default screen in pixels.
Returns the height of the default screen in pixels.
|
Gdk.Screen | |
Gdk.Screen.height_mm
()
:
Number
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
()
:
Number
Returns the width of the default screen in pixels.
Returns the width of the default screen in pixels.
|
Gdk.Screen | |
Gdk.Screen.width_mm
()
:
Number
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 | |
broadcast_client_message
(Event event)
:
none
On X11, sends an X ClientMessage event to all toplevel windows on Toplevel windows are determined by checking for the WM_STATE property, as described in the Inter-Client Communication Conventions Manual (ICCCM).
On X11, sends an X ClientMessage event to all toplevel windows on 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.
|
Gdk.Screen | |
get_active_window
()
:
Gdk.Window
|
Gdk.Screen | |
get_default_colormap
()
:
Gdk.Colormap
Gets the default colormap for screen.
Gets the default colormap for screen.
|
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
()
:
Number
Gets the height of screen in pixels
Gets the height of screen in pixels
|
Gdk.Screen | |
get_height_mm
()
:
Number
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 | |
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 | |
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 | |
Gdk.Screen | ||
Gdk.Screen | ||
Gdk.Screen | ||
get_n_monitors
()
:
Number
Returns the number of monitors which screen consists of.
Returns the number of monitors which screen consists of.
|
Gdk.Screen | |
get_number
()
:
Number
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
()
:
Number
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
()
:
Number
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_rgb_colormap
()
:
Gdk.Colormap
Gets the preferred colormap for rendering image data on screen.
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.
|
Gdk.Screen | |
get_rgb_visual
()
:
Gdk.Visual
Gets a "preferred visual" chosen by GdkRGB for rendering image data on screen.
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.
|
Gdk.Screen | |
get_rgba_colormap
()
:
Gdk.Colormap
Gets a colormap to use for creating windows or pixmaps with an alpha channel.
Gets a colormap to use for creating windows or pixmaps 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(). an alpha channel or NULL if the capability is not available.
|
Gdk.Screen | |
get_rgba_visual
()
:
Gdk.Visual
Gets a visual to use for creating windows or pixmaps with an alpha channel.
Gets a visual to use for creating windows or pixmaps with an alpha channel. See the docs for gdk_screen_get_rgba_colormap() for caveats. 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_colormap
()
:
Gdk.Colormap
Gets the system's default colormap for screen
Gets the system's default colormap for screen
|
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_width
()
:
Number
Gets the width of screen in pixels
Gets the width of screen in pixels
|
Gdk.Screen | |
get_width_mm
()
:
Number
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 | |
is_composited
()
:
Boolean
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 | |
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_default_colormap
(Colormap colormap)
:
none
Sets the default colormap for screen.
Sets the default colormap for 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
(Number 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 |
---|---|
Gdk
Method |
Gdk.drag_find_window_for_screen
(DragContext context, Window drag_window, Screen screen, Number x_root, Number 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
Method |
Like g_spawn_command_line_async(), except the child process is spawned in such an environment that on calling gdk_display_open() it would be returned a GdkDisplay with screen as the default screen.
|
Gdk
Method |
Gdk.spawn_on_screen
(Screen screen, String working_directory, Array argv, Array envp, SpawnFlags flags, Function child_setup, void* user_data, Object out_values)
:
Boolean
Like g_spawn_async(), except the child process is spawned in such an environment that on calling gdk_display_open() it would be returned a GdkDisplay with screen as the default screen.
|
Gdk
Method |
Gdk.spawn_on_screen_with_pipes
(Screen screen, String working_directory, Array argv, Array envp, SpawnFlags flags, Function child_setup, void* user_data, Object out_values)
:
Boolean
Like g_spawn_async_with_pipes(), except the child process is spawned in such an environment that on calling gdk_display_open() it would be returned a GdkDisplay with screen as the default screen.
|
Gdk.AppLaunchContext
Method |
set_screen
(Screen screen)
:
none
Sets the screen on which applications will be launched when using this context.
|
Gdk.Colormap
Method |
get_screen
()
:
Gdk.Screen
Gets the screen for which this colormap was created.
|
Gdk.Display
Method |
get_screen
(Number screen_num)
:
Gdk.Screen
Returns a screen object for one of the screens of the display.
|
Gdk.Display
Method |
get_default_screen
()
:
Gdk.Screen
Get the default GdkScreen for display.
|
Gdk.Display
Method |
Gets the current location of the pointer and the current modifier mask for a given 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.Drawable
Method |
get_screen
()
:
Gdk.Screen
Gets the GdkScreen associated with a GdkDrawable.
|
Gdk.Event
Method |
set_screen
(Screen screen)
:
none
Sets the screen for event to screen.
|
Gdk.Event
Method |
get_screen
()
:
Gdk.Screen
Returns the screen for the event.
|
Gdk.GC
Method |
get_screen
()
:
Gdk.Screen
Gets the GdkScreen for which gc was created
|
Gdk.PangoRenderer
Property |
screen : Gdk.Screen
|
Gdk.PangoRenderer
Method |
Create a new Gdk.PangoRenderer
|
Gdk.PangoRenderer
Method |
Gets the default PangoRenderer for a screen.
|
Gdk.Pixmap
Method |
Gdk.Pixmap.foreign_new_for_screen
(Screen screen, Number anid, Number width, Number height, Number depth)
:
Gdk.Pixmap
Wraps a native pixmap in a GdkPixmap.
|
Gdk.Visual
Method |
get_screen
()
:
Gdk.Screen
Gets the screen to which this visual belongs
|
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 |
set_screen
(Screen screen)
:
none
Sets the GdkScreen where the GtkInvisible object will be displayed.
|
Gtk.Invisible
Method |
get_screen
()
:
Gdk.Screen
Returns the GdkScreen object associated with invisible
|
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 |
set_screen
(Screen screen)
:
none
Sets the screen to show windows of the GtkMountOperation on.
|
Gtk.MountOperation
Method |
get_screen
()
:
Gdk.Screen
Gets the screen on which windows of the GtkMountOperation will be shown.
|
Gtk.RecentManager
Method |
Gets the recent manager object associated with screen; if this function has not previously been called for the given screen, a new recent manager object will be created and associated with the screen.
|
Gtk.RecentManager
Method |
set_screen
(Screen screen)
:
none
Sets the screen for a recent manager; the screen is used to track the user's currently configured recently used documents storage.
|
Gtk.Settings
Method |
Gets the GtkSettings object for screen, creating it if necessary.
|
Gtk.StatusIcon
Property |
screen : Gdk.Screen
|
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.StatusIcon
Method |
get_screen
()
:
Gdk.Screen
|
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 |
set_screen
(Screen screen)
:
none
|
Gtk.Window
Method |
get_screen
()
:
Gdk.Screen
|
Notify.Notification
Method |
|
PanelApplet.PanelApplet
Method |
|
Unique.App
Property |
screen : Gdk.Screen
The GdkScreen of the application.
|
Unique.Backend
Method |
get_screen
()
:
Gdk.Screen
FIXME
|
Unique.Backend
Method |
set_screen
(Screen screen)
:
none
FIXME
|
Unique.MessageData
Method |
get_screen
()
:
Gdk.Screen
Returns a pointer to the screen from where the message came.
|