pub struct ListLogic {
pub list_items: Vec<ListItem>,
pub scroll_item_in_view: Option<usize>,
pub set_scroll_pos: Option<Vec2>,
pub start_item: usize,
pub end_item: usize,
pub end_fill: usize,
pub selection: Vec<usize>,
pub last_range: Option<(usize, usize)>,
}
Fields§
§list_items: Vec<ListItem>
§scroll_item_in_view: Option<usize>
§set_scroll_pos: Option<Vec2>
§start_item: usize
§end_item: usize
§end_fill: usize
§selection: Vec<usize>
§last_range: Option<(usize, usize)>
Implementations§
Source§impl ListLogic
impl ListLogic
pub fn set_list_len(&mut self, len: usize)
pub fn handle_list_scroll_bars( &mut self, cx: &mut Cx, event: &mut Event, view: &mut ScrollView, ) -> bool
pub fn begin_list( &mut self, cx: &mut Cx, view: &mut ScrollView, tail_list: bool, row_height: f32, ) -> Result<(), ()>
pub fn walk_turtle_to_end(&mut self, cx: &mut Cx, row_height: f32)
pub fn end_list(&mut self, cx: &mut Cx, view: &mut ScrollView)
pub fn set_visible_range_and_scroll( &mut self, cx: &mut Cx, view: &mut ScrollView, tail_list: bool, row_height: f32, )
pub fn get_next_single_selection(&self) -> ListSelect
pub fn get_prev_single_selection(&self) -> ListSelect
pub fn handle_list_logic<F>( &mut self, cx: &mut Cx, event: &mut Event, select: ListSelect, cb: F, ) -> ListEvent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListLogic
impl RefUnwindSafe for ListLogic
impl Send for ListLogic
impl Sync for ListLogic
impl Unpin for ListLogic
impl UnwindSafe for ListLogic
Blanket Implementations§
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