Struct rg3d_ui::UserInterface [−][src]
pub struct UserInterface<M: MessageData, C: Control<M, C>> { /* fields omitted */ }
Implementations
pub fn measure_node(
&self,
handle: Handle<UINode<M, C>>,
available_size: Vector2<f32>
) -> bool
[src]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<M, C>>,
func: Func
) -> Option<&UINode<M, C>> where
Func: Fn(&UINode<M, C>) -> bool,
[src]pub fn try_borrow_by_criteria_up_mut<Func>(
&mut self,
start_node_handle: Handle<UINode<M, C>>,
func: Func
) -> Option<&mut UINode<M, C>> where
Func: Fn(&UINode<M, C>) -> bool,
[src]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<M, C> !RefUnwindSafe for UserInterface<M, C>
impl<M, C> !Send for UserInterface<M, C>
impl<M, C> !Sync for UserInterface<M, C>
impl<M, C> Unpin for UserInterface<M, C> where
C: Unpin,
M: Unpin,
impl<M, C> !UnwindSafe for UserInterface<M, C>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
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.
pub fn vzip(self) -> V