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§
fn beep(&self)
fn close(&self)
sourcefn create_gl_context(&self) -> Result<GLContext, Error>
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 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)
sourcefn prepare_gl(&self) -> Result<(), Error>
fn prepare_gl(&self) -> Result<(), Error>
Available on crate feature
v4_4
only.