Enum winsafe::gui::StatusBarPart [−][src]
Expand description
Used when adding the parts in
StatusBar::new
.
Variants
Fixed(u32)
A part that has a fixed size, in pixels.
Will be adjusted to match current system DPI.
Tuple Fields of Fixed
0: u32
Proportional(u8)
A part that will resize when the parent window resizes, filling the space left by the fixed-size parts. Has the resizing proportion.
How proportion works:
- Suppose you have 3 parts, respectively with proportions of 1, 1 and 2.
- If available client area width is 400px, respective part widths will be 100, 100 and 200px.
- If parent is resized to have a client area of 600px, parts will then have 200, 200 and 400px.
If you’re uncertain, just give all resizable parts the proportion 1.
Tuple Fields of Proportional
0: u8
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StatusBarPart
impl Send for StatusBarPart
impl Sync for StatusBarPart
impl Unpin for StatusBarPart
impl UnwindSafe for StatusBarPart
Blanket Implementations
Mutably borrows from an owned value. Read more