pub enum ContentWidthMode {
Auto,
Fixed(f32),
}Expand description
How the content (layout) width is determined.
Controls whether text reflows when the viewport resizes (web/editor style) or wraps at a fixed width (page/WYSIWYG style).
Variants§
Auto
Content width equals viewport width. Text reflows on window resize. This is the default.typical for editors and web-style layout.
Fixed(f32)
Content width is fixed, independent of viewport. For page-like layout (WYSIWYG), print preview, or side panels. If the content is wider than the viewport, horizontal scrolling is needed. If narrower, the content is centered or left-aligned within the viewport.
Trait Implementations§
Source§impl Clone for ContentWidthMode
impl Clone for ContentWidthMode
Source§fn clone(&self) -> ContentWidthMode
fn clone(&self) -> ContentWidthMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentWidthMode
impl Debug for ContentWidthMode
Source§impl Default for ContentWidthMode
impl Default for ContentWidthMode
Source§fn default() -> ContentWidthMode
fn default() -> ContentWidthMode
Returns the “default value” for a type. Read more
impl Copy for ContentWidthMode
Auto Trait Implementations§
impl Freeze for ContentWidthMode
impl RefUnwindSafe for ContentWidthMode
impl Send for ContentWidthMode
impl Sync for ContentWidthMode
impl Unpin for ContentWidthMode
impl UnsafeUnpin for ContentWidthMode
impl UnwindSafe for ContentWidthMode
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