pub struct Screen(_, _);Implementations
sourceimpl Screen
impl Screen
pub fn get_active_window(&self) -> Option<Window>
👎Deprecated
pub fn get_display(&self) -> Display
pub fn get_height(&self) -> i32
👎Deprecated
pub fn get_height_mm(&self) -> i32
👎Deprecated
pub fn get_monitor_at_point(&self, x: i32, y: i32) -> i32
👎Deprecated
pub fn get_monitor_at_window<P: IsA<Window>>(&self, window: &P) -> i32
👎Deprecated
pub fn get_monitor_geometry(&self, monitor_num: i32) -> Rectangle
👎Deprecated
pub fn get_monitor_height_mm(&self, monitor_num: i32) -> i32
👎Deprecated
pub fn get_monitor_plug_name(&self, monitor_num: i32) -> Option<GString>
👎Deprecated
pub fn get_monitor_scale_factor(&self, monitor_num: i32) -> i32
👎Deprecated
pub fn get_monitor_width_mm(&self, monitor_num: i32) -> i32
👎Deprecated
pub fn get_monitor_workarea(&self, monitor_num: i32) -> Rectangle
👎Deprecated
pub fn get_n_monitors(&self) -> i32
👎Deprecated
pub fn get_number(&self) -> i32
👎Deprecated
pub fn get_primary_monitor(&self) -> i32
👎Deprecated
pub fn get_resolution(&self) -> f64
pub fn get_rgba_visual(&self) -> Option<Visual>
pub fn get_root_window(&self) -> Option<Window>
pub fn get_system_visual(&self) -> Option<Visual>
pub fn get_toplevel_windows(&self) -> Vec<Window>
pub fn get_width(&self) -> i32
👎Deprecated
pub fn get_width_mm(&self) -> i32
👎Deprecated
pub fn get_window_stack(&self) -> Vec<Window>
pub fn is_composited(&self) -> bool
pub fn list_visuals(&self) -> Vec<Visual>
pub fn make_display_name(&self) -> GString
👎Deprecated
pub fn set_font_options(&self, options: Option<&FontOptions>)
pub fn set_resolution(&self, dpi: f64)
pub fn get_default() -> Option<Screen>
pub fn height() -> i32
👎Deprecated
pub fn height_mm() -> i32
👎Deprecated
pub fn width() -> i32
👎Deprecated
pub fn width_mm() -> i32
👎Deprecated
pub fn connect_composited_changed<F: Fn(&Screen) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_monitors_changed<F: Fn(&Screen) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_size_changed<F: Fn(&Screen) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_font_options_notify<F: Fn(&Screen) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_resolution_notify<F: Fn(&Screen) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourceimpl Screen
impl Screen
pub fn get_font_options(&self) -> Option<FontOptions>
pub fn get_setting(&self, name: &str) -> Option<Value>
Trait Implementations
sourceimpl Ord for Screen
impl Ord for Screen
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 Screen
impl<T: ObjectType> PartialOrd<T> for Screen
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 Screen
impl StaticType for Screen
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for Screen
Auto Trait Implementations
impl RefUnwindSafe for Screen
impl !Send for Screen
impl !Sync for Screen
impl Unpin for Screen
impl UnwindSafe for Screen
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.