pub trait IMaskableGraphicMethods: IMaskableGraphic {
Show 22 methods
// Provided methods
fn get_on_cull_state_changed(self) -> MaskableGraphic_CullStateChangedEvent { ... }
fn set_on_cull_state_changed(
self,
value: impl Into<MaskableGraphic_CullStateChangedEvent>,
) { ... }
fn get_maskable(self) -> bool { ... }
fn set_maskable(self, value: impl Into<bool>) { ... }
fn get_is_masking_graphic(self) -> bool { ... }
fn set_is_masking_graphic(self, value: impl Into<bool>) { ... }
fn get_modified_material(
self,
base_material: impl Into<Material>,
) -> Material { ... }
fn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>) { ... }
fn update_cull(self, cull: impl Into<bool>) { ... }
fn set_clip_rect(
self,
clip_rect: impl Into<Rect>,
valid_rect: impl Into<bool>,
) { ... }
fn set_clip_softness(self, clip_softness: impl Into<Vector2>) { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn on_transform_parent_changed(self) { ... }
fn parent_mask_state_changed(self) { ... }
fn on_canvas_hierarchy_changed(self) { ... }
fn get_root_canvas_rect(self) -> Rect { ... }
fn update_clip_parent(self) { ... }
fn recalculate_clipping(self) { ... }
fn recalculate_masking(self) { ... }
fn ctor(self) { ... }
fn unity_engine_ui_i_clippable_get_game_object(self) -> GameObject { ... }
}Provided Methods§
Sourcefn get_on_cull_state_changed(self) -> MaskableGraphic_CullStateChangedEvent
fn get_on_cull_state_changed(self) -> MaskableGraphic_CullStateChangedEvent
get_onCullStateChanged() overload
Sourcefn set_on_cull_state_changed(
self,
value: impl Into<MaskableGraphic_CullStateChangedEvent>,
)
fn set_on_cull_state_changed( self, value: impl Into<MaskableGraphic_CullStateChangedEvent>, )
set_onCullStateChanged(crate::unity_engine::ui::maskablegraphic::MaskableGraphic_CullStateChangedEvent) overload
Sourcefn get_maskable(self) -> bool
fn get_maskable(self) -> bool
get_maskable() overload
Sourcefn set_maskable(self, value: impl Into<bool>)
fn set_maskable(self, value: impl Into<bool>)
set_maskable(bool) overload
Sourcefn get_is_masking_graphic(self) -> bool
fn get_is_masking_graphic(self) -> bool
get_isMaskingGraphic() overload
Sourcefn set_is_masking_graphic(self, value: impl Into<bool>)
fn set_is_masking_graphic(self, value: impl Into<bool>)
set_isMaskingGraphic(bool) overload
Sourcefn get_modified_material(self, base_material: impl Into<Material>) -> Material
fn get_modified_material(self, base_material: impl Into<Material>) -> Material
GetModifiedMaterial(crate::unity_engine::material::Material) overload
Sourcefn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>)
fn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>)
Cull(crate::unity_engine::rect::Rect, bool) overload
Sourcefn update_cull(self, cull: impl Into<bool>)
fn update_cull(self, cull: impl Into<bool>)
UpdateCull(bool) overload
Sourcefn set_clip_rect(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>)
fn set_clip_rect(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>)
SetClipRect(crate::unity_engine::rect::Rect, bool) overload
Sourcefn set_clip_softness(self, clip_softness: impl Into<Vector2>)
fn set_clip_softness(self, clip_softness: impl Into<Vector2>)
SetClipSoftness(crate::unity_engine::vector2::Vector2) overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn on_transform_parent_changed(self)
fn on_transform_parent_changed(self)
OnTransformParentChanged() overload
Sourcefn parent_mask_state_changed(self)
fn parent_mask_state_changed(self)
ParentMaskStateChanged() overload
Sourcefn on_canvas_hierarchy_changed(self)
fn on_canvas_hierarchy_changed(self)
OnCanvasHierarchyChanged() overload
Sourcefn get_root_canvas_rect(self) -> Rect
fn get_root_canvas_rect(self) -> Rect
get_rootCanvasRect() overload
Sourcefn update_clip_parent(self)
fn update_clip_parent(self)
UpdateClipParent() overload
Sourcefn recalculate_clipping(self)
fn recalculate_clipping(self)
RecalculateClipping() overload
Sourcefn recalculate_masking(self)
fn recalculate_masking(self)
RecalculateMasking() overload
Sourcefn unity_engine_ui_i_clippable_get_game_object(self) -> GameObject
fn unity_engine_ui_i_clippable_get_game_object(self) -> GameObject
UnityEngine.UI.IClippable.get_gameObject() 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: IMaskableGraphic> IMaskableGraphicMethods for __T
unity_engine-ui-maskablegraphic only.