Struct fyrox_ui::UserInterface

source ·
pub struct UserInterface {
    pub default_font: SharedFont,
    pub double_click_time_slice: f32,
    /* private fields */
}

Fields§

§default_font: SharedFont§double_click_time_slice: f32

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.

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§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts self to a &dyn Any

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.