-
public void broadcast_client_message (Event event)
-
public weak Window get_active_window ()
Returns the screen's currently active window.
-
public weak Colormap get_default_colormap ()
Gets the default colormap for screen.
-
public weak Display get_display ()
Gets the display to which the screen belongs.
-
public unowned FontOptions get_font_options ()
-
public int get_height ()
Gets the height of screen in pixels
-
public int get_height_mm ()
Returns the height of screen in millimeters. Note that on some X servers this value will
not be correct.
-
public int get_monitor_at_point (int x, int y)
Returns the monitor number in which the point (@x,@y) is located.
-
public int get_monitor_at_window (Window window)
Returns the number of the monitor in which the largest area of the bounding rectangle of window
resides.
-
public void get_monitor_geometry (int monitor_num, out Rectangle dest)
Retrieves the Rectangle representing the size and
position of the individual monitor within the entire screen area.
-
public int get_monitor_height_mm (int monitor_num)
Gets the height in millimeters of the specified monitor.
-
public unowned string get_monitor_plug_name (int monitor_num)
Returns the output name of the specified monitor. Usually something like VGA, DVI, or TV, not the actual
product name of the display device.
-
public int get_monitor_width_mm (int monitor_num)
Gets the width in millimeters of the specified monitor, if available.
-
public int get_n_monitors ()
Returns the number of monitors which screen consists of.
-
public int get_number ()
Gets the index of screen among the screens in the display to which it belongs. (See
get_display)
-
public int get_primary_monitor ()
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.
-
public double get_resolution ()
Gets the resolution for font handling on the screen; see
set_resolution for full details.
-
public weak Colormap get_rgb_colormap ()
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.
-
public weak Visual get_rgb_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.
-
public weak Colormap get_rgba_colormap ()
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 when displaying the window on the screen: in particular, for X
an appropriate windowing manager and compositing manager must be running to provide appropriate display.
-
public weak Visual get_rgba_visual ()
Gets a visual to use for creating windows or pixmaps with an alpha channel. See the docs for
get_rgba_colormap for caveats.
-
public weak Window get_root_window ()
Gets the root window of screen.
-
public bool get_setting (string name, Value value)
-
public weak Colormap get_system_colormap ()
Gets the system's default colormap for screen
-
public weak Visual get_system_visual ()
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.
-
public List<weak Window> get_toplevel_windows ()
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 get_default_root_window).
-
public int get_width ()
Gets the width of screen in pixels
-
public int get_width_mm ()
Gets the width of screen in millimeters. Note that on some X servers this value will not be
correct.
-
public List<Window>? get_window_stack ()
Returns a List of
Windows representing the current window stack.
-
public bool is_composited ()
Returns whether windows with an RGBA visual can reasonably be expected to have their alpha channel drawn
correctly on the screen.
-
public List<weak Visual> list_visuals ()
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.
-
public unowned string make_display_name ()
Determines the name to pass to open to get a
Display with this screen as the default screen.
-
public void set_default_colormap (Colormap colormap)
Sets the default colormap for screen.
-
public void set_font_options (FontOptions options)
Sets the default font options for the screen. These options will be set on any
Context's newly created with
pango_context_get_for_screen. Changing the default set of font
options does not affect contexts that have already been created.
-
public void set_resolution (double dpi)