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

    pub trait MonitorExt {
        fn get_display(&self) -> Option<Display>;
        fn get_geometry(&self) -> Rectangle;
        fn get_height_mm(&self) -> i32;
        fn get_manufacturer(&self) -> Option<String>;
        fn get_model(&self) -> Option<String>;
        fn get_refresh_rate(&self) -> i32;
        fn get_scale_factor(&self) -> i32;
        fn get_subpixel_layout(&self) -> SubpixelLayout;
        fn get_width_mm(&self) -> i32;
        fn get_workarea(&self) -> Rectangle;
        fn is_primary(&self) -> bool;
        fn get_property_display(&self) -> Option<Display>;
        fn get_property_geometry(&self) -> Option<Rectangle>;
        fn get_property_height_mm(&self) -> i32;
        fn get_property_refresh_rate(&self) -> i32;
        fn get_property_scale_factor(&self) -> i32;
        fn get_property_width_mm(&self) -> i32;
        fn get_property_workarea(&self) -> Option<Rectangle>;
        fn connect_invalidate<F: Fn(&Self) + 'static>(&self, f: F) -> u64;
    }

## Required Methods

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

### `fn get_geometry(&self) -> Rectangle`

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

### `fn get_manufacturer(&self) -> Option<String>`

### `fn get_model(&self) -> Option<String>`

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

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

### `fn get_subpixel_layout(&self) -> SubpixelLayout`

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

### `fn get_workarea(&self) -> Rectangle`

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

### `fn get_property_display(&self) -> Option<Display>`

### `fn get_property_geometry(&self) -> Option<Rectangle>`

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

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

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

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

### `fn get_property_workarea(&self) -> Option<Rectangle>`

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

## Implementors

- `impl<O: IsA<Monitor> + IsA<Object>> MonitorExt 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`)