Struct ggez::graphics::TextLayout
source · pub struct TextLayout {
pub h_align: TextAlign,
pub v_align: TextAlign,
}
Expand description
Describes text alignment along both axes.
Fields§
§h_align: TextAlign
Horizontal alignment.
v_align: TextAlign
Vertical alignment.
Implementations§
Trait Implementations§
source§impl Clone for TextLayout
impl Clone for TextLayout
source§fn clone(&self) -> TextLayout
fn clone(&self) -> TextLayout
Returns a copy 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 TextLayout
impl Debug for TextLayout
source§impl Hash for TextLayout
impl Hash for TextLayout
source§impl Ord for TextLayout
impl Ord for TextLayout
source§fn cmp(&self, other: &TextLayout) -> Ordering
fn cmp(&self, other: &TextLayout) -> 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<TextLayout> for TextLayout
impl PartialEq<TextLayout> for TextLayout
source§fn eq(&self, other: &TextLayout) -> bool
fn eq(&self, other: &TextLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TextLayout> for TextLayout
impl PartialOrd<TextLayout> for TextLayout
source§fn partial_cmp(&self, other: &TextLayout) -> Option<Ordering>
fn partial_cmp(&self, other: &TextLayout) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TextLayout
impl Eq for TextLayout
impl StructuralEq for TextLayout
impl StructuralPartialEq for TextLayout
Auto Trait Implementations§
impl RefUnwindSafe for TextLayout
impl Send for TextLayout
impl Sync for TextLayout
impl Unpin for TextLayout
impl UnwindSafe for TextLayout
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> HasMut<T> for T
impl<T> HasMut<T> for T
source§fn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.