pub struct DefaultDropdownInputHandler;Expand description
Default implementation of DropdownInputHandler
Trait Implementations§
Source§impl Clone for DefaultDropdownInputHandler
impl Clone for DefaultDropdownInputHandler
Source§fn clone(&self) -> DefaultDropdownInputHandler
fn clone(&self) -> DefaultDropdownInputHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultDropdownInputHandler
impl Debug for DefaultDropdownInputHandler
Source§impl Default for DefaultDropdownInputHandler
impl Default for DefaultDropdownInputHandler
Source§fn default() -> DefaultDropdownInputHandler
fn default() -> DefaultDropdownInputHandler
Returns the “default value” for a type. Read more
Source§impl DropdownInputHandler for DefaultDropdownInputHandler
impl DropdownInputHandler for DefaultDropdownInputHandler
fn hit_test_dropdown(&self, dropdown_rect: &Rect, mouse_pos: (f64, f64)) -> bool
fn hit_test_item(&self, item_rect: &Rect, mouse_pos: (f64, f64)) -> bool
fn mouse_to_item_index( &self, mouse_y: f64, popup_y: f64, item_height: f64, item_count: usize, ) -> Option<usize>
fn is_close_click(&self, mouse_pos: (f64, f64), popup_rect: &Rect) -> bool
fn mouse_to_grid_item_index( &self, mouse_pos: (f64, f64), popup_rect: &Rect, item_size: f64, columns: usize, item_count: usize, ) -> Option<usize>
impl Copy for DefaultDropdownInputHandler
Auto Trait Implementations§
impl Freeze for DefaultDropdownInputHandler
impl RefUnwindSafe for DefaultDropdownInputHandler
impl Send for DefaultDropdownInputHandler
impl Sync for DefaultDropdownInputHandler
impl Unpin for DefaultDropdownInputHandler
impl UnsafeUnpin for DefaultDropdownInputHandler
impl UnwindSafe for DefaultDropdownInputHandler
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