Struct freya::prelude::VirtualScrollViewProps
source · pub struct VirtualScrollViewProps<'a, T>where
T: 'a,{
pub builder_values: Option<T>,
pub direction: String,
pub height: String,
pub width: String,
pub padding: String,
pub show_scrollbar: bool,
pub scroll_with_arrows: bool,
/* private fields */
}Expand description
VirtualScrollView component properties.
Fields§
§builder_values: Option<T>Custom values to pass to the builder function.
direction: StringDirection of the VirtualScrollView, vertical or horizontal.
height: StringHeight of the VirtualScrollView.
width: StringWidth of the VirtualScrollView.
padding: StringPadding of the VirtualScrollView.
show_scrollbar: boolShow the scrollbar, visible by default.
scroll_with_arrows: boolEnable scrolling with arrow keys.
Implementations§
source§impl<'a, T> VirtualScrollViewProps<'a, T>where
T: 'a,
impl<'a, T> VirtualScrollViewProps<'a, T>where T: 'a,
sourcepub fn builder(
) -> VirtualScrollViewPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), ()), T>
pub fn builder( ) -> VirtualScrollViewPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), ()), T>
Create a builder for building VirtualScrollViewProps.
On the builder, call .length(...), .item_size(...), .builder(...), .builder_values(...)(optional), .direction(...)(optional), .height(...)(optional), .width(...)(optional), .padding(...)(optional), .show_scrollbar(...)(optional), .scroll_with_arrows(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of VirtualScrollViewProps.
Trait Implementations§
source§impl<'a, T> Properties for VirtualScrollViewProps<'a, T>where
T: 'a,
impl<'a, T> Properties for VirtualScrollViewProps<'a, T>where T: 'a,
§type Builder = VirtualScrollViewPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), ()), T>
type Builder = VirtualScrollViewPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), ()), T>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
source§fn builder() -> <VirtualScrollViewProps<'a, T> as Properties>::Builder
fn builder() -> <VirtualScrollViewProps<'a, T> as Properties>::Builder
Create a builder for this component.
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for VirtualScrollViewProps<'a, T>
impl<'a, T> !Send for VirtualScrollViewProps<'a, T>
impl<'a, T> !Sync for VirtualScrollViewProps<'a, T>
impl<'a, T> Unpin for VirtualScrollViewProps<'a, T>where T: Unpin,
impl<'a, T> !UnwindSafe for VirtualScrollViewProps<'a, T>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer