pub struct FrameOptions {
pub titlebar_height: f32,
pub caption_button_width: f32,
pub minimum_size: Option<LogicalSize>,
pub rounded_corners: bool,
pub client_areas: Vec<ClientArea>,
}Expand description
Geometry and behavior of the native borderless frame.
Fields§
§titlebar_height: f32Height of the Slint-drawn title bar in logical pixels.
Width of each of the three system caption buttons in logical pixels.
minimum_size: Option<LogicalSize>Minimum outer window size in logical pixels. None keeps Slint’s limit.
rounded_corners: boolAsk DWM for Windows 11 rounded corners. Ignored on older Windows.
client_areas: Vec<ClientArea>Interactive Slint controls located inside the title bar.
Trait Implementations§
Source§impl Clone for FrameOptions
impl Clone for FrameOptions
Source§impl Debug for FrameOptions
impl Debug for FrameOptions
Auto Trait Implementations§
impl Freeze for FrameOptions
impl RefUnwindSafe for FrameOptions
impl Send for FrameOptions
impl Sync for FrameOptions
impl Unpin for FrameOptions
impl UnsafeUnpin for FrameOptions
impl UnwindSafe for FrameOptions
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