Struct gdnative::ViewportTexture [−][src]
pub struct ViewportTexture { /* fields omitted */ }
core class ViewportTexture : Texture
(reference counted)
Base class
ViewportTexture inherits Texture and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl ViewportTexture
[src]
impl ViewportTexture
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 set_viewport_path_in_scene(&mut self, path: NodePath)
[src]
pub fn set_viewport_path_in_scene(&mut self, path: NodePath)
pub fn get_viewport_path_in_scene(&self) -> NodePath
[src]
pub fn get_viewport_path_in_scene(&self) -> NodePath
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 ViewportTexture
[src]
impl GodotObject for ViewportTexture
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 ViewportTexture
[src]
impl Deref for ViewportTexture
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 ViewportTexture
[src]
impl DerefMut for ViewportTexture
impl Drop for ViewportTexture
[src]
impl Drop for ViewportTexture
Auto Trait Implementations
impl !Send for ViewportTexture
impl !Send for ViewportTexture
impl !Sync for ViewportTexture
impl !Sync for ViewportTexture