Trait gdk4::prelude::DisplayExt

source ·
pub trait DisplayExt: 'static {
Show 31 methods // Required methods fn beep(&self); fn close(&self); fn create_gl_context(&self) -> Result<GLContext, Error>; fn device_is_grabbed(&self, device: &impl IsA<Device>) -> bool; fn flush(&self); fn app_launch_context(&self) -> AppLaunchContext; fn clipboard(&self) -> Clipboard; fn default_seat(&self) -> Option<Seat>; fn monitor_at_surface(&self, surface: &impl IsA<Surface>) -> Monitor; fn monitors(&self) -> ListModel; fn name(&self) -> GString; fn primary_clipboard(&self) -> Clipboard; fn startup_notification_id(&self) -> Option<GString>; fn is_closed(&self) -> bool; fn is_composited(&self) -> bool; fn is_rgba(&self) -> bool; fn list_seats(&self) -> Vec<Seat>; fn notify_startup_complete(&self, startup_id: &str); fn prepare_gl(&self) -> Result<(), Error>; fn put_event(&self, event: impl AsRef<Event>); fn supports_input_shapes(&self) -> bool; fn sync(&self); fn is_input_shapes(&self) -> bool; fn connect_closed<F: Fn(&Self, bool) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_opened<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_seat_added<F: Fn(&Self, &Seat) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_seat_removed<F: Fn(&Self, &Seat) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_setting_changed<F: Fn(&Self, &str) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_composited_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_input_shapes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn beep(&self)

source

fn close(&self)

source

fn create_gl_context(&self) -> Result<GLContext, Error>

Available on crate feature v4_6 only.
source

fn device_is_grabbed(&self, device: &impl IsA<Device>) -> bool

source

fn flush(&self)

source

fn app_launch_context(&self) -> AppLaunchContext

source

fn clipboard(&self) -> Clipboard

source

fn default_seat(&self) -> Option<Seat>

source

fn monitor_at_surface(&self, surface: &impl IsA<Surface>) -> Monitor

source

fn monitors(&self) -> ListModel

source

fn name(&self) -> GString

source

fn primary_clipboard(&self) -> Clipboard

source

fn startup_notification_id(&self) -> Option<GString>

source

fn is_closed(&self) -> bool

source

fn is_composited(&self) -> bool

source

fn is_rgba(&self) -> bool

source

fn list_seats(&self) -> Vec<Seat>

source

fn notify_startup_complete(&self, startup_id: &str)

source

fn prepare_gl(&self) -> Result<(), Error>

Available on crate feature v4_4 only.
source

fn put_event(&self, event: impl AsRef<Event>)

source

fn supports_input_shapes(&self) -> bool

source

fn sync(&self)

source

fn is_input_shapes(&self) -> bool

source

fn connect_closed<F: Fn(&Self, bool) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_opened<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_seat_added<F: Fn(&Self, &Seat) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_seat_removed<F: Fn(&Self, &Seat) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_setting_changed<F: Fn(&Self, &str) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_composited_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_input_shapes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_rgba_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Implementors§