#[repr(C)]pub struct Rect {
pub m_x_min: f32,
pub m_y_min: f32,
pub m_width: f32,
pub m_height: f32,
}Expand description
Fields§
§m_x_min: f32§m_y_min: f32§m_width: f32§m_height: f32Implementations§
Source§impl Rect
impl Rect
Sourcepub fn min_max_rect(
xmin: impl Into<f32>,
ymin: impl Into<f32>,
xmax: impl Into<f32>,
ymax: impl Into<f32>,
) -> Rect
pub fn min_max_rect( xmin: impl Into<f32>, ymin: impl Into<f32>, xmax: impl Into<f32>, ymax: impl Into<f32>, ) -> Rect
MinMaxRect(f32, f32, f32, f32) overload
Sourcepub fn order_min_max(rect: impl Into<Rect>) -> Rect
pub fn order_min_max(rect: impl Into<Rect>) -> Rect
OrderMinMax(crate::unity_engine::rect::Rect) overload
Sourcepub fn op_inequality(lhs: impl Into<Rect>, rhs: impl Into<Rect>) -> bool
pub fn op_inequality(lhs: impl Into<Rect>, rhs: impl Into<Rect>) -> bool
op_Inequality(crate::unity_engine::rect::Rect, crate::unity_engine::rect::Rect) overload
Sourcepub fn op_equality(lhs: impl Into<Rect>, rhs: impl Into<Rect>) -> bool
pub fn op_equality(lhs: impl Into<Rect>, rhs: impl Into<Rect>) -> bool
op_Equality(crate::unity_engine::rect::Rect, crate::unity_engine::rect::Rect) overload
Source§impl Rect
impl Rect
Sourcepub fn ctor(
&mut self,
x: impl Into<f32>,
y: impl Into<f32>,
width: impl Into<f32>,
height: impl Into<f32>,
)
pub fn ctor( &mut self, x: impl Into<f32>, y: impl Into<f32>, width: impl Into<f32>, height: impl Into<f32>, )
.ctor(f32, f32, f32, f32) overload
Sourcepub fn ctor_2(&mut self, position: impl Into<Vector2>, size: impl Into<Vector2>)
pub fn ctor_2(&mut self, position: impl Into<Vector2>, size: impl Into<Vector2>)
.ctor(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2) overload
Sourcepub fn ctor_3(&mut self, source: impl Into<Rect>)
pub fn ctor_3(&mut self, source: impl Into<Rect>)
.ctor(crate::unity_engine::rect::Rect) overload
Sourcepub fn set(
&mut self,
x: impl Into<f32>,
y: impl Into<f32>,
width: impl Into<f32>,
height: impl Into<f32>,
)
pub fn set( &mut self, x: impl Into<f32>, y: impl Into<f32>, width: impl Into<f32>, height: impl Into<f32>, )
Set(f32, f32, f32, f32) overload
Sourcepub fn get_position(&mut self) -> Vector2
pub fn get_position(&mut self) -> Vector2
get_position() overload
Sourcepub fn set_position(&mut self, value: impl Into<Vector2>)
pub fn set_position(&mut self, value: impl Into<Vector2>)
set_position(crate::unity_engine::vector2::Vector2) overload
Sourcepub fn get_center(&mut self) -> Vector2
pub fn get_center(&mut self) -> Vector2
get_center() overload
Sourcepub fn set_center(&mut self, value: impl Into<Vector2>)
pub fn set_center(&mut self, value: impl Into<Vector2>)
set_center(crate::unity_engine::vector2::Vector2) overload
Sourcepub fn get_height(&mut self) -> f32
pub fn get_height(&mut self) -> f32
get_height() overload
Sourcepub fn set_height(&mut self, value: impl Into<f32>)
pub fn set_height(&mut self, value: impl Into<f32>)
set_height(f32) overload
Sourcepub fn contains(&mut self, point: impl Into<Vector2>) -> bool
pub fn contains(&mut self, point: impl Into<Vector2>) -> bool
Contains(crate::unity_engine::vector2::Vector2) overload
Sourcepub fn contains_2(&mut self, point: impl Into<Vector3>) -> bool
pub fn contains_2(&mut self, point: impl Into<Vector3>) -> bool
Contains(crate::unity_engine::vector3::Vector3) overload
Sourcepub fn overlaps(&mut self, other: impl Into<Rect>) -> bool
pub fn overlaps(&mut self, other: impl Into<Rect>) -> bool
Overlaps(crate::unity_engine::rect::Rect) overload
Sourcepub fn overlaps_2(
&mut self,
other: impl Into<Rect>,
allow_inverse: impl Into<bool>,
) -> bool
pub fn overlaps_2( &mut self, other: impl Into<Rect>, allow_inverse: impl Into<bool>, ) -> bool
Overlaps(crate::unity_engine::rect::Rect, bool) overload
Sourcepub fn get_hash_code(&mut self) -> i32
pub fn get_hash_code(&mut self) -> i32
GetHashCode() overload
Sourcepub fn equals(&mut self, other: impl Into<Object>) -> bool
pub fn equals(&mut self, other: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overload
Sourcepub fn equals_2(&mut self, other: impl Into<Rect>) -> bool
pub fn equals_2(&mut self, other: impl Into<Rect>) -> bool
Equals(crate::unity_engine::rect::Rect) overload
Sourcepub fn to_string(&mut self) -> Il2CppString
pub fn to_string(&mut self) -> Il2CppString
ToString() overload
Source§impl Rect
impl Rect
pub fn ctor_method_info() -> &'static MethodInfo
pub fn ctor_2_method_info() -> &'static MethodInfo
pub fn ctor_3_method_info() -> &'static MethodInfo
pub fn get_zero_method_info() -> &'static MethodInfo
pub fn min_max_rect_method_info() -> &'static MethodInfo
pub fn set_method_info() -> &'static MethodInfo
pub fn get_x_method_info() -> &'static MethodInfo
pub fn set_x_method_info() -> &'static MethodInfo
pub fn get_y_method_info() -> &'static MethodInfo
pub fn set_y_method_info() -> &'static MethodInfo
pub fn get_position_method_info() -> &'static MethodInfo
pub fn set_position_method_info() -> &'static MethodInfo
pub fn get_center_method_info() -> &'static MethodInfo
pub fn set_center_method_info() -> &'static MethodInfo
pub fn get_min_method_info() -> &'static MethodInfo
pub fn get_max_method_info() -> &'static MethodInfo
pub fn get_width_method_info() -> &'static MethodInfo
pub fn set_width_method_info() -> &'static MethodInfo
pub fn get_height_method_info() -> &'static MethodInfo
pub fn set_height_method_info() -> &'static MethodInfo
pub fn get_size_method_info() -> &'static MethodInfo
pub fn get_x_min_method_info() -> &'static MethodInfo
pub fn set_x_min_method_info() -> &'static MethodInfo
pub fn get_y_min_method_info() -> &'static MethodInfo
pub fn set_y_min_method_info() -> &'static MethodInfo
pub fn get_x_max_method_info() -> &'static MethodInfo
pub fn set_x_max_method_info() -> &'static MethodInfo
pub fn get_y_max_method_info() -> &'static MethodInfo
pub fn set_y_max_method_info() -> &'static MethodInfo
pub fn contains_method_info() -> &'static MethodInfo
pub fn contains_2_method_info() -> &'static MethodInfo
pub fn order_min_max_method_info() -> &'static MethodInfo
pub fn overlaps_method_info() -> &'static MethodInfo
pub fn overlaps_2_method_info() -> &'static MethodInfo
pub fn op_inequality_method_info() -> &'static MethodInfo
pub fn op_equality_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
pub fn to_string_method_info() -> &'static MethodInfo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
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
§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)
clone_to_uninit)