#[repr(u32)]pub enum Tvg_Text_Wrap {
TVG_TEXT_WRAP_NONE = 0,
TVG_TEXT_WRAP_CHARACTER = 1,
TVG_TEXT_WRAP_WORD = 2,
TVG_TEXT_WRAP_SMART = 3,
TVG_TEXT_WRAP_ELLIPSIS = 4,
TVG_TEXT_WRAP_HYPHENATION = 5,
}Expand description
@brief A data structure storing the information about the color and its relative position inside the gradient bounds.
Variants§
TVG_TEXT_WRAP_NONE = 0
< Do not wrap text. Text is rendered on a single line and may overflow the bounding area.
TVG_TEXT_WRAP_CHARACTER = 1
< Wrap at the character level. If a word cannot fit, it is broken into individual characters to fit the line.
TVG_TEXT_WRAP_WORD = 2
< Wrap at the word level. Words that do not fit are moved to the next line.
TVG_TEXT_WRAP_SMART = 3
< Smart choose wrapping method: word wrap first, falling back to character wrap if a word does not fit.
TVG_TEXT_WRAP_ELLIPSIS = 4
< Truncate overflowing text and append an ellipsis (“…”) at the end. Typically used for single-line labels.
TVG_TEXT_WRAP_HYPHENATION = 5
< Reserved. No Support.
Trait Implementations§
Source§impl Clone for Tvg_Text_Wrap
impl Clone for Tvg_Text_Wrap
Source§fn clone(&self) -> Tvg_Text_Wrap
fn clone(&self) -> Tvg_Text_Wrap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Tvg_Text_Wrap
impl Debug for Tvg_Text_Wrap
Source§impl Hash for Tvg_Text_Wrap
impl Hash for Tvg_Text_Wrap
Source§impl PartialEq for Tvg_Text_Wrap
impl PartialEq for Tvg_Text_Wrap
Source§fn eq(&self, other: &Tvg_Text_Wrap) -> bool
fn eq(&self, other: &Tvg_Text_Wrap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Tvg_Text_Wrap
impl Eq for Tvg_Text_Wrap
impl StructuralPartialEq for Tvg_Text_Wrap
Auto Trait Implementations§
impl Freeze for Tvg_Text_Wrap
impl RefUnwindSafe for Tvg_Text_Wrap
impl Send for Tvg_Text_Wrap
impl Sync for Tvg_Text_Wrap
impl Unpin for Tvg_Text_Wrap
impl UnsafeUnpin for Tvg_Text_Wrap
impl UnwindSafe for Tvg_Text_Wrap
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