Struct rg3d_ui::UserInterface [−][src]
pub struct UserInterface { /* fields omitted */ }
Implementations
Searches a node down on tree starting from give root that matches a criteria defined by a given func.
Searches a node up on tree starting from given root that matches a criteria defined by a given func.
Checks if specified node is a child of some other node on root_handle
. This method
is useful to understand if some event came from some node down by tree.
Checks if specified node is a direct child of some other node on root_handle
.
Searches a node by name up on tree starting from given root node.
Searches a node by name down on tree starting from given root node.
Searches a node by name up on tree starting from given root node and tries to borrow it if exists.
Searches a node by name down on tree starting from given root node and tries to borrow it if exists.
Searches for a node up on tree that satisfies some criteria and then borrows shared reference.
Panics
It will panic if there no node that satisfies given criteria.
pub fn try_borrow_by_criteria_up<Func>(
&self,
start_node_handle: Handle<UiNode>,
func: Func
) -> Option<&UiNode> where
Func: Fn(&UiNode) -> bool,
pub fn try_borrow_by_type_up<T>(
&self,
node_handle: Handle<UiNode>
) -> Option<(Handle<UiNode>, &T)> where
T: Control,
Returns instance of message sender which can be used to push messages into queue from other threads.
Extracts UI event one-by-one from common queue. Each extracted event will go to all available nodes first and only then will be moved outside of this method. This is one of most important methods which must be called each frame of your game loop, otherwise UI will not respond to any kind of events and simply speaking will just not work.
Translates raw window event into some specific UI message. This is one of the most important methods of UI. You must call it each time you received a message from a window.
Removes all picking restrictions.
Auto Trait Implementations
impl !RefUnwindSafe for UserInterface
impl !Send for UserInterface
impl !Sync for UserInterface
impl Unpin for UserInterface
impl !UnwindSafe for UserInterface
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.