pub enum SbPart {
Fixed(u32),
Proportional(u8),
}
Available on crate feature
gui
only.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.
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.
Trait Implementations§
source§impl PartialEq for SbPart
impl PartialEq for SbPart
impl Copy for SbPart
impl Eq for SbPart
impl StructuralPartialEq for SbPart
Auto Trait Implementations§
impl Freeze for SbPart
impl RefUnwindSafe for SbPart
impl Send for SbPart
impl Sync for SbPart
impl Unpin for SbPart
impl UnwindSafe for SbPart
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