Struct qt_gui::q_text_option::WrapMode
source · pub struct WrapMode(/* private fields */);
Expand description
This enum describes how text is wrapped in a document.
C++ enum: QTextOption::WrapMode
.
This enum describes how text is wrapped in a document.
Implementations§
source§impl WrapMode
impl WrapMode
sourcepub const WordWrap: WrapMode = _
pub const WordWrap: WrapMode = _
Text is wrapped at word boundaries. (C++ enum variant: WordWrap = 1
)
sourcepub const ManualWrap: WrapMode = _
pub const ManualWrap: WrapMode = _
Same as QTextOption::NoWrap (C++ enum variant: ManualWrap = 2
)
sourcepub const WrapAnywhere: WrapMode = _
pub const WrapAnywhere: WrapMode = _
Text can be wrapped at any point on a line, even if it occurs in the middle of a word. (C++ enum variant: WrapAnywhere = 3
)
sourcepub const WrapAtWordBoundaryOrAnywhere: WrapMode = _
pub const WrapAtWordBoundaryOrAnywhere: WrapMode = _
If possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word. (C++ enum variant: WrapAtWordBoundaryOrAnywhere = 4
)
Trait Implementations§
source§impl PartialEq for WrapMode
impl PartialEq for WrapMode
impl Copy for WrapMode
impl Eq for WrapMode
impl StructuralEq for WrapMode
impl StructuralPartialEq for WrapMode
Auto Trait Implementations§
impl RefUnwindSafe for WrapMode
impl Send for WrapMode
impl Sync for WrapMode
impl Unpin for WrapMode
impl UnwindSafe for WrapMode
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