Struct WorkspaceArea
pub struct WorkspaceArea {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub x_fixed_frame: i32,
pub y_fixed_frame: i32,
pub x_size_frame: i32,
pub y_size_frame: i32,
}Expand description
The available workspace area on the primary monitor
Also includes fixed_frame and size_frame attributes respecitvely indicating
the thickness of the frame around the perimeter of a window and the thickness
of the sizing border around the perimeter of a window.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsystemmetrics
Fields§
§x: i32The x coordinate of the workspace area in pixels.
From the top left of the screen.
y: i32The y coordinate of the workspace area in pixels.
From the top left of the screen.
width: i32The width in pixels of the workspace area.
height: i32The height in pixels of the workspace area.
x_fixed_frame: i32The thickness of the frame around the perimeter of a window on the x-axis.
y_fixed_frame: i32The thickness of the frame around the perimeter of a window on the y-axis.
x_size_frame: i32The thickness of the sizing border around the perimter of a window on the x-axis.
y_size_frame: i32The thickness of the sizing border around the perimter of a window on the y-axis.
Trait Implementations§
§impl Clone for WorkspaceArea
impl Clone for WorkspaceArea
§fn clone(&self) -> WorkspaceArea
fn clone(&self) -> WorkspaceArea
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WorkspaceArea
Auto Trait Implementations§
impl Freeze for WorkspaceArea
impl RefUnwindSafe for WorkspaceArea
impl Send for WorkspaceArea
impl Sync for WorkspaceArea
impl Unpin for WorkspaceArea
impl UnsafeUnpin for WorkspaceArea
impl UnwindSafe for WorkspaceArea
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.