Trait DisplayExt

Source
pub trait DisplayExt: IsA<Display> + 'static {
Show 34 methods // Provided 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 dmabuf_formats(&self) -> DmabufFormats { ... } fn monitor_at_surface(&self, surface: &impl IsA<Surface>) -> Option<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 supports_shadow_width(&self) -> bool { ... } fn sync(&self) { ... } fn connect_closed<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self, bool) + 'static { ... } fn connect_opened<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... } fn connect_seat_added<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self, &Seat) + 'static { ... } fn connect_seat_removed<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self, &Seat) + 'static { ... } fn connect_setting_changed<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self, &str) + 'static { ... } fn connect_composited_notify<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... } fn connect_dmabuf_formats_notify<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... } fn connect_input_shapes_notify<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... } fn connect_rgba_notify<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... } fn connect_shadow_width_notify<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... }
}

Provided 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 dmabuf_formats(&self) -> DmabufFormats

Available on Linux and crate feature v4_14 only.
Source

fn monitor_at_surface(&self, surface: &impl IsA<Surface>) -> Option<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>

๐Ÿ‘ŽDeprecated: Since 4.10
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)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

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

Available on crate feature v4_4 only.
Source

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

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn supports_input_shapes(&self) -> bool

Source

fn supports_shadow_width(&self) -> bool

Available on crate feature v4_14 only.
Source

fn sync(&self)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Available on crate feature v4_14 only.
Source

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

Source

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

Source

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

Available on crate feature v4_14 only.

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง

Sourceยง

impl<O> DisplayExt for O
where O: IsA<Display>,