Struct gdnative::StyleBoxLine
[−]
[src]
pub struct StyleBoxLine { /* fields omitted */ }
core class StyleBoxLine : StyleBox
(reference counted)
Base class
StyleBoxLine inherits StyleBox and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl StyleBoxLine
[src]
pub fn as_style_box(&self) -> StyleBox
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn set_color(&mut self, color: Color)
[src]
pub fn get_color(&self) -> Color
[src]
pub fn set_thickness(&mut self, thickness: i64)
[src]
pub fn get_thickness(&self) -> i64
[src]
pub fn set_grow(&mut self, grow: f64)
[src]
pub fn get_grow(&self) -> f64
[src]
pub fn set_vertical(&mut self, vertical: bool)
[src]
pub fn is_vertical(&self) -> bool
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = StyleBox>
pub fn as_resource(&self) -> Resource
[src]
Up-cast.
pub fn test_mask(&self, point: Vector2, rect: Rect2) -> bool
[src]
pub fn set_default_margin(&mut 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]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for StyleBoxLine
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for StyleBoxLine
[src]
type Target = StyleBox
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.