#[repr(transparent)]pub struct TTF_HorizontalAlignment(pub c_int);Expand description
The horizontal alignment used when rendering wrapped text.
§Availability
This enum is available since SDL_ttf 3.0.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
INVALID | TTF_HORIZONTAL_ALIGN_INVALID | |
LEFT | TTF_HORIZONTAL_ALIGN_LEFT | |
CENTER | TTF_HORIZONTAL_ALIGN_CENTER | |
RIGHT | TTF_HORIZONTAL_ALIGN_RIGHT |
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for TTF_HorizontalAlignment
impl Clone for TTF_HorizontalAlignment
Source§fn clone(&self) -> TTF_HorizontalAlignment
fn clone(&self) -> TTF_HorizontalAlignment
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 Default for TTF_HorizontalAlignment
impl Default for TTF_HorizontalAlignment
Source§fn default() -> TTF_HorizontalAlignment
fn default() -> TTF_HorizontalAlignment
Returns the “default value” for a type. Read more
Source§impl From<TTF_HorizontalAlignment> for c_int
impl From<TTF_HorizontalAlignment> for c_int
Source§fn from(value: TTF_HorizontalAlignment) -> Self
fn from(value: TTF_HorizontalAlignment) -> Self
Converts to this type from the input type.
Source§impl Hash for TTF_HorizontalAlignment
impl Hash for TTF_HorizontalAlignment
Source§impl Ord for TTF_HorizontalAlignment
impl Ord for TTF_HorizontalAlignment
Source§fn cmp(&self, other: &TTF_HorizontalAlignment) -> Ordering
fn cmp(&self, other: &TTF_HorizontalAlignment) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<TTF_HorizontalAlignment> for c_int
impl PartialEq<TTF_HorizontalAlignment> for c_int
Source§impl PartialEq<i32> for TTF_HorizontalAlignment
impl PartialEq<i32> for TTF_HorizontalAlignment
Source§impl PartialEq for TTF_HorizontalAlignment
impl PartialEq for TTF_HorizontalAlignment
Source§impl PartialOrd for TTF_HorizontalAlignment
impl PartialOrd for TTF_HorizontalAlignment
impl Copy for TTF_HorizontalAlignment
impl Eq for TTF_HorizontalAlignment
impl StructuralPartialEq for TTF_HorizontalAlignment
Auto Trait Implementations§
impl Freeze for TTF_HorizontalAlignment
impl RefUnwindSafe for TTF_HorizontalAlignment
impl Send for TTF_HorizontalAlignment
impl Sync for TTF_HorizontalAlignment
impl Unpin for TTF_HorizontalAlignment
impl UnwindSafe for TTF_HorizontalAlignment
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