pub trait ICanvasRendererMethods: ICanvasRenderer {
Show 43 methods
// Provided methods
fn get_has_pop_instruction(self) -> bool { ... }
fn set_has_pop_instruction(self, value: impl Into<bool>) { ... }
fn get_material_count(self) -> i32 { ... }
fn set_material_count(self, value: impl Into<i32>) { ... }
fn get_pop_material_count(self) -> i32 { ... }
fn set_pop_material_count(self, value: impl Into<i32>) { ... }
fn get_absolute_depth(self) -> i32 { ... }
fn get_has_moved(self) -> bool { ... }
fn get_cull_transparent_mesh(self) -> bool { ... }
fn set_cull_transparent_mesh(self, value: impl Into<bool>) { ... }
fn get_has_rect_clipping(self) -> bool { ... }
fn get_relative_depth(self) -> i32 { ... }
fn get_cull(self) -> bool { ... }
fn set_cull(self, value: impl Into<bool>) { ... }
fn get_is_mask(self) -> bool { ... }
fn set_is_mask(self, value: impl Into<bool>) { ... }
fn set_color(self, color: impl Into<Color>) { ... }
fn get_color(self) -> Color { ... }
fn enable_rect_clipping(self, rect: impl Into<Rect>) { ... }
fn get_clipping_softness(self) -> Vector2 { ... }
fn set_clipping_softness(self, value: impl Into<Vector2>) { ... }
fn disable_rect_clipping(self) { ... }
fn set_material(self, material: impl Into<Material>, index: impl Into<i32>) { ... }
fn get_material(self, index: impl Into<i32>) -> Material { ... }
fn set_pop_material(
self,
material: impl Into<Material>,
index: impl Into<i32>,
) { ... }
fn get_pop_material(self, index: impl Into<i32>) -> Material { ... }
fn set_texture(self, texture: impl Into<Texture>) { ... }
fn set_alpha_texture(self, texture: impl Into<Texture>) { ... }
fn set_mesh(self, mesh: impl Into<Mesh>) { ... }
fn clear(self) { ... }
fn get_alpha(self) -> f32 { ... }
fn set_alpha(self, alpha: impl Into<f32>) { ... }
fn get_inherited_alpha(self) -> f32 { ... }
fn set_material_2(
self,
material: impl Into<Material>,
texture: impl Into<Texture>,
) { ... }
fn get_material_2(self) -> Material { ... }
fn set_vertices(self, vertices: impl Into<List_1<UIVertex>>) { ... }
fn set_vertices_2(
self,
vertices: impl Into<Array<UIVertex>>,
size: impl Into<i32>,
) { ... }
fn ctor(self) { ... }
fn set_color_injected(self) -> Color { ... }
fn get_color_injected(self) -> Color { ... }
fn enable_rect_clipping_injected(self) -> Rect { ... }
fn get_clipping_softness_injected(self) -> Vector2 { ... }
fn set_clipping_softness_injected(self) -> Vector2 { ... }
}Provided Methods§
Sourcefn get_has_pop_instruction(self) -> bool
fn get_has_pop_instruction(self) -> bool
get_hasPopInstruction() overload
Sourcefn set_has_pop_instruction(self, value: impl Into<bool>)
fn set_has_pop_instruction(self, value: impl Into<bool>)
set_hasPopInstruction(bool) overload
Sourcefn get_material_count(self) -> i32
fn get_material_count(self) -> i32
get_materialCount() overload
Sourcefn set_material_count(self, value: impl Into<i32>)
fn set_material_count(self, value: impl Into<i32>)
set_materialCount(i32) overload
Sourcefn get_pop_material_count(self) -> i32
fn get_pop_material_count(self) -> i32
get_popMaterialCount() overload
Sourcefn set_pop_material_count(self, value: impl Into<i32>)
fn set_pop_material_count(self, value: impl Into<i32>)
set_popMaterialCount(i32) overload
Sourcefn get_absolute_depth(self) -> i32
fn get_absolute_depth(self) -> i32
get_absoluteDepth() overload
Sourcefn get_has_moved(self) -> bool
fn get_has_moved(self) -> bool
get_hasMoved() overload
Sourcefn get_cull_transparent_mesh(self) -> bool
fn get_cull_transparent_mesh(self) -> bool
get_cullTransparentMesh() overload
Sourcefn set_cull_transparent_mesh(self, value: impl Into<bool>)
fn set_cull_transparent_mesh(self, value: impl Into<bool>)
set_cullTransparentMesh(bool) overload
Sourcefn get_has_rect_clipping(self) -> bool
fn get_has_rect_clipping(self) -> bool
get_hasRectClipping() overload
Sourcefn get_relative_depth(self) -> i32
fn get_relative_depth(self) -> i32
get_relativeDepth() overload
Sourcefn get_is_mask(self) -> bool
fn get_is_mask(self) -> bool
get_isMask() overload
Sourcefn set_is_mask(self, value: impl Into<bool>)
fn set_is_mask(self, value: impl Into<bool>)
set_isMask(bool) overload
Sourcefn set_color(self, color: impl Into<Color>)
fn set_color(self, color: impl Into<Color>)
SetColor(crate::unity_engine::color::Color) overload
Sourcefn enable_rect_clipping(self, rect: impl Into<Rect>)
fn enable_rect_clipping(self, rect: impl Into<Rect>)
EnableRectClipping(crate::unity_engine::rect::Rect) overload
Sourcefn get_clipping_softness(self) -> Vector2
fn get_clipping_softness(self) -> Vector2
get_clippingSoftness() overload
Sourcefn set_clipping_softness(self, value: impl Into<Vector2>)
fn set_clipping_softness(self, value: impl Into<Vector2>)
set_clippingSoftness(crate::unity_engine::vector2::Vector2) overload
Sourcefn disable_rect_clipping(self)
fn disable_rect_clipping(self)
DisableRectClipping() overload
Sourcefn set_material(self, material: impl Into<Material>, index: impl Into<i32>)
fn set_material(self, material: impl Into<Material>, index: impl Into<i32>)
SetMaterial(crate::unity_engine::material::Material, i32) overload
Sourcefn get_material(self, index: impl Into<i32>) -> Material
fn get_material(self, index: impl Into<i32>) -> Material
GetMaterial(i32) overload
Sourcefn set_pop_material(self, material: impl Into<Material>, index: impl Into<i32>)
fn set_pop_material(self, material: impl Into<Material>, index: impl Into<i32>)
SetPopMaterial(crate::unity_engine::material::Material, i32) overload
Sourcefn get_pop_material(self, index: impl Into<i32>) -> Material
fn get_pop_material(self, index: impl Into<i32>) -> Material
GetPopMaterial(i32) overload
Sourcefn set_texture(self, texture: impl Into<Texture>)
fn set_texture(self, texture: impl Into<Texture>)
SetTexture(crate::unity_engine::texture::Texture) overload
Sourcefn set_alpha_texture(self, texture: impl Into<Texture>)
fn set_alpha_texture(self, texture: impl Into<Texture>)
SetAlphaTexture(crate::unity_engine::texture::Texture) overload
Sourcefn get_inherited_alpha(self) -> f32
fn get_inherited_alpha(self) -> f32
GetInheritedAlpha() overload
Sourcefn set_material_2(
self,
material: impl Into<Material>,
texture: impl Into<Texture>,
)
fn set_material_2( self, material: impl Into<Material>, texture: impl Into<Texture>, )
SetMaterial(crate::unity_engine::material::Material, crate::unity_engine::texture::Texture) overload
Sourcefn get_material_2(self) -> Material
fn get_material_2(self) -> Material
GetMaterial() overload
Sourcefn set_vertices(self, vertices: impl Into<List_1<UIVertex>>)
fn set_vertices(self, vertices: impl Into<List_1<UIVertex>>)
SetVertices(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>) overload
Sourcefn set_vertices_2(
self,
vertices: impl Into<Array<UIVertex>>,
size: impl Into<i32>,
)
fn set_vertices_2( self, vertices: impl Into<Array<UIVertex>>, size: impl Into<i32>, )
SetVertices(::unity::Array<crate::unity_engine::uivertex::UIVertex>, i32) overload
Sourcefn set_color_injected(self) -> Color
fn set_color_injected(self) -> Color
SetColor_Injected(*mutcrate::unity_engine::color::Color) overload
Sourcefn get_color_injected(self) -> Color
fn get_color_injected(self) -> Color
GetColor_Injected(*mutcrate::unity_engine::color::Color) overload
Sourcefn enable_rect_clipping_injected(self) -> Rect
fn enable_rect_clipping_injected(self) -> Rect
EnableRectClipping_Injected(*mutcrate::unity_engine::rect::Rect) overload
Sourcefn get_clipping_softness_injected(self) -> Vector2
fn get_clipping_softness_injected(self) -> Vector2
get_clippingSoftness_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Sourcefn set_clipping_softness_injected(self) -> Vector2
fn set_clipping_softness_injected(self) -> Vector2
set_clippingSoftness_Injected(*mutcrate::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§
impl<__T: ICanvasRenderer> ICanvasRendererMethods for __T
unity_engine-canvasrenderer only.