#[repr(C)]pub struct GlyphMetrics {
pub m_width: f32,
pub m_height: f32,
pub m_horizontal_bearing_x: f32,
pub m_horizontal_bearing_y: f32,
pub m_horizontal_advance: f32,
}Expand description
Fields§
§m_width: f32§m_height: f32§m_horizontal_bearing_x: f32§m_horizontal_bearing_y: f32§m_horizontal_advance: f32Implementations§
Source§impl GlyphMetrics
impl GlyphMetrics
Sourcepub fn get_height(&mut self) -> f32
pub fn get_height(&mut self) -> f32
get_height() overload
Sourcepub fn get_horizontal_bearing_x(&mut self) -> f32
pub fn get_horizontal_bearing_x(&mut self) -> f32
get_horizontalBearingX() overload
Sourcepub fn get_horizontal_bearing_y(&mut self) -> f32
pub fn get_horizontal_bearing_y(&mut self) -> f32
get_horizontalBearingY() overload
Sourcepub fn get_horizontal_advance(&mut self) -> f32
pub fn get_horizontal_advance(&mut self) -> f32
get_horizontalAdvance() overload
Sourcepub fn ctor(
&mut self,
width: impl Into<f32>,
height: impl Into<f32>,
bearing_x: impl Into<f32>,
bearing_y: impl Into<f32>,
advance: impl Into<f32>,
)
pub fn ctor( &mut self, width: impl Into<f32>, height: impl Into<f32>, bearing_x: impl Into<f32>, bearing_y: impl Into<f32>, advance: impl Into<f32>, )
.ctor(f32, f32, f32, f32, f32) overload
Sourcepub fn get_hash_code(&mut self) -> i32
pub fn get_hash_code(&mut self) -> i32
GetHashCode() overload
Sourcepub fn equals(&mut self, obj: impl Into<Object>) -> bool
pub fn equals(&mut self, obj: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overload
Sourcepub fn equals_2(&mut self, other: impl Into<GlyphMetrics>) -> bool
pub fn equals_2(&mut self, other: impl Into<GlyphMetrics>) -> bool
Equals(crate::unity_engine::text_core::glyphmetrics::GlyphMetrics) overload
Source§impl GlyphMetrics
impl GlyphMetrics
pub fn get_width_method_info() -> &'static MethodInfo
pub fn get_height_method_info() -> &'static MethodInfo
pub fn get_horizontal_bearing_x_method_info() -> &'static MethodInfo
pub fn get_horizontal_bearing_y_method_info() -> &'static MethodInfo
pub fn get_horizontal_advance_method_info() -> &'static MethodInfo
pub fn ctor_method_info() -> &'static MethodInfo
pub fn get_hash_code_method_info() -> &'static MethodInfo
pub fn equals_method_info() -> &'static MethodInfo
pub fn equals_2_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for GlyphMetrics
impl ClassIdentity for GlyphMetrics
Source§impl Clone for GlyphMetrics
impl Clone for GlyphMetrics
Source§fn clone(&self) -> GlyphMetrics
fn clone(&self) -> GlyphMetrics
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GlyphMetrics
Auto Trait Implementations§
impl Freeze for GlyphMetrics
impl RefUnwindSafe for GlyphMetrics
impl Send for GlyphMetrics
impl Sync for GlyphMetrics
impl Unpin for GlyphMetrics
impl UnwindSafe for GlyphMetrics
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)