Trait gdk4::prelude::DisplayExt

source ·
pub trait DisplayExt: IsA<Display> + Sealed + 'static {
Show 35 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 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_dmabuf_formats_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 { ... } fn connect_shadow_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}

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 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 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_dmabuf_formats_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Available on crate feature v4_14 only.
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

source

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

Available on crate feature v4_14 only.

Object Safety§

This trait is not object safe.

Implementors§