[−]Struct orbtk::prelude::ItemsWidget
The ItemsWidget
is a simple no interactive items drawer widget.
CSS element: items-widget
Methods
impl ItemsWidget
[src]
pub fn items_builder<F>(self, builder: F) -> ItemsWidget where
F: 'static + Fn(&mut BuildContext, usize) -> Entity,
[src]
F: 'static + Fn(&mut BuildContext, usize) -> Entity,
impl ItemsWidget
pub fn attach<P>(self, property: AttachedProperty<P>) -> ItemsWidget where
P: Debug + Component,
P: Debug + Component,
Sets or shares an attached property.
pub fn position(self, position: impl IntoPropertySource<Point>) -> ItemsWidget
Sets or shares the constraint property.
pub fn constraint(
self,
constraint: impl IntoPropertySource<Constraint>
) -> ItemsWidget
self,
constraint: impl IntoPropertySource<Constraint>
) -> ItemsWidget
Sets or shares the constraint property.
pub fn vertical_alignment(
self,
vertical_alignment: impl IntoPropertySource<Alignment>
) -> ItemsWidget
self,
vertical_alignment: impl IntoPropertySource<Alignment>
) -> ItemsWidget
Sets or shares the vertical alignment property.
pub fn horizontal_alignment(
self,
horizontal_alignment: impl IntoPropertySource<Alignment>
) -> ItemsWidget
self,
horizontal_alignment: impl IntoPropertySource<Alignment>
) -> ItemsWidget
Sets or shares the horizontal alignment property.
pub fn visibility(
self,
visibility: impl IntoPropertySource<Visibility>
) -> ItemsWidget
self,
visibility: impl IntoPropertySource<Visibility>
) -> ItemsWidget
Sets or shares the visibility property.
pub fn margin(self, margin: impl IntoPropertySource<Thickness>) -> ItemsWidget
Sets or shares the margin property.
pub fn enabled(self, enabled: impl IntoPropertySource<bool>) -> ItemsWidget
Sets or shares the enabled property.
pub fn clip(self, clip: impl IntoPropertySource<bool>) -> ItemsWidget
Sets or shares the clip property.
pub fn opacity(self, opacity: impl IntoPropertySource<f32>) -> ItemsWidget
pub fn width(self, width: f64) -> ItemsWidget
Inserts a new width.
pub fn height(self, height: f64) -> ItemsWidget
Inserts a new height.
pub fn size(self, width: f64, height: f64) -> ItemsWidget
Inserts a new size.
pub fn min_width(self, min_width: f64) -> ItemsWidget
Inserts a new min_width.
pub fn min_height(self, min_height: f64) -> ItemsWidget
Inserts a new min_height.
pub fn min_size(self, min_width: f64, min_height: f64) -> ItemsWidget
Inserts a new min_size.
pub fn max_width(self, max_width: f64) -> ItemsWidget
Inserts a new max_width.
pub fn max_height(self, max_height: f64) -> ItemsWidget
Inserts a new max_height.
pub fn max_size(self, max_width: f64, max_height: f64) -> ItemsWidget
Inserts a new min_size.
pub fn name<P>(self, name: P) -> ItemsWidget where
P: Into<String>,
P: Into<String>,
Sets the debug name of the widget.
pub fn clone_state(&self) -> Rc<ItemsWidgetState>
Returns the cloned state of the widget.
pub fn background<P>(self, background: P) -> ItemsWidget where
P: IntoPropertySource<Brush>,
P: IntoPropertySource<Brush>,
Sets or shares the background property.
pub fn border_radius<P>(self, border_radius: P) -> ItemsWidget where
P: IntoPropertySource<f64>,
P: IntoPropertySource<f64>,
Sets or shares the border radius property.
pub fn border_width<P>(self, border_width: P) -> ItemsWidget where
P: IntoPropertySource<Thickness>,
P: IntoPropertySource<Thickness>,
Sets or shares the border thickness property.
pub fn border_brush<P>(self, border_brush: P) -> ItemsWidget where
P: IntoPropertySource<Brush>,
P: IntoPropertySource<Brush>,
Sets or shares the border brush property.
pub fn padding<P>(self, padding: P) -> ItemsWidget where
P: IntoPropertySource<Thickness>,
P: IntoPropertySource<Thickness>,
Sets or shares the padding property.
pub fn orientation<P>(self, orientation: P) -> ItemsWidget where
P: IntoPropertySource<Orientation>,
P: IntoPropertySource<Orientation>,
Sets or shares the orientation property.
pub fn count<P>(self, count: P) -> ItemsWidget where
P: IntoPropertySource<usize>,
P: IntoPropertySource<usize>,
Sets or shared the count.
pub fn selector<P>(self, selector: P) -> ItemsWidget where
P: IntoPropertySource<Selector>,
P: IntoPropertySource<Selector>,
Sets or shares the css selector property.
Trait Implementations
impl Default for ItemsWidget
fn default() -> ItemsWidget
impl Widget for ItemsWidget
fn create() -> ItemsWidget
fn insert_handler(
self,
handler: impl Into<Rc<dyn EventHandler + 'static>>
) -> ItemsWidget
self,
handler: impl Into<Rc<dyn EventHandler + 'static>>
) -> ItemsWidget
fn child(self, child: Entity) -> ItemsWidget
fn state(&self) -> Option<Rc<dyn State + 'static>>
fn build(self, ctx: &mut BuildContext) -> Entity
impl Template for ItemsWidget
[src]
fn template(self, id: Entity, ctx: &mut BuildContext) -> ItemsWidget
[src]
fn render_object(&self) -> Box<dyn RenderObject + 'static>
[src]
fn layout(&self) -> Box<dyn Layout + 'static>
[src]
Auto Trait Implementations
impl !Send for ItemsWidget
impl !Sync for ItemsWidget
impl Unpin for ItemsWidget
impl !UnwindSafe for ItemsWidget
impl !RefUnwindSafe for ItemsWidget
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<E> Component for E where
E: Any,
[src]
E: Any,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,