engage/generated/unity_engine/yoga/
native.rs1#[cfg(feature = "unity_engine-yoga-native-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/yoga/native/Native.md"))]
11 #[::unity::class(namespace = "UnityEngine.Yoga", name = "Native")]
12 #[parent(crate::system::object::Object)]
13 pub struct Native {}
14}
15
16#[cfg(feature = "unity_engine-yoga-native-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-yoga-native")]
20impl Native {
21 #[doc = "`YGNodeMeasureInvoke(crate::unity_engine::yoga::yoganode::YogaNode, f32, crate::unity_engine::yoga::yogameasuremode::YogaMeasureMode, f32, crate::unity_engine::yoga::yogameasuremode::YogaMeasureMode, ::unity::IntPtr)` overload"]
22 pub fn yg_node_measure_invoke(
23 node: impl ::core::convert::Into<crate::unity_engine::yoga::yoganode::YogaNode>,
24 width: impl ::core::convert::Into<f32>,
25 width_mode: impl ::core::convert::Into<crate::unity_engine::yoga::yogameasuremode::YogaMeasureMode>,
26 height: impl ::core::convert::Into<f32>,
27 height_mode: impl ::core::convert::Into<crate::unity_engine::yoga::yogameasuremode::YogaMeasureMode>,
28 return_value_address: impl ::core::convert::Into<::unity::IntPtr>,
29 ) -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x3f40080usize)as*mut u8,();
32(crate::unity_engine::yoga::yoganode::YogaNode)::core::convert::Into::into(node),(f32)::core::convert::Into::into(width),(crate::unity_engine::yoga::yogameasuremode::YogaMeasureMode)::core::convert::Into::into(width_mode),(f32)::core::convert::Into::into(height),(crate::unity_engine::yoga::yogameasuremode::YogaMeasureMode)::core::convert::Into::into(height_mode),(::unity::IntPtr)::core::convert::Into::into(return_value_address))
33 }
34 }
35
36 #[doc = "`YGNodeBaselineInvoke(crate::unity_engine::yoga::yoganode::YogaNode, f32, f32, ::unity::IntPtr)` overload"]
37 pub fn yg_node_baseline_invoke(
38 node: impl ::core::convert::Into<crate::unity_engine::yoga::yoganode::YogaNode>,
39 width: impl ::core::convert::Into<f32>,
40 height: impl ::core::convert::Into<f32>,
41 return_value_address: impl ::core::convert::Into<::unity::IntPtr>,
42 ) -> () {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x3f40170usize)as*mut u8,();
45(crate::unity_engine::yoga::yoganode::YogaNode)::core::convert::Into::into(node),(f32)::core::convert::Into::into(width),(f32)::core::convert::Into::into(height),(::unity::IntPtr)::core::convert::Into::into(return_value_address))
46 }
47 }
48}
49
50#[cfg(feature = "unity_engine-yoga-native")]
51impl Native {
52 pub fn yg_node_measure_invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
54 }
55
56 pub fn yg_node_baseline_invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
58 }
59}
60
61#[cfg(feature = "unity_engine-yoga-native")]
62#[doc(hidden)]
63pub mod prelude {
64 pub use super::{INative, Native};
65 pub use crate::system::object::IObject;
66 #[cfg(feature = "system-object")]
67 pub use crate::system::object::IObjectMethods;
68}