pub trait IRectMask2DMethods: IRectMask2D {
Show 18 methods
// Provided methods
fn get_padding(self) -> Vector4 { ... }
fn set_padding(self, value: impl Into<Vector4>) { ... }
fn get_softness(self) -> Vector2Int { ... }
fn set_softness(self, value: impl Into<Vector2Int>) { ... }
fn get_canvas(self) -> Canvas { ... }
fn get_canvas_rect(self) -> Rect { ... }
fn get_rect_transform(self) -> RectTransform { ... }
fn ctor(self) { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn is_raycast_location_valid(
self,
sp: impl Into<Vector2>,
event_camera: impl Into<Camera>,
) -> bool { ... }
fn get_root_canvas_rect(self) -> Rect { ... }
fn perform_clipping(self) { ... }
fn update_clip_softness(self) { ... }
fn add_clippable(self, clippable: impl Into<IClippable>) { ... }
fn remove_clippable(self, clippable: impl Into<IClippable>) { ... }
fn on_transform_parent_changed(self) { ... }
fn on_canvas_hierarchy_changed(self) { ... }
}Provided Methods§
Sourcefn get_padding(self) -> Vector4
fn get_padding(self) -> Vector4
get_padding() overload
Sourcefn set_padding(self, value: impl Into<Vector4>)
fn set_padding(self, value: impl Into<Vector4>)
set_padding(crate::unity_engine::vector4::Vector4) overload
Sourcefn get_softness(self) -> Vector2Int
fn get_softness(self) -> Vector2Int
get_softness() overload
Sourcefn set_softness(self, value: impl Into<Vector2Int>)
fn set_softness(self, value: impl Into<Vector2Int>)
set_softness(crate::unity_engine::vector2int::Vector2Int) overload
Sourcefn get_canvas(self) -> Canvas
fn get_canvas(self) -> Canvas
get_Canvas() overload
Sourcefn get_canvas_rect(self) -> Rect
fn get_canvas_rect(self) -> Rect
get_canvasRect() overload
Sourcefn get_rect_transform(self) -> RectTransform
fn get_rect_transform(self) -> RectTransform
get_rectTransform() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn is_raycast_location_valid(
self,
sp: impl Into<Vector2>,
event_camera: impl Into<Camera>,
) -> bool
fn is_raycast_location_valid( self, sp: impl Into<Vector2>, event_camera: impl Into<Camera>, ) -> bool
IsRaycastLocationValid(crate::unity_engine::vector2::Vector2, crate::unity_engine::camera::Camera) overload
Sourcefn get_root_canvas_rect(self) -> Rect
fn get_root_canvas_rect(self) -> Rect
get_rootCanvasRect() overload
Sourcefn perform_clipping(self)
fn perform_clipping(self)
PerformClipping() overload
Sourcefn update_clip_softness(self)
fn update_clip_softness(self)
UpdateClipSoftness() overload
Sourcefn add_clippable(self, clippable: impl Into<IClippable>)
fn add_clippable(self, clippable: impl Into<IClippable>)
AddClippable(crate::unity_engine::ui::iclippable::IClippable) overload
Sourcefn remove_clippable(self, clippable: impl Into<IClippable>)
fn remove_clippable(self, clippable: impl Into<IClippable>)
RemoveClippable(crate::unity_engine::ui::iclippable::IClippable) overload
Sourcefn on_transform_parent_changed(self)
fn on_transform_parent_changed(self)
OnTransformParentChanged() overload
Sourcefn on_canvas_hierarchy_changed(self)
fn on_canvas_hierarchy_changed(self)
OnCanvasHierarchyChanged() overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IRectMask2D> IRectMask2DMethods for __T
unity_engine-ui-rectmask2d only.