Struct ux::ListView [−][src]
pub struct ListView { /* fields omitted */ }
Implementations
impl ListView
[src]
Trait Implementations
impl AsRef<Actor> for ListView
[src]
impl AsRef<BoxLayout> for ListView
[src]
impl AsRef<ListView> for ListView
[src]
impl AsRef<Widget> for ListView
[src]
impl Clone for ListView
[src]
impl Debug for ListView
[src]
impl Default for ListView
[src]
impl Display for ListView
[src]
impl Is<Actor> for ListView
[src]
impl Is<BoxLayout> for ListView
[src]
impl Is<ListView> for ListView
[src]
impl Is<Widget> for ListView
[src]
impl Object for ListView
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ListView
impl !Send for ListView
impl !Sync for ListView
impl Unpin for ListView
impl UnwindSafe for ListView
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<O> ListViewExt for O where
O: Is<ListView>,
[src]
O: Is<ListView>,
pub fn add_attribute(&self, attribute: &str, column: u32)
[src]
add_attribute: @listview: An #ListView @attribute: Name of the attribute @column: Column number
Adds an attribute mapping between the current model and the objects from the cell renderer.
pub fn freeze(&self)
[src]
freeze: @listview: An #ListView
Freeze the view. This means that the view will not act on changes to the model until it is thawed. Call #thaw to thaw the view.
pub fn get_factory(&self) -> Option<ItemFactory>
[src]
get_factory: @listview: A #ListView
Gets the #ItemFactory used for creating new list items.
Returns: (transfer none): A #ItemFactory.
pub fn get_item_type(&self) -> Type
[src]
get_item_type: @listview: An #ListView
Get the item type currently being used to create items
Returns: a #GType
pub fn get_model(&self) -> Option<Model>
[src]
get_model: @listview: An #ListView
Get the model currently used by the #ListView
Returns: (transfer none): the current #Model
pub fn set_factory(&self, factory: Option<&ItemFactory>)
[src]
set_factory: @listview: A #ListView @factory: (allow-none): A #ItemFactory
Sets @factory to be the factory used for creating new list items
pub fn set_item_type(&self, item_type: Type)
[src]
set_item_type: @listview: An #ListView @item_type: A #GType
Set the item type used to create items representing each row in the model
pub fn set_model<P>(&self, model: &P) where
P: Is<Model>,
[src]
P: Is<Model>,
set_model: @listview: An #ListView @model: A #Model
Set the model used by the #ListView
pub fn thaw(&self)
[src]
thaw: @listview: An #ListView
Thaw the view. This means that the view will now act on changes to the model.
pub fn connect_property_factory_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_item_type_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_model_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
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),