Struct gdnative_bindings::texture_button::StretchMode
source · pub struct StretchMode(pub i64);
Tuple Fields§
§0: i64
Implementations§
source§impl StretchMode
impl StretchMode
pub const SCALE: StretchMode = _
pub const TILE: StretchMode = _
pub const KEEP: StretchMode = _
pub const KEEP_CENTERED: StretchMode = _
pub const KEEP_ASPECT: StretchMode = _
pub const KEEP_ASPECT_CENTERED: StretchMode = _
pub const KEEP_ASPECT_COVERED: StretchMode = _
Trait Implementations§
source§impl Clone for StretchMode
impl Clone for StretchMode
source§fn clone(&self) -> StretchMode
fn clone(&self) -> StretchMode
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 StretchMode
impl Debug for StretchMode
source§impl From<StretchMode> for i64
impl From<StretchMode> for i64
source§fn from(v: StretchMode) -> Self
fn from(v: StretchMode) -> Self
Converts to this type from the input type.
source§impl From<i64> for StretchMode
impl From<i64> for StretchMode
source§impl FromVariant for StretchMode
impl FromVariant for StretchMode
fn from_variant(v: &Variant) -> Result<Self, FromVariantError>
source§impl Hash for StretchMode
impl Hash for StretchMode
source§impl Ord for StretchMode
impl Ord for StretchMode
source§fn cmp(&self, other: &StretchMode) -> Ordering
fn cmp(&self, other: &StretchMode) -> 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<StretchMode> for StretchMode
impl PartialEq<StretchMode> for StretchMode
source§fn eq(&self, other: &StretchMode) -> bool
fn eq(&self, other: &StretchMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StretchMode> for StretchMode
impl PartialOrd<StretchMode> for StretchMode
source§fn partial_cmp(&self, other: &StretchMode) -> Option<Ordering>
fn partial_cmp(&self, other: &StretchMode) -> 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 StretchMode
impl Eq for StretchMode
impl StructuralEq for StretchMode
impl StructuralPartialEq for StretchMode
Auto Trait Implementations§
impl RefUnwindSafe for StretchMode
impl Send for StretchMode
impl Sync for StretchMode
impl Unpin for StretchMode
impl UnwindSafe for StretchMode
Blanket Implementations§
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.