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]
impl Gradient
pub fn as_resource(&self) -> Resource
[src]
pub fn as_resource(&self) -> Resource
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 add_point(&mut self, offset: f64, color: Color)
[src]
pub fn add_point(&mut self, offset: f64, color: Color)
pub fn remove_point(&mut self, offset: i64)
[src]
pub fn remove_point(&mut self, offset: i64)
pub fn set_offset(&mut self, point: i64, offset: f64)
[src]
pub fn set_offset(&mut self, point: i64, offset: f64)
pub fn get_offset(&self, point: i64) -> f64
[src]
pub fn get_offset(&self, point: i64) -> f64
pub fn set_color(&mut self, point: i64, color: Color)
[src]
pub fn set_color(&mut self, point: i64, color: Color)
pub fn get_color(&self, point: i64) -> Color
[src]
pub fn get_color(&self, point: i64) -> Color
pub fn interpolate(&mut self, offset: f64) -> Color
[src]
pub fn interpolate(&mut self, offset: f64) -> Color
pub fn get_point_count(&self) -> i64
[src]
pub fn get_point_count(&self) -> i64
pub fn set_offsets(&mut self, offsets: Float32Array)
[src]
pub fn set_offsets(&mut self, offsets: Float32Array)
pub fn get_offsets(&self) -> Float32Array
[src]
pub fn get_offsets(&self) -> Float32Array
pub fn set_colors(&mut self, colors: ColorArray)
[src]
pub fn set_colors(&mut self, colors: ColorArray)
pub fn get_colors(&self) -> ColorArray
[src]
pub fn get_colors(&self) -> ColorArray
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) -> Reference
Up-cast.
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates 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) -> GodotString
pub 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) -> GodotString
pub fn get_rid(&self) -> Rid
[src]
pub fn get_rid(&self) -> Rid
pub 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) -> bool
pub 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 Gradient
[src]
impl GodotObject for Gradient
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 Gradient
[src]
impl Deref for Gradient
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for Gradient
[src]
impl DerefMut for Gradient
impl Drop for Gradient
[src]
impl Drop for Gradient