Struct ux::ComboBox [−][src]
pub struct ComboBox { /* fields omitted */ }
Implementations
impl ComboBox
[src]
Trait Implementations
impl AsRef<Actor> for ComboBox
[src]
impl AsRef<ComboBox> for ComboBox
[src]
impl AsRef<Widget> for ComboBox
[src]
impl Clone for ComboBox
[src]
impl Debug for ComboBox
[src]
impl Default for ComboBox
[src]
impl Display for ComboBox
[src]
impl Is<Actor> for ComboBox
[src]
impl Is<ComboBox> for ComboBox
[src]
impl Is<Widget> for ComboBox
[src]
impl Object for ComboBox
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ComboBox
impl !Send for ComboBox
impl !Sync for ComboBox
impl Unpin for ComboBox
impl UnwindSafe for ComboBox
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<O> ComboBoxExt for O where
O: Is<ComboBox>,
[src]
O: Is<ComboBox>,
pub fn append_text(&self, text: &str)
[src]
append_text: @box: A #ComboBox @text: name of the item
Append an item to the combo box list
pub fn get_active_icon_name(&self) -> Option<String>
[src]
get_active_icon_name: @box: A #ComboBox
Get the name of the icon displayed in the combo box
Returns: the text string of the name of the displayed icon, owned by the combo box, or %None if there is no active icon.
pub fn get_active_text(&self) -> Option<String>
[src]
get_active_text: @box: A #ComboBox
Get the text displayed in the combo box
Returns: the text string, owned by the combo box
pub fn get_index(&self) -> i32
[src]
get_index: @box: A #ComboBox
Get the index of the last item selected
Returns: gint
pub fn insert_text(&self, position: i32, text: &str)
[src]
insert_text: @box: A #ComboBox @position: zero indexed position to insert the item at @text: name of the item
Insert an item into the combo box list.
pub fn insert_text_with_icon(&self, position: i32, text: &str, icon: &str)
[src]
insert_text_with_icon: @box: A #ComboBox @position: zero indexed position to insert the item at @text: name of the item @icon: name of an icon from the icon theme
Insert an item with text and an icon into the combo box list.
pub fn prepend_text(&self, text: &str)
[src]
prepend_text: @box: A #ComboBox @text: name of the item
Prepend an item to the combo box list
pub fn remove_all(&self)
[src]
remove_all: @box: A #ComboBox
Remove all the items of @box
pub fn remove_text(&self, position: usize)
[src]
remove_text: @box: A #ComboBox @position: position of the item to remove
Remove the item at @position
pub fn set_active_icon_name(&self, icon_name: Option<String>)
[src]
set_active_icon_name: @box: A #ComboBox @icon_name: (allow-none): Icon name to use for displayed icon
Set the icon displayed in the combo box.
pub fn set_active_text(&self, text: &str)
[src]
set_active_text: @box: A #ComboBox @text: text to display
Set the text displayed in the combo box
pub fn set_index(&self, index: i32)
[src]
set_index: @box: A #ComboBox @index: the index of the list item to set
Set the current combo box text from the item at @index in the list.
pub fn connect_property_active_icon_name_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_active_text_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_index_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<O> WidgetExt for O where
O: Is<Widget>,
[src]
O: Is<Widget>,
pub fn apply_style<P>(&self, style: &P) where
P: Is<Style>,
[src]
P: Is<Style>,
widget_apply_style: @widget: A #Widget @style: A #Style
Used to implement how a new style instance should be applied in the widget. For instance, setting style instance on stylable internal children.
pub fn get_available_area(&self, allocation: &ActorBox, area: &mut ActorBox)
[src]
get_available_area: @widget: A #Widget @allocation: A #ActorBox @area: A #ActorBox
Copies @allocation into @area and accounts for the padding values. This gives the area that is available in which to allocate children with respect to padding.
pub fn get_background_color(&self) -> Option<Color>
[src]
get_background_color: @actor: A #Widget
Get the color used as the background. This is set using the “background-color” CSS property. This function should normally only be used by subclasses.
Returns: (transfer none): a #Color
pub fn get_background_texture(&self) -> Option<Handle>
[src]
pub fn get_disabled(&self) -> bool
[src]
get_disabled: @widget: an #Widget
Get the value of the “disabled” property.
pub fn get_padding(&self) -> Padding
[src]
get_padding: @widget: A #Widget @padding: (out): A pointer to an #Padding to fill
Gets the padding of the widget, set using the “padding” CSS property. This function should normally only be used by subclasses.
pub fn long_press_cancel(&self)
[src]
long_press_cancel: @widget: An Widget
Cancel a long-press timeout if one is running and emit the signal to notify that the long-press has been cancelled.
pub fn long_press_query(&self, event: &mut Event)
[src]
long_press_query: @widget: An Widget @event: the event used to determine whether to run a long-press
Emit the long-press query signal and start a long-press timeout if required.
pub fn set_disabled(&self, disabled: bool)
[src]
widget_set_disabled: @widget: an #Widget @disabled: value to set
Set the disabled property. Disabled widgets have a “disabled” pseudo-class until disabled is set to #false.
pub fn connect_property_disabled_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_menu_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_tooltip_delay_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),