Struct gdnative::SpinBox [−][src]
pub struct SpinBox { /* fields omitted */ }
core class SpinBox : Range
(manually managed)
Base class
SpinBox inherits Range and all of its methods.
Memory management
Non reference counted objects such as the ones of this type are usually owned by the engine.
In the cases where Rust code owns an object of this type, ownership should be either passed
to the engine or the object must be manually destroyed using SpinBox::free
.
Methods
impl SpinBox
[src]
impl SpinBox
pub fn as_range(&self) -> Range
[src]
pub fn as_range(&self) -> Range
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
Constructor.
Because this type is not reference counted, the lifetime of the returned object
is not automatically managed.
Immediately after creation, the object is owned by the caller, and can be
passed to the engine (in which case the engine will be responsible for
destroying the object) or destroyed manually using SpinBox::free
.
pub unsafe fn free(self)
[src]
pub unsafe fn free(self)
Manually deallocate the object.
pub fn _gui_input(&mut self, arg0: Option<InputEvent>)
[src]
pub fn _gui_input(&mut self, arg0: Option<InputEvent>)
pub fn _text_entered(&mut self, arg0: GodotString)
[src]
pub fn _text_entered(&mut self, arg0: GodotString)
pub fn set_suffix(&mut self, suffix: GodotString)
[src]
pub fn set_suffix(&mut self, suffix: GodotString)
pub fn get_suffix(&self) -> GodotString
[src]
pub fn get_suffix(&self) -> GodotString
pub fn set_prefix(&mut self, prefix: GodotString)
[src]
pub fn set_prefix(&mut self, prefix: GodotString)
pub fn get_prefix(&self) -> GodotString
[src]
pub fn get_prefix(&self) -> GodotString
pub fn set_editable(&mut self, editable: bool)
[src]
pub fn set_editable(&mut self, editable: bool)
pub fn is_editable(&self) -> bool
[src]
pub fn is_editable(&self) -> bool
pub fn _line_edit_focus_exit(&mut self)
[src]
pub fn _line_edit_focus_exit(&mut self)
pub fn get_line_edit(&mut self) -> Option<LineEdit>
[src]
pub fn get_line_edit(&mut self) -> Option<LineEdit>
pub fn _line_edit_input(&mut self, arg0: Option<InputEvent>)
[src]
pub fn _line_edit_input(&mut self, arg0: Option<InputEvent>)
pub fn _range_click_timeout(&mut self)
[src]
pub fn _range_click_timeout(&mut self)
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for SpinBox
[src]
impl GodotObject for SpinBox
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 SpinBox
[src]
impl Deref for SpinBox
type Target = Range
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for SpinBox
[src]
impl DerefMut for SpinBox