Trait gdk::prelude::DisplayExt [] [src]

pub trait DisplayExt {
    fn beep(&self);
    fn close(&self);
    fn device_is_grabbed<P: IsA<Device>>(&self, device: &P) -> bool;
    fn flush(&self);
    fn get_app_launch_context(&self) -> Option<AppLaunchContext>;
    fn get_default_cursor_size(&self) -> u32;
    fn get_default_group(&self) -> Window;
    fn get_default_screen(&self) -> Screen;
    fn get_default_seat(&self) -> Option<Seat>;
    fn get_device_manager(&self) -> Option<DeviceManager>;
    fn get_event(&self) -> Option<Event>;
    fn get_maximal_cursor_size(&self) -> (u32, u32);
    fn get_monitor(&self, monitor_num: i32) -> Option<Monitor>;
    fn get_monitor_at_point(&self, x: i32, y: i32) -> Option<Monitor>;
    fn get_monitor_at_window(&self, window: &Window) -> Option<Monitor>;
    fn get_n_monitors(&self) -> i32;
    fn get_n_screens(&self) -> i32;
    fn get_name(&self) -> String;
    fn get_pointer(&self) -> (Screen, i32, i32, ModifierType);
    fn get_primary_monitor(&self) -> Option<Monitor>;
    fn get_screen(&self, screen_num: i32) -> Screen;
    fn get_window_at_pointer(&self) -> (Option<Window>, i32, i32);
    fn has_pending(&self) -> bool;
    fn is_closed(&self) -> bool;
    fn keyboard_ungrab(&self, time_: u32);
    fn list_devices(&self) -> Vec<Device>;
    fn list_seats(&self) -> Vec<Seat>;
    fn notify_startup_complete(&self, startup_id: &str);
    fn peek_event(&self) -> Option<Event>;
    fn pointer_is_grabbed(&self) -> bool;
    fn pointer_ungrab(&self, time_: u32);
    fn put_event(&self, event: &Event);
    fn request_selection_notification(&self, selection: &Atom) -> bool;
    fn set_double_click_distance(&self, distance: u32);
    fn set_double_click_time(&self, msec: u32);
    fn store_clipboard(
        &self,
        clipboard_window: &Window,
        time_: u32,
        targets: &[&Atom]
    ); fn supports_clipboard_persistence(&self) -> bool; fn supports_composite(&self) -> bool; fn supports_cursor_alpha(&self) -> bool; fn supports_cursor_color(&self) -> bool; fn supports_input_shapes(&self) -> bool; fn supports_selection_notification(&self) -> bool; fn supports_shapes(&self) -> bool; fn sync(&self); fn warp_pointer(&self, screen: &Screen, x: i32, y: i32); fn connect_closed<F: Fn(&Self, bool) + 'static>(&self, f: F) -> u64; fn connect_monitor_added<F: Fn(&Self, &Monitor) + 'static>(
        &self,
        f: F
    ) -> u64; fn connect_monitor_removed<F: Fn(&Self, &Monitor) + 'static>(
        &self,
        f: F
    ) -> u64; fn connect_opened<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_seat_added<F: Fn(&Self, &Seat) + 'static>(&self, f: F) -> u64; fn connect_seat_removed<F: Fn(&Self, &Seat) + 'static>(&self, f: F) -> u64; }

Required Methods

Implementors