Struct gdnative::StyleBoxTexture
[−]
[src]
pub struct StyleBoxTexture { /* fields omitted */ }
Methods
impl StyleBoxTexture
[src]
pub fn set_texture(&self, texture: Option<GodotRef<Resource>>)
[src]
pub fn get_texture(&self) -> Option<GodotRef<Resource>>
[src]
pub fn set_normal_map(&self, normal_map: Option<GodotRef<Resource>>)
[src]
pub fn get_normal_map(&self) -> Option<GodotRef<Resource>>
[src]
pub fn set_margin_size(&self, margin: i64, size: f64)
[src]
pub fn get_margin_size(&self, margin: i64) -> f64
[src]
pub fn set_expand_margin_size(&self, margin: i64, size: f64)
[src]
pub fn set_expand_margin_all(&self, size: f64)
[src]
pub fn set_expand_margin_individual(
&self,
size_left: f64,
size_top: f64,
size_right: f64,
size_bottom: f64
)
[src]
&self,
size_left: f64,
size_top: f64,
size_right: f64,
size_bottom: f64
)
pub fn get_expand_margin_size(&self, margin: i64) -> f64
[src]
pub fn set_region_rect(&self, region: Rect2)
[src]
pub fn get_region_rect(&self) -> Rect2
[src]
pub fn set_draw_center(&self, enable: bool)
[src]
pub fn is_draw_center_enabled(&self) -> bool
[src]
pub fn set_modulate(&self, color: Color)
[src]
pub fn get_modulate(&self) -> Color
[src]
pub fn set_h_axis_stretch_mode(&self, mode: i64)
[src]
pub fn set_v_axis_stretch_mode(&self, mode: i64)
[src]
Methods from Deref<Target = StyleBox>
pub fn test_mask(&self, point: Vector2, rect: Rect2) -> bool
[src]
pub fn set_default_margin(&self, margin: i64, offset: f64)
[src]
pub fn get_default_margin(&self, margin: i64) -> f64
[src]
pub fn get_margin(&self, margin: i64) -> f64
[src]
pub fn get_minimum_size(&self) -> Vector2
[src]
pub fn get_center_size(&self) -> Vector2
[src]
pub fn get_offset(&self) -> Vector2
[src]
pub fn draw(&self, canvas_item: Rid, rect: Rect2)
[src]
Trait Implementations
impl GodotClass for StyleBoxTexture
[src]
type ClassData = StyleBoxTexture
type Reference = StyleBoxTexture
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