pub struct SharedState {
Show 20 fields pub cursor_pos: Option<(f64, f64)>, pub size: Option<(u32, u32)>, pub position: Option<(i32, i32)>, pub inner_position: Option<(i32, i32)>, pub inner_position_rel_parent: Option<(i32, i32)>, pub is_resizable: bool, pub is_decorated: bool, pub last_monitor: MonitorHandle, pub dpi_adjusted: Option<(u32, u32)>, pub(crate) fullscreen: Option<Fullscreen>, pub(crate) desired_fullscreen: Option<Option<Fullscreen>>, pub restore_position: Option<(i32, i32)>, pub desktop_video_mode: Option<(RRCrtc, RRMode)>, pub frame_extents: Option<FrameExtentsHeuristic>, pub min_inner_size: Option<Size>, pub max_inner_size: Option<Size>, pub resize_increments: Option<Size>, pub base_size: Option<Size>, pub visibility: Visibility, pub has_focus: bool,
}

Fields§

§cursor_pos: Option<(f64, f64)>§size: Option<(u32, u32)>§position: Option<(i32, i32)>§inner_position: Option<(i32, i32)>§inner_position_rel_parent: Option<(i32, i32)>§is_resizable: bool§is_decorated: bool§last_monitor: MonitorHandle§dpi_adjusted: Option<(u32, u32)>§fullscreen: Option<Fullscreen>§desired_fullscreen: Option<Option<Fullscreen>>§restore_position: Option<(i32, i32)>§desktop_video_mode: Option<(RRCrtc, RRMode)>§frame_extents: Option<FrameExtentsHeuristic>§min_inner_size: Option<Size>§max_inner_size: Option<Size>§resize_increments: Option<Size>§base_size: Option<Size>§visibility: Visibility§has_focus: bool

Implementations§

source§

impl SharedState

source

fn new( last_monitor: X11MonitorHandle, window_attributes: &WindowAttributes ) -> Mutex<Self>

Trait Implementations§

source§

impl Debug for SharedState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.