Struct gdnative::Gradient
[−]
[src]
pub struct Gradient { /* fields omitted */ }
core class Gradient : Resource
(reference counted)
Base class
Gradient inherits Resource and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl Gradient
[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, offset: f64, color: Color)
[src]
pub fn remove_point(&mut self, offset: i64)
[src]
pub fn set_offset(&mut self, point: i64, offset: f64)
[src]
pub fn get_offset(&self, point: i64) -> f64
[src]
pub fn set_color(&mut self, point: i64, color: Color)
[src]
pub fn get_color(&self, point: i64) -> Color
[src]
pub fn interpolate(&mut self, offset: f64) -> Color
[src]
pub fn get_point_count(&self) -> i64
[src]
pub fn set_offsets(&mut self, offsets: Float32Array)
[src]
pub fn get_offsets(&self) -> Float32Array
[src]
pub fn set_colors(&mut self, colors: ColorArray)
[src]
pub fn get_colors(&self) -> ColorArray
[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 Gradient
[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 Gradient
[src]
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.