Struct gdnative::Gradient
[−]
[src]
pub struct Gradient { /* fields omitted */ }
Methods
impl Gradient
[src]
pub fn add_point(&self, offset: f64, color: Color)
[src]
pub fn remove_point(&self, offset: i64)
[src]
pub fn set_offset(&self, point: i64, offset: f64)
[src]
pub fn get_offset(&self, point: i64) -> f64
[src]
pub fn set_color(&self, point: i64, color: Color)
[src]
pub fn get_color(&self, point: i64) -> Color
[src]
pub fn interpolate(&self, offset: f64) -> Color
[src]
pub fn get_point_count(&self) -> i64
[src]
pub fn set_offsets(&self, offsets: Float32Array)
[src]
pub fn get_offsets(&self) -> Float32Array
[src]
pub fn set_colors(&self, colors: ColorArray)
[src]
pub fn get_colors(&self) -> ColorArray
[src]
Methods from Deref<Target = Resource>
pub fn _setup_local_to_scene(&self)
[src]
pub fn set_path(&self, path: GodotString)
[src]
pub fn take_over_path(&self, path: GodotString)
[src]
pub fn get_path(&self) -> GodotString
[src]
pub fn set_name(&self, name: GodotString)
[src]
pub fn get_name(&self) -> GodotString
[src]
pub fn get_rid(&self) -> Rid
[src]
pub fn set_local_to_scene(&self, enable: bool)
[src]
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn get_local_scene(&self) -> Option<GodotRef<Node>>
[src]
pub fn setup_local_to_scene(&self)
[src]
pub fn duplicate(&self, subresources: bool) -> Option<GodotRef<Resource>>
[src]
Trait Implementations
impl GodotClass for Gradient
[src]
type ClassData = Gradient
type Reference = Gradient
fn godot_name() -> &'static str
[src]
unsafe fn register_class(_desc: *mut c_void)
[src]
fn godot_info(&self) -> &GodotClassInfo
[src]
unsafe fn reference(
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference
[src]
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference