pub struct HitRegions {
pub pixels_per_point: f32,
pub size: [i32; 2],
pub caption: Option<RectPx>,
pub holes: Vec<RectPx>,
pub minimize: Option<RectPx>,
pub maximize: Option<RectPx>,
pub close: Option<RectPx>,
pub grip: i32,
pub fullscreen: bool,
}Expand description
A window’s frame regions, in physical client pixels.
Fields§
§pixels_per_point: f32Physical pixels per point when they were measured.
size: [i32; 2]The client area’s size.
caption: Option<RectPx>The title bar.
holes: Vec<RectPx>Widgets on the title bar (a logo, menus, the application’s buttons): they take their own clicks.
minimize: Option<RectPx>§maximize: Option<RectPx>§close: Option<RectPx>§grip: i32The resize edges’ width; zero when the window cannot be resized from its edges (maximized, full screen).
fullscreen: boolThe window is in full screen: its caption does not move it (a platform layer answers it as client area).
Implementations§
Source§impl HitRegions
impl HitRegions
Sourcepub fn measure(layout: &FrameLayout, ppp: f32) -> HitRegions
pub fn measure(layout: &FrameLayout, ppp: f32) -> HitRegions
The regions of a frame laid out in points.
Trait Implementations§
Source§impl Clone for HitRegions
impl Clone for HitRegions
Source§fn clone(&self) -> HitRegions
fn clone(&self) -> HitRegions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HitRegions
impl Debug for HitRegions
Source§impl Default for HitRegions
impl Default for HitRegions
Source§fn default() -> HitRegions
fn default() -> HitRegions
Returns the “default value” for a type. Read more
Source§impl PartialEq for HitRegions
impl PartialEq for HitRegions
Source§impl Serialize for HitRegions
impl Serialize for HitRegions
impl StructuralPartialEq for HitRegions
Auto Trait Implementations§
impl Freeze for HitRegions
impl RefUnwindSafe for HitRegions
impl Send for HitRegions
impl Sync for HitRegions
impl Unpin for HitRegions
impl UnsafeUnpin for HitRegions
impl UnwindSafe for HitRegions
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more