# Trait gdk::prelude::ScreenExt [−] [src]

    pub trait ScreenExt {
        fn get_active_window(&self) -> Option<Window>;
        fn get_display(&self) -> Display;
        fn get_height(&self) -> i32;
        fn get_height_mm(&self) -> i32;
        fn get_monitor_at_point(&self, x: i32, y: i32) -> i32;
        fn get_monitor_at_window(&self, window: &Window) -> i32;
        fn get_monitor_geometry(&self, monitor_num: i32) -> Rectangle;
        fn get_monitor_height_mm(&self, monitor_num: i32) -> i32;
        fn get_monitor_plug_name(&self, monitor_num: i32) -> Option<String>;
        fn get_monitor_scale_factor(&self, monitor_num: i32) -> i32;
        fn get_monitor_width_mm(&self, monitor_num: i32) -> i32;
        fn get_monitor_workarea(&self, monitor_num: i32) -> Rectangle;
        fn get_n_monitors(&self) -> i32;
        fn get_number(&self) -> i32;
        fn get_primary_monitor(&self) -> i32;
        fn get_resolution(&self) -> f64;
        fn get_rgba_visual(&self) -> Option<Visual>;
        fn get_root_window(&self) -> Option<Window>;
        fn get_system_visual(&self) -> Option<Visual>;
        fn get_toplevel_windows(&self) -> Vec<Window>;
        fn get_width(&self) -> i32;
        fn get_width_mm(&self) -> i32;
        fn get_window_stack(&self) -> Vec<Window>;
        fn is_composited(&self) -> bool;
        fn list_visuals(&self) -> Vec<Visual>;
        fn make_display_name(&self) -> String;
        fn set_font_options<'a, P: Into<Option<&'a FontOptions>>>(&self, options: P);
        fn set_resolution(&self, dpi: f64);
        fn get_property_resolution(&self) -> f64;
        fn set_property_resolution(&self, resolution: f64);
        fn connect_composited_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64;
        fn connect_monitors_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64;
        fn connect_size_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64;
    }

## Required Methods

### `fn get_active_window(&self) -> Option<Window>`

### `fn get_display(&self) -> Display`

### `fn get_height(&self) -> i32`

### `fn get_height_mm(&self) -> i32`

### `fn get_monitor_at_point(&self, x: i32, y: i32) -> i32`

### `fn get_monitor_at_window(&self, window: &Window) -> i32`

### `fn get_monitor_geometry(&self, monitor_num: i32) -> Rectangle`

### `fn get_monitor_height_mm(&self, monitor_num: i32) -> i32`

### `fn get_monitor_plug_name(&self, monitor_num: i32) -> Option<String>`

### `fn get_monitor_scale_factor(&self, monitor_num: i32) -> i32`

### `fn get_monitor_width_mm(&self, monitor_num: i32) -> i32`

### `fn get_monitor_workarea(&self, monitor_num: i32) -> Rectangle`

### `fn get_n_monitors(&self) -> i32`

### `fn get_number(&self) -> i32`

### `fn get_primary_monitor(&self) -> i32`

### `fn get_resolution(&self) -> f64`

### `fn get_rgba_visual(&self) -> Option<Visual>`

### `fn get_root_window(&self) -> Option<Window>`

### `fn get_system_visual(&self) -> Option<Visual>`

### `fn get_toplevel_windows(&self) -> Vec<Window>`

### `fn get_width(&self) -> i32`

### `fn get_width_mm(&self) -> i32`

### `fn get_window_stack(&self) -> Vec<Window>`

### `fn is_composited(&self) -> bool`

### `fn list_visuals(&self) -> Vec<Visual>`

### `fn make_display_name(&self) -> String`

### `fn set_font_options<'a, P: Into<Option<&'a FontOptions>>>(&self, options: P)`

### `fn set_resolution(&self, dpi: f64)`

### `fn get_property_resolution(&self) -> f64`

### `fn set_property_resolution(&self, resolution: f64)`

### `fn connect_composited_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64`

### `fn connect_monitors_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64`

### `fn connect_size_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64`

## Implementors

- `impl<O: IsA<Screen> + IsA<Object>> ScreenExt for O`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)