Struct gdnative::CapsuleShape [−][src]
pub struct CapsuleShape { /* fields omitted */ }
core class CapsuleShape : Shape
(reference counted)
Base class
CapsuleShape inherits Shape and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl CapsuleShape
[src]
impl CapsuleShape
pub fn as_shape(&self) -> Shape
[src]
pub fn as_shape(&self) -> Shape
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn set_radius(&mut self, radius: f64)
[src]
pub fn set_radius(&mut self, radius: f64)
pub fn get_radius(&self) -> f64
[src]
pub fn get_radius(&self) -> f64
pub fn set_height(&mut self, height: f64)
[src]
pub fn set_height(&mut self, height: f64)
pub fn get_height(&self) -> f64
[src]
pub fn get_height(&self) -> f64
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Shape>
pub fn as_resource(&self) -> Resource
[src]
pub fn as_resource(&self) -> Resource
Up-cast.
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for CapsuleShape
[src]
impl GodotObject for CapsuleShape
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for CapsuleShape
[src]
impl Deref for CapsuleShape
type Target = Shape
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for CapsuleShape
[src]
impl DerefMut for CapsuleShape
impl Drop for CapsuleShape
[src]
impl Drop for CapsuleShape
Auto Trait Implementations
impl !Send for CapsuleShape
impl !Send for CapsuleShape
impl !Sync for CapsuleShape
impl !Sync for CapsuleShape