Struct oxygengine_user_interface::raui::core::interactive::default_interactions_engine::DefaultInteractionsEngine
source · pub struct DefaultInteractionsEngine {
pub deselect_when_no_button_found: bool,
/* private fields */
}
Expand description
Single pointer + Keyboard + Gamepad
Fields§
Implementations§
source§impl DefaultInteractionsEngine
impl DefaultInteractionsEngine
pub fn new() -> 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, selected_chain: usize ) -> DefaultInteractionsEngine
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)
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 RefUnwindSafe for DefaultInteractionsEngine
impl Send for DefaultInteractionsEngine
impl Sync for DefaultInteractionsEngine
impl Unpin 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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more