Skip to main content

engage/generated/tm_pro/
tmp_spriteglyph.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_spriteglyph-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::text_core::glyph::{Glyph, IGlyph},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_spriteglyph/TMP_SpriteGlyph.md"))]
14    #[::unity::class(namespace = "TMPro", name = "TMP_SpriteGlyph")]
15    #[parent(crate::unity_engine::text_core::glyph::Glyph)]
16    pub struct TMP_SpriteGlyph {
17        #[offset(64)]
18        #[rename(name = "sprite")]
19        pub sprite: crate::unity_engine::sprite::Sprite,
20    }
21}
22
23#[cfg(feature = "tm_pro-tmp_spriteglyph-types")]
24pub use __types::*;
25
26#[cfg(feature = "tm_pro-tmp_spriteglyph")]
27pub trait ITMP_SpriteGlyphMethods: ITMP_SpriteGlyph {
28    #[doc = "`.ctor()` overload"]
29    fn ctor(self) -> () {
30        unsafe {
31            let __receiver = <TMP_SpriteGlyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x282d7c0usize)as*mut u8,();
33(TMP_SpriteGlyph)__receiver)
34        }
35    }
36    #[doc = "`.ctor(u32, crate::unity_engine::text_core::glyphmetrics::GlyphMetrics, crate::unity_engine::text_core::glyphrect::GlyphRect, f32, i32)` overload"]
37    fn ctor_2(
38        self,
39        index: impl ::core::convert::Into<u32>,
40        metrics: impl ::core::convert::Into<crate::unity_engine::text_core::glyphmetrics::GlyphMetrics>,
41        glyph_rect: impl ::core::convert::Into<crate::unity_engine::text_core::glyphrect::GlyphRect>,
42        scale: impl ::core::convert::Into<f32>,
43        atlas_index: impl ::core::convert::Into<i32>,
44    ) -> () {
45        unsafe {
46            let __receiver = <TMP_SpriteGlyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x282db10usize)as*mut u8,();
48(TMP_SpriteGlyph)__receiver,(u32)::core::convert::Into::into(index),(crate::unity_engine::text_core::glyphmetrics::GlyphMetrics)::core::convert::Into::into(metrics),(crate::unity_engine::text_core::glyphrect::GlyphRect)::core::convert::Into::into(glyph_rect),(f32)::core::convert::Into::into(scale),(i32)::core::convert::Into::into(atlas_index))
49        }
50    }
51    #[doc = "`.ctor(u32, crate::unity_engine::text_core::glyphmetrics::GlyphMetrics, crate::unity_engine::text_core::glyphrect::GlyphRect, f32, i32, crate::unity_engine::sprite::Sprite)` overload"]
52    fn ctor_3(
53        self,
54        index: impl ::core::convert::Into<u32>,
55        metrics: impl ::core::convert::Into<crate::unity_engine::text_core::glyphmetrics::GlyphMetrics>,
56        glyph_rect: impl ::core::convert::Into<crate::unity_engine::text_core::glyphrect::GlyphRect>,
57        scale: impl ::core::convert::Into<f32>,
58        atlas_index: impl ::core::convert::Into<i32>,
59        sprite: impl ::core::convert::Into<crate::unity_engine::sprite::Sprite>,
60    ) -> () {
61        unsafe {
62            let __receiver = <TMP_SpriteGlyph as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x282dbd0usize)as*mut u8,();
64(TMP_SpriteGlyph)__receiver,(u32)::core::convert::Into::into(index),(crate::unity_engine::text_core::glyphmetrics::GlyphMetrics)::core::convert::Into::into(metrics),(crate::unity_engine::text_core::glyphrect::GlyphRect)::core::convert::Into::into(glyph_rect),(f32)::core::convert::Into::into(scale),(i32)::core::convert::Into::into(atlas_index),(crate::unity_engine::sprite::Sprite)::core::convert::Into::into(sprite))
65        }
66    }
67}
68
69#[cfg(feature = "tm_pro-tmp_spriteglyph")]
70impl<__T: ITMP_SpriteGlyph> ITMP_SpriteGlyphMethods for __T {}
71
72#[cfg(feature = "tm_pro-tmp_spriteglyph")]
73impl TMP_SpriteGlyph {
74    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
76    }
77
78    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
80    }
81
82    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
84    }
85}
86
87#[cfg(feature = "tm_pro-tmp_spriteglyph")]
88impl TMP_SpriteGlyph {
89    #[doc = "`.ctor()` — no args"]
90    pub fn new() -> Self {
91        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
92            panic!(
93                "{}
94::{}
95 failed to instantiate",
96                ::core::stringify!(TMP_SpriteGlyph),
97                ::core::stringify!(new),
98            )
99        });
100        <Self as ITMP_SpriteGlyphMethods>::ctor(this);
101        this
102    }
103
104    #[doc = "`.ctor(u32, crate::unity_engine::text_core::glyphmetrics::GlyphMetrics, crate::unity_engine::text_core::glyphrect::GlyphRect, f32, i32)` — overload selector"]
105    pub fn new_2(
106        index: u32,
107        metrics: crate::unity_engine::text_core::glyphmetrics::GlyphMetrics,
108        glyph_rect: crate::unity_engine::text_core::glyphrect::GlyphRect,
109        scale: f32,
110        atlas_index: i32,
111    ) -> Self {
112        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113            panic!(
114                "{}
115::{}
116 failed to instantiate",
117                ::core::stringify!(TMP_SpriteGlyph),
118                ::core::stringify!(new_2),
119            )
120        });
121        <Self as ITMP_SpriteGlyphMethods>::ctor_2(this, index, metrics, glyph_rect, scale, atlas_index);
122        this
123    }
124
125    #[doc = "`.ctor(u32, crate::unity_engine::text_core::glyphmetrics::GlyphMetrics, crate::unity_engine::text_core::glyphrect::GlyphRect, f32, i32, crate::unity_engine::sprite::Sprite)` — overload selector"]
126    pub fn new_3(
127        index: u32,
128        metrics: crate::unity_engine::text_core::glyphmetrics::GlyphMetrics,
129        glyph_rect: crate::unity_engine::text_core::glyphrect::GlyphRect,
130        scale: f32,
131        atlas_index: i32,
132        sprite: crate::unity_engine::sprite::Sprite,
133    ) -> Self {
134        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
135            panic!(
136                "{}
137::{}
138 failed to instantiate",
139                ::core::stringify!(TMP_SpriteGlyph),
140                ::core::stringify!(new_3),
141            )
142        });
143        <Self as ITMP_SpriteGlyphMethods>::ctor_3(this, index, metrics, glyph_rect, scale, atlas_index, sprite);
144        this
145    }
146}
147
148#[cfg(feature = "tm_pro-tmp_spriteglyph")]
149#[doc(hidden)]
150pub mod prelude {
151    pub use super::{ITMP_SpriteGlyph, ITMP_SpriteGlyphMethods, TMP_SpriteGlyph};
152    #[cfg(feature = "system-object")]
153    pub use crate::system::object::IObjectMethods;
154    #[cfg(feature = "unity_engine-text_core-glyph")]
155    pub use crate::unity_engine::text_core::glyph::IGlyphMethods;
156    pub use crate::{system::object::IObject, unity_engine::text_core::glyph::IGlyph};
157}