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

Implementors