Struct gdnative::AcceptDialog [−][src]
pub struct AcceptDialog { /* fields omitted */ }
core class AcceptDialog : WindowDialog
(manually managed)
Base class
AcceptDialog inherits WindowDialog 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 AcceptDialog::free
.
Methods
impl AcceptDialog
[src]
impl AcceptDialog
pub fn as_window_dialog(&self) -> WindowDialog
[src]
pub fn as_window_dialog(&self) -> WindowDialog
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 AcceptDialog::free
.
pub unsafe fn free(self)
[src]
pub unsafe fn free(self)
Manually deallocate the object.
pub fn _ok(&mut self)
[src]
pub fn _ok(&mut self)
pub fn get_ok(&mut self) -> Option<Button>
[src]
pub fn get_ok(&mut self) -> Option<Button>
pub fn get_label(&mut self) -> Option<Label>
[src]
pub fn get_label(&mut self) -> Option<Label>
pub fn set_hide_on_ok(&mut self, enabled: bool)
[src]
pub fn set_hide_on_ok(&mut self, enabled: bool)
pub fn get_hide_on_ok(&self) -> bool
[src]
pub fn get_hide_on_ok(&self) -> bool
pub fn add_cancel(&mut self, name: GodotString) -> Option<Button>
[src]
pub fn add_cancel(&mut self, name: GodotString) -> Option<Button>
pub fn _builtin_text_entered(&mut self, arg0: GodotString)
[src]
pub fn _builtin_text_entered(&mut self, arg0: GodotString)
pub fn register_text_enter(&mut self, line_edit: Option<Object>)
[src]
pub fn register_text_enter(&mut self, line_edit: Option<Object>)
pub fn _custom_action(&mut self, arg0: GodotString)
[src]
pub fn _custom_action(&mut self, arg0: GodotString)
pub fn set_text(&mut self, text: GodotString)
[src]
pub fn set_text(&mut self, text: GodotString)
pub fn get_text(&self) -> GodotString
[src]
pub fn get_text(&self) -> GodotString
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = WindowDialog>
pub fn as_popup(&self) -> Popup
[src]
pub fn as_popup(&self) -> Popup
Up-cast.
pub fn _gui_input(&mut self, arg0: Option<InputEvent>)
[src]
pub fn _gui_input(&mut self, arg0: Option<InputEvent>)
pub fn set_title(&mut self, title: GodotString)
[src]
pub fn set_title(&mut self, title: GodotString)
pub fn get_title(&self) -> GodotString
[src]
pub fn get_title(&self) -> GodotString
pub fn set_resizable(&mut self, resizable: bool)
[src]
pub fn set_resizable(&mut self, resizable: bool)
pub fn get_resizable(&self) -> bool
[src]
pub fn get_resizable(&self) -> bool
pub fn _closed(&mut self)
[src]
pub fn _closed(&mut self)
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for AcceptDialog
[src]
impl GodotObject for AcceptDialog
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 AcceptDialog
[src]
impl Deref for AcceptDialog
type Target = WindowDialog
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for AcceptDialog
[src]
impl DerefMut for AcceptDialog
Auto Trait Implementations
impl !Send for AcceptDialog
impl !Send for AcceptDialog
impl !Sync for AcceptDialog
impl !Sync for AcceptDialog