Skip to main content

IIClippableMethods

Trait IIClippableMethods 

Source
pub trait IIClippableMethods: IIClippable {
    // Provided methods
    fn get_game_object(self) -> GameObject { ... }
    fn recalculate_clipping(self) { ... }
    fn get_rect_transform(self) -> RectTransform { ... }
    fn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>) { ... }
    fn set_clip_rect(self, value: impl Into<Rect>, valid_rect: impl Into<bool>) { ... }
    fn set_clip_softness(self, clip_softness: impl Into<Vector2>) { ... }
}

Provided Methods§

Source

fn get_game_object(self) -> GameObject

get_gameObject() overload

Source

fn recalculate_clipping(self)

RecalculateClipping() overload

Source

fn get_rect_transform(self) -> RectTransform

get_rectTransform() overload

Source

fn cull(self, clip_rect: impl Into<Rect>, valid_rect: impl Into<bool>)

Cull(crate::unity_engine::rect::Rect, bool) overload

Source

fn set_clip_rect(self, value: impl Into<Rect>, valid_rect: impl Into<bool>)

SetClipRect(crate::unity_engine::rect::Rect, bool) overload

Source

fn set_clip_softness(self, clip_softness: impl Into<Vector2>)

SetClipSoftness(crate::unity_engine::vector2::Vector2) 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§

Source§

impl<__T: IIClippable> IIClippableMethods for __T

Available on crate feature unity_engine-ui-iclippable only.