pub struct Display(_, _);Implementations
sourceimpl Display
impl Display
pub fn beep(&self)
pub fn close(&self)
pub fn device_is_grabbed(&self, device: &Device) -> bool
pub fn flush(&self)
pub fn get_app_launch_context(&self) -> Option<AppLaunchContext>
pub fn get_default_cursor_size(&self) -> u32
pub fn get_default_group(&self) -> Window
pub fn get_default_screen(&self) -> Screen
pub fn get_default_seat(&self) -> Option<Seat>
pub fn get_device_manager(&self) -> Option<DeviceManager>
👎Deprecated
pub fn get_event(&self) -> Option<Event>
pub fn get_maximal_cursor_size(&self) -> (u32, u32)
pub fn get_monitor(&self, monitor_num: i32) -> Option<Monitor>
pub fn get_monitor_at_point(&self, x: i32, y: i32) -> Option<Monitor>
pub fn get_monitor_at_window<P: IsA<Window>>(
&self,
window: &P
) -> Option<Monitor>
pub fn get_n_monitors(&self) -> i32
pub fn get_name(&self) -> GString
pub fn get_primary_monitor(&self) -> Option<Monitor>
pub fn get_screen(&self, screen_num: i32) -> Screen
👎Deprecated
pub fn has_pending(&self) -> bool
pub fn is_closed(&self) -> bool
pub fn list_seats(&self) -> Vec<Seat>
pub fn notify_startup_complete(&self, startup_id: &str)
pub fn peek_event(&self) -> Option<Event>
pub fn put_event(&self, event: &Event)
pub fn request_selection_notification(&self, selection: &Atom) -> bool
pub fn set_double_click_distance(&self, distance: u32)
pub fn set_double_click_time(&self, msec: u32)
pub fn store_clipboard<P: IsA<Window>>(
&self,
clipboard_window: &P,
time_: u32,
targets: &[&Atom]
)
pub fn supports_clipboard_persistence(&self) -> bool
pub fn supports_composite(&self) -> bool
👎Deprecated
pub fn supports_cursor_alpha(&self) -> bool
pub fn supports_cursor_color(&self) -> bool
pub fn supports_input_shapes(&self) -> bool
pub fn supports_selection_notification(&self) -> bool
pub fn supports_shapes(&self) -> bool
pub fn sync(&self)
pub fn get_default() -> Option<Display>
pub fn open(display_name: &str) -> Option<Display>
pub fn open_default_libgtk_only() -> Option<Display>
👎Deprecated
pub fn connect_closed<F: Fn(&Display, bool) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_monitor_added<F: Fn(&Display, &Monitor) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_monitor_removed<F: Fn(&Display, &Monitor) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_opened<F: Fn(&Display) + 'static>(&self, f: F) -> SignalHandlerId
pub fn connect_seat_added<F: Fn(&Display, &Seat) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_seat_removed<F: Fn(&Display, &Seat) + 'static>(
&self,
f: F
) -> SignalHandlerId
Trait Implementations
sourceimpl Ord for Display
impl Ord for Display
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ObjectType> PartialOrd<T> for Display
impl<T: ObjectType> PartialOrd<T> for Display
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for Display
impl StaticType for Display
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for Display
Auto Trait Implementations
impl RefUnwindSafe for Display
impl !Send for Display
impl !Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
sourcefn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T. Read moresourcefn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T. Read moresourcefn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T. Read moresourcefn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T. Read moresourcefn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moresourcefn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moresourceunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T unconditionally. Read moresourceunsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T unconditionally. Read moresourceimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
sourcefn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true if the object is an instance of (can be cast to) T.