pub trait IImageMethods: IImage {
Show 64 methods
// Provided methods
fn get_sprite(self) -> Sprite { ... }
fn set_sprite(self, value: impl Into<Sprite>) { ... }
fn disable_sprite_optimizations(self) { ... }
fn get_override_sprite(self) -> Sprite { ... }
fn set_override_sprite(self, value: impl Into<Sprite>) { ... }
fn get_active_sprite(self) -> Sprite { ... }
fn get_type(self) -> Image_Type { ... }
fn set_type(self, value: impl Into<Image_Type>) { ... }
fn get_preserve_aspect(self) -> bool { ... }
fn set_preserve_aspect(self, value: impl Into<bool>) { ... }
fn get_fill_center(self) -> bool { ... }
fn set_fill_center(self, value: impl Into<bool>) { ... }
fn get_fill_method(self) -> Image_FillMethod { ... }
fn set_fill_method(self, value: impl Into<Image_FillMethod>) { ... }
fn get_fill_amount(self) -> f32 { ... }
fn set_fill_amount(self, value: impl Into<f32>) { ... }
fn get_fill_clockwise(self) -> bool { ... }
fn set_fill_clockwise(self, value: impl Into<bool>) { ... }
fn get_fill_origin(self) -> i32 { ... }
fn set_fill_origin(self, value: impl Into<i32>) { ... }
fn get_event_alpha_threshold(self) -> f32 { ... }
fn set_event_alpha_threshold(self, value: impl Into<f32>) { ... }
fn get_alpha_hit_test_minimum_threshold(self) -> f32 { ... }
fn set_alpha_hit_test_minimum_threshold(self, value: impl Into<f32>) { ... }
fn get_use_sprite_mesh(self) -> bool { ... }
fn set_use_sprite_mesh(self, value: impl Into<bool>) { ... }
fn ctor(self) { ... }
fn get_main_texture(self) -> Texture { ... }
fn get_has_border(self) -> bool { ... }
fn get_pixels_per_unit_multiplier(self) -> f32 { ... }
fn set_pixels_per_unit_multiplier(self, value: impl Into<f32>) { ... }
fn get_pixels_per_unit(self) -> f32 { ... }
fn get_multiplied_pixels_per_unit(self) -> f32 { ... }
fn get_material(self) -> Material { ... }
fn set_material(self, value: impl Into<Material>) { ... }
fn on_before_serialize(self) { ... }
fn on_after_deserialize(self) { ... }
fn preserve_sprite_aspect_ratio(
self,
sprite_size: impl Into<Vector2>,
) -> Rect { ... }
fn get_drawing_dimensions(
self,
should_preserve_aspect: impl Into<bool>,
) -> Vector4 { ... }
fn set_native_size(self) { ... }
fn on_populate_mesh(self, to_fill: impl Into<VertexHelper>) { ... }
fn track_sprite(self) { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn update_material(self) { ... }
fn on_canvas_hierarchy_changed(self) { ... }
fn generate_simple_sprite(
self,
vh: impl Into<VertexHelper>,
l_preserve_aspect: impl Into<bool>,
) { ... }
fn generate_sprite(
self,
vh: impl Into<VertexHelper>,
l_preserve_aspect: impl Into<bool>,
) { ... }
fn generate_sliced_sprite(self, to_fill: impl Into<VertexHelper>) { ... }
fn generate_tiled_sprite(self, to_fill: impl Into<VertexHelper>) { ... }
fn get_adjusted_borders(
self,
border: impl Into<Vector4>,
adjusted_rect: impl Into<Rect>,
) -> Vector4 { ... }
fn generate_filled_sprite(
self,
to_fill: impl Into<VertexHelper>,
preserve_aspect: impl Into<bool>,
) { ... }
fn calculate_layout_input_horizontal(self) { ... }
fn calculate_layout_input_vertical(self) { ... }
fn get_min_width(self) -> f32 { ... }
fn get_preferred_width(self) -> f32 { ... }
fn get_flexible_width(self) -> f32 { ... }
fn get_min_height(self) -> f32 { ... }
fn get_preferred_height(self) -> f32 { ... }
fn get_flexible_height(self) -> f32 { ... }
fn get_layout_priority(self) -> i32 { ... }
fn is_raycast_location_valid(
self,
screen_point: impl Into<Vector2>,
event_camera: impl Into<Camera>,
) -> bool { ... }
fn map_coordinate(
self,
local: impl Into<Vector2>,
rect: impl Into<Rect>,
) -> Vector2 { ... }
fn on_did_apply_animation_properties(self) { ... }
}Provided Methods§
Sourcefn get_sprite(self) -> Sprite
fn get_sprite(self) -> Sprite
get_sprite() overload
Sourcefn set_sprite(self, value: impl Into<Sprite>)
fn set_sprite(self, value: impl Into<Sprite>)
set_sprite(crate::unity_engine::sprite::Sprite) overload
Sourcefn disable_sprite_optimizations(self)
fn disable_sprite_optimizations(self)
DisableSpriteOptimizations() overload
Sourcefn get_override_sprite(self) -> Sprite
fn get_override_sprite(self) -> Sprite
get_overrideSprite() overload
Sourcefn set_override_sprite(self, value: impl Into<Sprite>)
fn set_override_sprite(self, value: impl Into<Sprite>)
set_overrideSprite(crate::unity_engine::sprite::Sprite) overload
Sourcefn get_active_sprite(self) -> Sprite
fn get_active_sprite(self) -> Sprite
get_activeSprite() overload
Sourcefn get_type(self) -> Image_Type
fn get_type(self) -> Image_Type
get_type() overload
Sourcefn set_type(self, value: impl Into<Image_Type>)
fn set_type(self, value: impl Into<Image_Type>)
set_type(crate::unity_engine::ui::image::Image_Type) overload
Sourcefn get_preserve_aspect(self) -> bool
fn get_preserve_aspect(self) -> bool
get_preserveAspect() overload
Sourcefn set_preserve_aspect(self, value: impl Into<bool>)
fn set_preserve_aspect(self, value: impl Into<bool>)
set_preserveAspect(bool) overload
Sourcefn get_fill_center(self) -> bool
fn get_fill_center(self) -> bool
get_fillCenter() overload
Sourcefn set_fill_center(self, value: impl Into<bool>)
fn set_fill_center(self, value: impl Into<bool>)
set_fillCenter(bool) overload
Sourcefn get_fill_method(self) -> Image_FillMethod
fn get_fill_method(self) -> Image_FillMethod
get_fillMethod() overload
Sourcefn set_fill_method(self, value: impl Into<Image_FillMethod>)
fn set_fill_method(self, value: impl Into<Image_FillMethod>)
set_fillMethod(crate::unity_engine::ui::image::Image_FillMethod) overload
Sourcefn get_fill_amount(self) -> f32
fn get_fill_amount(self) -> f32
get_fillAmount() overload
Sourcefn set_fill_amount(self, value: impl Into<f32>)
fn set_fill_amount(self, value: impl Into<f32>)
set_fillAmount(f32) overload
Sourcefn get_fill_clockwise(self) -> bool
fn get_fill_clockwise(self) -> bool
get_fillClockwise() overload
Sourcefn set_fill_clockwise(self, value: impl Into<bool>)
fn set_fill_clockwise(self, value: impl Into<bool>)
set_fillClockwise(bool) overload
Sourcefn get_fill_origin(self) -> i32
fn get_fill_origin(self) -> i32
get_fillOrigin() overload
Sourcefn set_fill_origin(self, value: impl Into<i32>)
fn set_fill_origin(self, value: impl Into<i32>)
set_fillOrigin(i32) overload
Sourcefn get_event_alpha_threshold(self) -> f32
fn get_event_alpha_threshold(self) -> f32
get_eventAlphaThreshold() overload
Sourcefn set_event_alpha_threshold(self, value: impl Into<f32>)
fn set_event_alpha_threshold(self, value: impl Into<f32>)
set_eventAlphaThreshold(f32) overload
Sourcefn get_alpha_hit_test_minimum_threshold(self) -> f32
fn get_alpha_hit_test_minimum_threshold(self) -> f32
get_alphaHitTestMinimumThreshold() overload
Sourcefn set_alpha_hit_test_minimum_threshold(self, value: impl Into<f32>)
fn set_alpha_hit_test_minimum_threshold(self, value: impl Into<f32>)
set_alphaHitTestMinimumThreshold(f32) overload
Sourcefn get_use_sprite_mesh(self) -> bool
fn get_use_sprite_mesh(self) -> bool
get_useSpriteMesh() overload
Sourcefn set_use_sprite_mesh(self, value: impl Into<bool>)
fn set_use_sprite_mesh(self, value: impl Into<bool>)
set_useSpriteMesh(bool) overload
Sourcefn get_main_texture(self) -> Texture
fn get_main_texture(self) -> Texture
get_mainTexture() overload
Sourcefn get_has_border(self) -> bool
fn get_has_border(self) -> bool
get_hasBorder() overload
Sourcefn get_pixels_per_unit_multiplier(self) -> f32
fn get_pixels_per_unit_multiplier(self) -> f32
get_pixelsPerUnitMultiplier() overload
Sourcefn set_pixels_per_unit_multiplier(self, value: impl Into<f32>)
fn set_pixels_per_unit_multiplier(self, value: impl Into<f32>)
set_pixelsPerUnitMultiplier(f32) overload
Sourcefn get_pixels_per_unit(self) -> f32
fn get_pixels_per_unit(self) -> f32
get_pixelsPerUnit() overload
Sourcefn get_multiplied_pixels_per_unit(self) -> f32
fn get_multiplied_pixels_per_unit(self) -> f32
get_multipliedPixelsPerUnit() overload
Sourcefn get_material(self) -> Material
fn get_material(self) -> Material
get_material() overload
Sourcefn set_material(self, value: impl Into<Material>)
fn set_material(self, value: impl Into<Material>)
set_material(crate::unity_engine::material::Material) overload
Sourcefn on_before_serialize(self)
fn on_before_serialize(self)
OnBeforeSerialize() overload
Sourcefn on_after_deserialize(self)
fn on_after_deserialize(self)
OnAfterDeserialize() overload
Sourcefn preserve_sprite_aspect_ratio(self, sprite_size: impl Into<Vector2>) -> Rect
fn preserve_sprite_aspect_ratio(self, sprite_size: impl Into<Vector2>) -> Rect
PreserveSpriteAspectRatio(*mutcrate::unity_engine::rect::Rect, crate::unity_engine::vector2::Vector2) overload
Sourcefn get_drawing_dimensions(
self,
should_preserve_aspect: impl Into<bool>,
) -> Vector4
fn get_drawing_dimensions( self, should_preserve_aspect: impl Into<bool>, ) -> Vector4
GetDrawingDimensions(bool) overload
Sourcefn set_native_size(self)
fn set_native_size(self)
SetNativeSize() overload
Sourcefn on_populate_mesh(self, to_fill: impl Into<VertexHelper>)
fn on_populate_mesh(self, to_fill: impl Into<VertexHelper>)
OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper) overload
Sourcefn track_sprite(self)
fn track_sprite(self)
TrackSprite() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn update_material(self)
fn update_material(self)
UpdateMaterial() overload
Sourcefn on_canvas_hierarchy_changed(self)
fn on_canvas_hierarchy_changed(self)
OnCanvasHierarchyChanged() overload
Sourcefn generate_simple_sprite(
self,
vh: impl Into<VertexHelper>,
l_preserve_aspect: impl Into<bool>,
)
fn generate_simple_sprite( self, vh: impl Into<VertexHelper>, l_preserve_aspect: impl Into<bool>, )
GenerateSimpleSprite(crate::unity_engine::ui::vertexhelper::VertexHelper, bool) overload
Sourcefn generate_sprite(
self,
vh: impl Into<VertexHelper>,
l_preserve_aspect: impl Into<bool>,
)
fn generate_sprite( self, vh: impl Into<VertexHelper>, l_preserve_aspect: impl Into<bool>, )
GenerateSprite(crate::unity_engine::ui::vertexhelper::VertexHelper, bool) overload
Sourcefn generate_sliced_sprite(self, to_fill: impl Into<VertexHelper>)
fn generate_sliced_sprite(self, to_fill: impl Into<VertexHelper>)
GenerateSlicedSprite(crate::unity_engine::ui::vertexhelper::VertexHelper) overload
Sourcefn generate_tiled_sprite(self, to_fill: impl Into<VertexHelper>)
fn generate_tiled_sprite(self, to_fill: impl Into<VertexHelper>)
GenerateTiledSprite(crate::unity_engine::ui::vertexhelper::VertexHelper) overload
Sourcefn get_adjusted_borders(
self,
border: impl Into<Vector4>,
adjusted_rect: impl Into<Rect>,
) -> Vector4
fn get_adjusted_borders( self, border: impl Into<Vector4>, adjusted_rect: impl Into<Rect>, ) -> Vector4
GetAdjustedBorders(crate::unity_engine::vector4::Vector4, crate::unity_engine::rect::Rect) overload
Sourcefn generate_filled_sprite(
self,
to_fill: impl Into<VertexHelper>,
preserve_aspect: impl Into<bool>,
)
fn generate_filled_sprite( self, to_fill: impl Into<VertexHelper>, preserve_aspect: impl Into<bool>, )
GenerateFilledSprite(crate::unity_engine::ui::vertexhelper::VertexHelper, bool) overload
Sourcefn calculate_layout_input_horizontal(self)
fn calculate_layout_input_horizontal(self)
CalculateLayoutInputHorizontal() overload
Sourcefn calculate_layout_input_vertical(self)
fn calculate_layout_input_vertical(self)
CalculateLayoutInputVertical() overload
Sourcefn get_min_width(self) -> f32
fn get_min_width(self) -> f32
get_minWidth() overload
Sourcefn get_preferred_width(self) -> f32
fn get_preferred_width(self) -> f32
get_preferredWidth() overload
Sourcefn get_flexible_width(self) -> f32
fn get_flexible_width(self) -> f32
get_flexibleWidth() overload
Sourcefn get_min_height(self) -> f32
fn get_min_height(self) -> f32
get_minHeight() overload
Sourcefn get_preferred_height(self) -> f32
fn get_preferred_height(self) -> f32
get_preferredHeight() overload
Sourcefn get_flexible_height(self) -> f32
fn get_flexible_height(self) -> f32
get_flexibleHeight() overload
Sourcefn get_layout_priority(self) -> i32
fn get_layout_priority(self) -> i32
get_layoutPriority() overload
Sourcefn is_raycast_location_valid(
self,
screen_point: impl Into<Vector2>,
event_camera: impl Into<Camera>,
) -> bool
fn is_raycast_location_valid( self, screen_point: impl Into<Vector2>, event_camera: impl Into<Camera>, ) -> bool
IsRaycastLocationValid(crate::unity_engine::vector2::Vector2, crate::unity_engine::camera::Camera) overload
Sourcefn map_coordinate(
self,
local: impl Into<Vector2>,
rect: impl Into<Rect>,
) -> Vector2
fn map_coordinate( self, local: impl Into<Vector2>, rect: impl Into<Rect>, ) -> Vector2
MapCoordinate(crate::unity_engine::vector2::Vector2, crate::unity_engine::rect::Rect) overload
Sourcefn on_did_apply_animation_properties(self)
fn on_did_apply_animation_properties(self)
OnDidApplyAnimationProperties() 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: IImage> IImageMethods for __T
unity_engine-ui-image only.