Struct gdnative::CurveTexture [−][src]
pub struct CurveTexture { /* fields omitted */ }core class CurveTexture : Texture (reference counted)
Base class
CurveTexture inherits Texture and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl CurveTexture[src]
impl CurveTexturepub fn as_texture(&self) -> Texture[src]
pub fn as_texture(&self) -> TextureUp-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 set_width(&mut self, width: i64)[src]
pub fn set_width(&mut self, width: i64)pub fn set_curve(&mut self, curve: Option<Curve>)[src]
pub fn set_curve(&mut self, curve: Option<Curve>)pub fn get_curve(&self) -> Option<Curve>[src]
pub fn get_curve(&self) -> Option<Curve>pub fn _update(&mut self)[src]
pub fn _update(&mut self)pub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Methods from Deref<Target = Texture>
pub fn as_resource(&self) -> Resource[src]
pub fn as_resource(&self) -> ResourceUp-cast.
pub fn get_width(&self) -> i64[src]
pub fn get_width(&self) -> i64pub fn get_height(&self) -> i64[src]
pub fn get_height(&self) -> i64pub fn get_size(&self) -> Vector2[src]
pub fn get_size(&self) -> Vector2pub fn has_alpha(&self) -> bool[src]
pub fn has_alpha(&self) -> boolpub fn set_flags(&mut self, flags: i64)[src]
pub fn set_flags(&mut self, flags: i64)pub fn get_flags(&self) -> i64[src]
pub fn get_flags(&self) -> i64pub fn draw(
&self,
canvas_item: Rid,
position: Vector2,
modulate: Color,
transpose: bool,
normal_map: Option<Texture>
)[src]
pub fn draw(
&self,
canvas_item: Rid,
position: Vector2,
modulate: Color,
transpose: bool,
normal_map: Option<Texture>
)pub fn draw_rect(
&self,
canvas_item: Rid,
rect: Rect2,
tile: bool,
modulate: Color,
transpose: bool,
normal_map: Option<Texture>
)[src]
pub fn draw_rect(
&self,
canvas_item: Rid,
rect: Rect2,
tile: bool,
modulate: Color,
transpose: bool,
normal_map: Option<Texture>
)pub fn draw_rect_region(
&self,
canvas_item: Rid,
rect: Rect2,
src_rect: Rect2,
modulate: Color,
transpose: bool,
normal_map: Option<Texture>,
clip_uv: bool
)[src]
pub fn draw_rect_region(
&self,
canvas_item: Rid,
rect: Rect2,
src_rect: Rect2,
modulate: Color,
transpose: bool,
normal_map: Option<Texture>,
clip_uv: bool
)pub fn get_data(&self) -> Option<Image>[src]
pub fn get_data(&self) -> Option<Image>pub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Trait Implementations
impl GodotObject for CurveTexture[src]
impl GodotObject for CurveTexturefn 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 CurveTexture[src]
impl Deref for CurveTexturetype Target = Texture
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl DerefMut for CurveTexture[src]
impl DerefMut for CurveTextureimpl Drop for CurveTexture[src]
impl Drop for CurveTextureAuto Trait Implementations
impl !Send for CurveTexture
impl !Send for CurveTextureimpl !Sync for CurveTexture
impl !Sync for CurveTexture