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,
) -> CsdGeometry
pub fn new( titlebar_height: f32, button_width: f32, button_height: f32, resize_border_thickness: f32, placement: ControlPlacement, ) -> CsdGeometry
Creates custom CSD geometry parameters.
Sourcepub fn macos_style() -> CsdGeometry
pub fn macos_style() -> CsdGeometry
Creates a macOS-styled CSD geometry layout with left-aligned buttons.
Trait Implementations§
Source§impl Clone for CsdGeometry
impl Clone for CsdGeometry
Source§fn clone(&self) -> CsdGeometry
fn clone(&self) -> CsdGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CsdGeometry
Source§impl Debug for CsdGeometry
impl Debug for CsdGeometry
Source§impl Default for CsdGeometry
impl Default for CsdGeometry
Source§fn default() -> CsdGeometry
fn default() -> CsdGeometry
Returns the “default value” for a type. Read more
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