pub struct GridView { /* private fields */ }Implementations§
Source§impl GridView
impl GridView
pub fn new() -> Self
pub fn selected_index(self, value: impl Into<Option<usize>>) -> Self
pub fn can_drag_items(self, value: impl Into<Option<bool>>) -> Self
pub fn can_reorder_items(self, value: impl Into<Option<bool>>) -> Self
pub fn allow_drop(self, value: impl Into<Option<bool>>) -> Self
pub fn on_reordered( self, callback: impl IntoPayloadCallback<Vec<String>>, ) -> Self
pub fn on_selection_changed( self, callback: impl IntoPayloadCallback<Option<usize>>, ) -> Self
Trait Implementations§
Source§impl LayoutControl for GridView
impl LayoutControl for GridView
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
Source§impl SlotsControl for GridView
impl SlotsControl for GridView
impl StructuralPartialEq for GridView
Auto Trait Implementations§
impl !RefUnwindSafe for GridView
impl !Send for GridView
impl !Sync for GridView
impl !UnwindSafe for GridView
impl Freeze for GridView
impl Unpin for GridView
impl UnsafeUnpin for GridView
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more