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§
fn beep(&self)
fn close(&self)
fn create_gl_context(&self) -> Result<GLContext, Error>
Available on crate feature
v4_6
only.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
Available on crate feature
v4_14
only.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>
👎Deprecated: Since 4.10
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)
👎Deprecated: Since 4.10
fn prepare_gl(&self) -> Result<(), Error>
Available on crate feature
v4_4
only.fn put_event(&self, event: impl AsRef<Event>)
👎Deprecated: Since 4.10
fn supports_input_shapes(&self) -> bool
fn supports_shadow_width(&self) -> bool
Available on crate feature
v4_14
only.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
Available on crate feature
v4_14
only.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
Available on crate feature
v4_14
only.Object Safety§
This trait is not object safe.