pub struct TitleBarArea {
pub height: f64,
pub left_inset: f64,
pub right_inset: f64,
}Expand description
The strip along a view’s top that the system’s window buttons sit in, as Windows’s
AppWindowTitleBar reports it (Height, LeftInset, RightInset) and the web’s window
controls overlay its title bar area. The view’s padding already keeps content below it; a title
bar that draws in the strip keeps its items clear of the insets.
Fields§
§height: f64How far the strip reaches down from the view’s top.
left_inset: f64How much of the strip the system keeps from its left end: its buttons where they are on that side, else as much as the window’s rounded corner takes.
right_inset: f64How much of the strip the system keeps from its right end, as left_inset is kept.
Trait Implementations§
Source§impl Clone for TitleBarArea
impl Clone for TitleBarArea
impl Copy for TitleBarArea
Source§impl Debug for TitleBarArea
impl Debug for TitleBarArea
Source§impl PartialEq for TitleBarArea
impl PartialEq for TitleBarArea
impl StructuralPartialEq for TitleBarArea
Auto Trait Implementations§
impl Forget for TitleBarArea
impl Freeze for TitleBarArea
impl Move for TitleBarArea
impl RefUnwindSafe for TitleBarArea
impl Send for TitleBarArea
impl Sync for TitleBarArea
impl Unpin for TitleBarArea
impl UnsafeUnpin for TitleBarArea
impl UnwindSafe for TitleBarArea
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