#[non_exhaustive]pub struct DecorationGeometry {
pub panel_x: i32,
pub panel_y: i32,
pub panel_w: i32,
pub panel_h: i32,
pub title_bar_height: i32,
pub button_radius: i32,
pub button_cy: i32,
pub close_cx: i32,
pub minimize_cx: i32,
pub maximize_cx: i32,
}Expand description
Where everything sits inside a decoration of a given size.
All in decoration-local pixels, with the origin at the top left of the decoration, not of the window — the shadow is drawn outside the panel, so the panel starts inset by the shadow’s extent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.panel_x: i32Panel left edge.
panel_y: i32Panel top edge.
panel_w: i32Panel width.
panel_h: i32Panel height.
title_bar_height: i32Title bar height, measured from the panel’s top.
Radius of each window button.
Vertical center of every button.
close_cx: i32Horizontal center of the close button.
minimize_cx: i32Of the minimize button.
maximize_cx: i32Of the maximize button.
Trait Implementations§
Source§impl Clone for DecorationGeometry
impl Clone for DecorationGeometry
impl Copy for DecorationGeometry
Source§impl Debug for DecorationGeometry
impl Debug for DecorationGeometry
Source§impl Default for DecorationGeometry
impl Default for DecorationGeometry
impl Eq for DecorationGeometry
Source§impl PartialEq for DecorationGeometry
impl PartialEq for DecorationGeometry
impl StructuralPartialEq for DecorationGeometry
Auto Trait Implementations§
impl Freeze for DecorationGeometry
impl RefUnwindSafe for DecorationGeometry
impl Send for DecorationGeometry
impl Sync for DecorationGeometry
impl Unpin for DecorationGeometry
impl UnsafeUnpin for DecorationGeometry
impl UnwindSafe for DecorationGeometry
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