Struct gdnative::LargeTexture [−][src]
pub struct LargeTexture { /* fields omitted */ }
core class LargeTexture : Texture
(reference counted)
Base class
LargeTexture inherits Texture and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl LargeTexture
[src]
impl LargeTexture
pub fn as_texture(&self) -> Texture
[src]
pub fn as_texture(&self) -> Texture
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_piece(&mut self, ofs: Vector2, texture: Option<Texture>) -> i64
[src]
pub fn add_piece(&mut self, ofs: Vector2, texture: Option<Texture>) -> i64
pub fn set_piece_offset(&mut self, idx: i64, ofs: Vector2)
[src]
pub fn set_piece_offset(&mut self, idx: i64, ofs: Vector2)
pub fn set_piece_texture(&mut self, idx: i64, texture: Option<Texture>)
[src]
pub fn set_piece_texture(&mut self, idx: i64, texture: Option<Texture>)
pub fn set_size(&mut self, size: Vector2)
[src]
pub fn set_size(&mut self, size: Vector2)
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
pub fn get_piece_count(&self) -> i64
[src]
pub fn get_piece_count(&self) -> i64
pub fn get_piece_offset(&self, idx: i64) -> Vector2
[src]
pub fn get_piece_offset(&self, idx: i64) -> Vector2
pub fn get_piece_texture(&self, idx: i64) -> Option<Texture>
[src]
pub fn get_piece_texture(&self, idx: i64) -> Option<Texture>
pub fn _set_data(&mut self, data: VariantArray)
[src]
pub fn _set_data(&mut self, data: VariantArray)
pub fn _get_data(&self) -> VariantArray
[src]
pub fn _get_data(&self) -> VariantArray
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) -> Resource
Up-cast.
pub fn get_width(&self) -> i64
[src]
pub fn get_width(&self) -> i64
pub fn get_height(&self) -> i64
[src]
pub fn get_height(&self) -> i64
pub fn get_size(&self) -> Vector2
[src]
pub fn get_size(&self) -> Vector2
pub fn has_alpha(&self) -> bool
[src]
pub fn has_alpha(&self) -> bool
pub 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) -> i64
pub 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 LargeTexture
[src]
impl GodotObject for LargeTexture
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 LargeTexture
[src]
impl Deref for LargeTexture
type Target = Texture
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for LargeTexture
[src]
impl DerefMut for LargeTexture
impl Drop for LargeTexture
[src]
impl Drop for LargeTexture
Auto Trait Implementations
impl !Send for LargeTexture
impl !Send for LargeTexture
impl !Sync for LargeTexture
impl !Sync for LargeTexture