[][src]Struct orbtk_widgets::ListView

pub struct ListView { /* fields omitted */ }

The ListView is an items drawer widget with selectable items.

style: items-widget

Implementations

impl ListView[src]

pub fn get<'a>(ctx: WidgetContainer<'a>) -> ListViewCtx<'a>[src]

Gets a widget context that wraps the given widgets an provides access to the its properties.

impl ListView[src]

pub fn id(self, id: impl Into<String>) -> Self[src]

Sets the id selector.

pub fn style(self, style: impl Into<String>) -> Self[src]

Sets the style selector (replaces the old selector property).

pub fn position(self, position: impl IntoPropertySource<Point>) -> Self[src]

Sets or shares the position of the widget. (Be careful the position could be adjusted by layouts).

pub fn constraint(self, constraint: impl IntoPropertySource<Constraint>) -> Self[src]

Sets or shares the constraint property.

pub fn on_changed_filter(self, filter: impl IntoPropertySource<Filter>) -> Self[src]

Sets or shares the filter for the on_changed property callback.

pub fn v_align(self, v_align: impl IntoPropertySource<Alignment>) -> Self[src]

Sets or shares the vertical alignment property.

pub fn h_align(self, h_align: impl IntoPropertySource<Alignment>) -> Self[src]

Sets or shares the horizontal alignment property.

pub fn vertical_alignment(
    self,
    vertical_alignment: impl IntoPropertySource<Alignment>
) -> Self
[src]

👎 Deprecated:

Use v_align instead

Sets or shares the vertical alignment property.

pub fn horizontal_alignment(
    self,
    horizontal_alignment: impl IntoPropertySource<Alignment>
) -> Self
[src]

👎 Deprecated:

Use h_align instead

Sets or shares the horizontal alignment property.

pub fn visibility(self, visibility: impl IntoPropertySource<Visibility>) -> Self[src]

Sets or shares the visibility property.

pub fn margin(self, margin: impl IntoPropertySource<Thickness>) -> Self[src]

Sets or shares the margin property.

pub fn enabled(self, enabled: impl IntoPropertySource<bool>) -> Self[src]

Sets or shares the enabled property.

pub fn clip(self, clip: impl IntoPropertySource<bool>) -> Self[src]

Sets or shares the clip property.

pub fn opacity(self, opacity: impl IntoPropertySource<f32>) -> Self[src]

Sets or shares the opacity property.

pub fn width(self, width: impl Into<f64>) -> Self[src]

Inserts a new width.

pub fn height(self, height: impl Into<f64>) -> Self[src]

Inserts a new height.

pub fn size(self, width: impl Into<f64>, height: impl Into<f64>) -> Self[src]

Inserts a new size.

pub fn min_width(self, min_width: impl Into<f64>) -> Self[src]

Inserts a new min_width.

pub fn min_height(self, min_height: impl Into<f64>) -> Self[src]

Inserts a new min_height.

pub fn min_size(
    self,
    min_width: impl Into<f64>,
    min_height: impl Into<f64>
) -> Self
[src]

Inserts a new min_size.

pub fn max_width(self, max_width: impl Into<f64>) -> Self[src]

Inserts a new max_width.

pub fn max_height(self, max_height: impl Into<f64>) -> Self[src]

Inserts a new max_height.

pub fn max_size(
    self,
    max_width: impl Into<f64>,
    max_height: impl Into<f64>
) -> Self
[src]

Inserts a new min_size.

pub fn name<P: Into<String>>(self, name: P) -> Self[src]

Sets the debug name of the widget.

pub fn background<P: IntoPropertySource<Brush>>(self, background: P) -> Self[src]

Sets or shares the background property.

pub fn border_radius<P: IntoPropertySource<f64>>(self, border_radius: P) -> Self[src]

Sets or shares the border radius property.

pub fn border_width<P: IntoPropertySource<Thickness>>(
    self,
    border_width: P
) -> Self
[src]

Sets or shares the border thickness property.

pub fn border_brush<P: IntoPropertySource<Brush>>(self, border_brush: P) -> Self[src]

Sets or shares the border brush property.

pub fn padding<P: IntoPropertySource<Thickness>>(self, padding: P) -> Self[src]

Sets or shares the padding property.

pub fn orientation<P: IntoPropertySource<Orientation>>(
    self,
    orientation: P
) -> Self
[src]

Sets or shares the orientation property.

pub fn count<P: IntoPropertySource<usize>>(self, count: P) -> Self[src]

Sets or shares the item count.

pub fn selection_mode<P: IntoPropertySource<SelectionMode>>(
    self,
    selection_mode: P
) -> Self
[src]

Sets or shares the selection mode property.

pub fn selected_indices<P: IntoPropertySource<SelectedIndices>>(
    self,
    selected_indices: P
) -> Self
[src]

Sets or shares the selected indices.

pub fn selected_entities<P: IntoPropertySource<SelectedEntities>>(
    self,
    selected_entities: P
) -> Self
[src]

Sets or shares the list of selected indices.

pub fn request_update<P: IntoPropertySource<bool>>(
    self,
    request_update: P
) -> Self
[src]

Use this flag to force the redrawing of the items.

impl ListView[src]

pub fn items_builder<F: Fn(&mut BuildContext<'_>, usize) -> Entity + 'static>(
    self,
    builder: F
) -> Self
[src]

Define the template build function for the content of the ListViewItems.

Trait Implementations

impl ChangedHandler for ListView[src]

impl Default for ListView[src]

impl SelectionChangedHandler for ListView[src]

impl Template for ListView[src]

impl Widget for ListView[src]

fn new() -> Self[src]

Creates a new widget.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Component for E where
    E: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,