pub struct CsdGeometry {
pub titlebar_height: f32,
pub button_width: f32,
pub button_height: f32,
pub resize_border_thickness: f32,
pub placement: ControlPlacement,
}Expand description
Geometry parameters defining CSD titlebar and resize borders.
Fields§
§titlebar_height: f32§resize_border_thickness: f32§placement: ControlPlacementImplementations§
Source§impl CsdGeometry
impl CsdGeometry
Sourcepub fn new(
titlebar_height: f32,
button_width: f32,
button_height: f32,
resize_border_thickness: f32,
placement: ControlPlacement,
) -> Self
pub fn new( titlebar_height: f32, button_width: f32, button_height: f32, resize_border_thickness: f32, placement: ControlPlacement, ) -> Self
Creates custom CSD geometry parameters.
Sourcepub fn macos_style() -> Self
pub fn macos_style() -> Self
Creates a macOS-styled CSD geometry layout with left-aligned buttons.
Trait Implementations§
Source§impl Clone for CsdGeometry
impl Clone for CsdGeometry
impl Copy for CsdGeometry
Source§impl Debug for CsdGeometry
impl Debug for CsdGeometry
Source§impl Default for CsdGeometry
impl Default for CsdGeometry
Source§impl PartialEq for CsdGeometry
impl PartialEq for CsdGeometry
impl StructuralPartialEq for CsdGeometry
Auto Trait Implementations§
impl Forget for CsdGeometry
impl Freeze for CsdGeometry
impl Move for CsdGeometry
impl RefUnwindSafe for CsdGeometry
impl Send for CsdGeometry
impl Sync for CsdGeometry
impl Unpin for CsdGeometry
impl UnsafeUnpin for CsdGeometry
impl UnwindSafe for CsdGeometry
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