Struct gdnative::OptionButton
[−]
[src]
pub struct OptionButton { /* fields omitted */ }
Methods
impl OptionButton
[src]
pub fn _selected(&self, arg0: i64)
[src]
pub fn add_item(&self, label: GodotString, id: i64)
[src]
pub fn add_icon_item(
&self,
texture: Option<GodotRef<Texture>>,
label: GodotString,
id: i64
)
[src]
&self,
texture: Option<GodotRef<Texture>>,
label: GodotString,
id: i64
)
pub fn set_item_text(&self, idx: i64, text: GodotString)
[src]
pub fn set_item_icon(&self, idx: i64, texture: Option<GodotRef<Texture>>)
[src]
pub fn set_item_disabled(&self, idx: i64, disabled: bool)
[src]
pub fn set_item_id(&self, idx: i64, id: i64)
[src]
pub fn set_item_metadata(&self, idx: i64, metadata: Variant)
[src]
pub fn get_item_text(&self, idx: i64) -> GodotString
[src]
pub fn get_item_icon(&self, idx: i64) -> Option<GodotRef<Texture>>
[src]
pub fn get_item_id(&self, idx: i64) -> i64
[src]
pub fn get_item_metadata(&self, idx: i64) -> Variant
[src]
pub fn is_item_disabled(&self, idx: i64) -> bool
[src]
pub fn get_item_count(&self) -> i64
[src]
pub fn add_separator(&self)
[src]
pub fn clear(&self)
[src]
pub fn select(&self, idx: i64)
[src]
pub fn get_selected(&self) -> i64
[src]
pub fn get_selected_id(&self) -> i64
[src]
pub fn get_selected_metadata(&self) -> Variant
[src]
pub fn remove_item(&self, idx: i64)
[src]
pub fn _select_int(&self, arg0: i64)
[src]
pub fn get_popup(&self) -> Option<GodotRef<PopupMenu>>
[src]
pub fn _set_items(&self, arg0: VariantArray)
[src]
pub fn _get_items(&self) -> VariantArray
[src]
Methods from Deref<Target = Button>
pub fn set_text(&self, text: GodotString)
[src]
pub fn get_text(&self) -> GodotString
[src]
[src]
[src]
pub fn set_flat(&self, enabled: bool)
[src]
pub fn set_clip_text(&self, enabled: bool)
[src]
pub fn get_clip_text(&self) -> bool
[src]
pub fn set_text_align(&self, align: i64)
[src]
pub fn is_flat(&self) -> bool
[src]
Trait Implementations
impl GodotClass for OptionButton
[src]
type ClassData = OptionButton
type Reference = OptionButton
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