pub struct DefaultInteractionsEngine {
pub deselect_when_no_button_found: bool,
pub unfocus_when_selection_change: bool,
/* private fields */
}Expand description
Single pointer + Keyboard + Gamepad
Fields§
§unfocus_when_selection_change: boolImplementations§
Source§impl DefaultInteractionsEngine
impl DefaultInteractionsEngine
pub fn with_capacity( resize_listeners: usize, relative_layout_listeners: usize, interactions_queue: usize, containers: usize, buttons: usize, text_inputs: usize, scroll_views: usize, tracking: usize, selected_chain: usize, ) -> Self
pub fn locked_widget(&self) -> Option<&WidgetId>
pub fn selected_chain(&self) -> &[WidgetId]
pub fn selected_item(&self) -> Option<&WidgetId>
pub fn selected_container(&self) -> Option<&WidgetId>
pub fn selected_scroll_view(&self) -> Option<&WidgetId>
pub fn selected_scroll_view_content(&self) -> Option<&WidgetId>
pub fn focused_text_input(&self) -> Option<&WidgetId>
pub fn interact(&mut self, interaction: Interaction)
pub fn clear_queue(&mut self, put_unselect: bool)
pub fn select_item( &mut self, app: &mut Application, id: Option<WidgetId>, ) -> bool
pub fn focus_text_input(&mut self, app: &mut Application, id: Option<WidgetId>)
pub fn send_to_selected_item<T>(&self, app: &mut Application, data: T) -> boolwhere
T: 'static + MessageData,
pub fn send_to_selected_container<T>(
&self,
app: &mut Application,
data: T,
) -> boolwhere
T: 'static + MessageData,
pub fn send_to_focused_text_input<T>(
&self,
app: &mut Application,
data: T,
) -> boolwhere
T: 'static + MessageData,
pub fn does_hover_widget(&self, app: &Application, x: Scalar, y: Scalar) -> bool
Trait Implementations§
Source§impl Debug for DefaultInteractionsEngine
impl Debug for DefaultInteractionsEngine
Source§impl Default for DefaultInteractionsEngine
impl Default for DefaultInteractionsEngine
Source§fn default() -> DefaultInteractionsEngine
fn default() -> DefaultInteractionsEngine
Returns the “default value” for a type. Read more
Source§impl InteractionsEngine<DefaultInteractionsEngineResult, ()> for DefaultInteractionsEngine
impl InteractionsEngine<DefaultInteractionsEngineResult, ()> for DefaultInteractionsEngine
fn perform_interactions( &mut self, app: &mut Application, ) -> Result<DefaultInteractionsEngineResult, ()>
Auto Trait Implementations§
impl Freeze for DefaultInteractionsEngine
impl RefUnwindSafe for DefaultInteractionsEngine
impl Send for DefaultInteractionsEngine
impl Sync for DefaultInteractionsEngine
impl Unpin for DefaultInteractionsEngine
impl UnsafeUnpin for DefaultInteractionsEngine
impl UnwindSafe for DefaultInteractionsEngine
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