Struct gdnative::Curve
[−]
[src]
pub struct Curve { /* fields omitted */ }
core class Curve : Resource
(reference counted)
Base class
Curve inherits Resource and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl Curve
[src]
pub fn as_resource(&self) -> Resource
[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 add_point(
&mut self,
position: Vector2,
left_tangent: f64,
right_tangent: f64,
left_mode: i64,
right_mode: i64
) -> i64
[src]
&mut self,
position: Vector2,
left_tangent: f64,
right_tangent: f64,
left_mode: i64,
right_mode: i64
) -> i64
pub fn remove_point(&mut self, index: i64)
[src]
pub fn clear_points(&mut self)
[src]
pub fn get_point_position(&self, index: i64) -> Vector2
[src]
pub fn set_point_value(&mut self, index: i64, y: f64)
[src]
pub fn set_point_offset(&mut self, index: i64, offset: f64) -> i64
[src]
pub fn interpolate(&self, offset: f64) -> f64
[src]
pub fn interpolate_baked(&mut self, offset: f64) -> f64
[src]
pub fn get_point_left_tangent(&self, index: i64) -> f64
[src]
pub fn get_point_right_tangent(&self, index: i64) -> f64
[src]
pub fn set_point_left_tangent(&mut self, index: i64, tangent: f64)
[src]
pub fn set_point_right_tangent(&mut self, index: i64, tangent: f64)
[src]
pub fn set_point_left_mode(&mut self, index: i64, mode: i64)
[src]
pub fn set_point_right_mode(&mut self, index: i64, mode: i64)
[src]
pub fn get_min_value(&self) -> f64
[src]
pub fn set_min_value(&mut self, min: f64)
[src]
pub fn get_max_value(&self) -> f64
[src]
pub fn set_max_value(&mut self, max: f64)
[src]
pub fn clean_dupes(&mut self)
[src]
pub fn bake(&mut self)
[src]
pub fn get_bake_resolution(&self) -> i64
[src]
pub fn set_bake_resolution(&mut self, resolution: i64)
[src]
pub fn _get_data(&self) -> VariantArray
[src]
pub fn _set_data(&mut self, data: VariantArray)
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Resource>
pub fn as_reference(&self) -> Reference
[src]
Up-cast.
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn _setup_local_to_scene(&mut self)
[src]
pub fn set_path(&mut self, path: GodotString)
[src]
pub fn take_over_path(&mut self, path: GodotString)
[src]
pub fn get_path(&self) -> GodotString
[src]
pub fn set_name(&mut self, name: GodotString)
[src]
pub fn get_name(&self) -> GodotString
[src]
pub fn get_rid(&self) -> Rid
[src]
pub fn set_local_to_scene(&mut self, enable: bool)
[src]
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn get_local_scene(&self) -> Option<Node>
[src]
pub fn setup_local_to_scene(&mut self)
[src]
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for Curve
[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 Curve
[src]
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.