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 ViewportTexturepub 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_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) -> NodePathpub 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 ViewportTexture[src]
impl GodotObject for ViewportTexturefn 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 ViewportTexture[src]
impl Deref for ViewportTexturetype Target = Texture
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl DerefMut for ViewportTexture[src]
impl DerefMut for ViewportTextureimpl Drop for ViewportTexture[src]
impl Drop for ViewportTextureAuto Trait Implementations
impl !Send for ViewportTexture
impl !Send for ViewportTextureimpl !Sync for ViewportTexture
impl !Sync for ViewportTexture