Struct gdnative::EditorSpatialGizmo
[−]
[src]
pub struct EditorSpatialGizmo { /* fields omitted */ }
tools class EditorSpatialGizmo : SpatialGizmo
(reference counted)
Base class
EditorSpatialGizmo inherits SpatialGizmo and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Tool
This class is used to interact with godot's editor.
Methods
impl EditorSpatialGizmo
[src]
pub fn as_spatial_gizmo(&self) -> SpatialGizmo
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn redraw(&mut self)
[src]
pub fn get_handle_name(&mut self, index: i64) -> GodotString
[src]
pub fn get_handle_value(&mut self, index: i64) -> Variant
[src]
pub fn set_handle(&mut self, index: i64, camera: Option<Camera>, point: Vector2)
[src]
pub fn commit_handle(&mut self, index: i64, restore: Variant, cancel: bool)
[src]
pub fn add_lines(
&mut self,
lines: Vector3Array,
material: Option<Material>,
billboard: bool
)
[src]
&mut self,
lines: Vector3Array,
material: Option<Material>,
billboard: bool
)
pub fn add_mesh(
&mut self,
mesh: Option<ArrayMesh>,
billboard: bool,
skeleton: Rid
)
[src]
&mut self,
mesh: Option<ArrayMesh>,
billboard: bool,
skeleton: Rid
)
pub fn add_collision_segments(&mut self, segments: Vector3Array)
[src]
pub fn add_collision_triangles(
&mut self,
triangles: Option<TriangleMesh>,
bounds: Aabb
)
[src]
&mut self,
triangles: Option<TriangleMesh>,
bounds: Aabb
)
pub fn add_unscaled_billboard(
&mut self,
material: Option<Material>,
default_scale: f64
)
[src]
&mut self,
material: Option<Material>,
default_scale: f64
)
pub fn add_handles(
&mut self,
handles: Vector3Array,
billboard: bool,
secondary: bool
)
[src]
&mut self,
handles: Vector3Array,
billboard: bool,
secondary: bool
)
pub fn set_spatial_node(&mut self, node: Option<Object>)
[src]
pub fn clear(&mut self)
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = SpatialGizmo>
pub fn as_reference(&self) -> Reference
[src]
Up-cast.
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for EditorSpatialGizmo
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for EditorSpatialGizmo
[src]
type Target = SpatialGizmo
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.