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]
impl Curvepub fn as_resource(&self) -> Resource[src]
pub fn as_resource(&self) -> ResourceUp-cast.
pub fn new() -> Self[src]
pub fn new() -> Selfpub fn new_ref(&self) -> Self[src]
pub fn new_ref(&self) -> SelfCreates 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]
pub fn add_point(
&mut self,
position: Vector2,
left_tangent: f64,
right_tangent: f64,
left_mode: i64,
right_mode: i64
) -> i64pub fn remove_point(&mut self, index: i64)[src]
pub fn remove_point(&mut self, index: i64)pub fn clear_points(&mut self)[src]
pub fn clear_points(&mut self)pub fn get_point_position(&self, index: i64) -> Vector2[src]
pub fn get_point_position(&self, index: i64) -> Vector2pub fn set_point_value(&mut self, index: i64, y: f64)[src]
pub fn set_point_value(&mut self, index: i64, y: f64)pub fn set_point_offset(&mut self, index: i64, offset: f64) -> i64[src]
pub fn set_point_offset(&mut self, index: i64, offset: f64) -> i64pub fn interpolate(&self, offset: f64) -> f64[src]
pub fn interpolate(&self, offset: f64) -> f64pub fn interpolate_baked(&mut self, offset: f64) -> f64[src]
pub fn interpolate_baked(&mut self, offset: f64) -> f64pub fn get_point_left_tangent(&self, index: i64) -> f64[src]
pub fn get_point_left_tangent(&self, index: i64) -> f64pub fn get_point_right_tangent(&self, index: i64) -> f64[src]
pub fn get_point_right_tangent(&self, index: i64) -> f64pub fn set_point_left_tangent(&mut self, index: i64, tangent: f64)[src]
pub fn set_point_left_tangent(&mut self, index: i64, tangent: f64)pub fn set_point_right_tangent(&mut self, index: i64, tangent: f64)[src]
pub fn set_point_right_tangent(&mut self, index: i64, tangent: f64)pub fn set_point_left_mode(&mut self, index: i64, mode: i64)[src]
pub fn set_point_left_mode(&mut self, index: i64, mode: i64)pub fn set_point_right_mode(&mut self, index: i64, mode: i64)[src]
pub fn set_point_right_mode(&mut self, index: i64, mode: i64)pub fn get_min_value(&self) -> f64[src]
pub fn get_min_value(&self) -> f64pub fn set_min_value(&mut self, min: f64)[src]
pub fn set_min_value(&mut self, min: f64)pub fn get_max_value(&self) -> f64[src]
pub fn get_max_value(&self) -> f64pub fn set_max_value(&mut self, max: f64)[src]
pub fn set_max_value(&mut self, max: f64)pub fn clean_dupes(&mut self)[src]
pub fn clean_dupes(&mut self)pub fn bake(&mut self)[src]
pub fn bake(&mut self)pub fn get_bake_resolution(&self) -> i64[src]
pub fn get_bake_resolution(&self) -> i64pub fn set_bake_resolution(&mut self, resolution: i64)[src]
pub fn set_bake_resolution(&mut self, resolution: i64)pub fn _get_data(&self) -> VariantArray[src]
pub fn _get_data(&self) -> VariantArraypub fn _set_data(&mut self, data: VariantArray)[src]
pub fn _set_data(&mut self, data: VariantArray)pub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Methods from Deref<Target = Resource>
pub fn as_reference(&self) -> Reference[src]
pub fn as_reference(&self) -> ReferenceUp-cast.
pub fn new_ref(&self) -> Self[src]
pub fn new_ref(&self) -> SelfCreates a new reference to the same object.
pub fn _setup_local_to_scene(&mut self)[src]
pub fn _setup_local_to_scene(&mut self)pub fn set_path(&mut self, path: GodotString)[src]
pub fn set_path(&mut self, path: GodotString)pub fn take_over_path(&mut self, path: GodotString)[src]
pub fn take_over_path(&mut self, path: GodotString)pub fn get_path(&self) -> GodotString[src]
pub fn get_path(&self) -> GodotStringpub fn set_name(&mut self, name: GodotString)[src]
pub fn set_name(&mut self, name: GodotString)pub fn get_name(&self) -> GodotString[src]
pub fn get_name(&self) -> GodotStringpub fn get_rid(&self) -> Rid[src]
pub fn get_rid(&self) -> Ridpub fn set_local_to_scene(&mut self, enable: bool)[src]
pub fn set_local_to_scene(&mut self, enable: bool)pub fn is_local_to_scene(&self) -> bool[src]
pub fn is_local_to_scene(&self) -> boolpub fn get_local_scene(&self) -> Option<Node>[src]
pub fn get_local_scene(&self) -> Option<Node>pub fn setup_local_to_scene(&mut self)[src]
pub fn setup_local_to_scene(&mut self)pub fn duplicate(&self, subresources: bool) -> Option<Resource>[src]
pub fn duplicate(&self, subresources: bool) -> Option<Resource>pub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Trait Implementations
impl GodotObject for Curve[src]
impl GodotObject for Curvefn class_name() -> &'static str[src]
fn class_name() -> &'static strunsafe fn from_sys(obj: *mut godot_object) -> Self[src]
unsafe fn from_sys(obj: *mut godot_object) -> Selfunsafe fn to_sys(&self) -> *mut godot_object[src]
unsafe fn to_sys(&self) -> *mut godot_objectimpl Deref for Curve[src]
impl Deref for Curvetype Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl DerefMut for Curve[src]
impl DerefMut for Curveimpl Drop for Curve[src]
impl Drop for Curve