Struct rg3d_ui::widget::Widget [−][src]
pub struct Widget<M: MessageData, C: Control<M, C>> { pub user_data: Option<Rc<dyn Any>>, // some fields omitted }
Fields
user_data: Option<Rc<dyn Any>>
Implementations
pub fn has_descendant(
&self,
node_handle: Handle<UINode<M, C>>,
ui: &UserInterface<M, C>
) -> bool
[src]pub fn find_by_criteria_up<Func: Fn(&UINode<M, C>) -> bool>(
&self,
ui: &UserInterface<M, C>,
func: Func
) -> Handle<UINode<M, C>>
[src]
pub fn find_by_criteria_up<Func: Fn(&UINode<M, C>) -> bool>(
&self,
ui: &UserInterface<M, C>,
func: Func
) -> Handle<UINode<M, C>>
[src]Searches a node up on tree starting from given root that matches a criteria defined by a given func.
pub fn handle_routed_message(
&mut self,
_ui: &mut UserInterface<M, C>,
msg: &mut UiMessage<M, C>
)
[src]pub fn set_horizontal_alignment(
&mut self,
horizontal_alignment: HorizontalAlignment
) -> &mut Self
[src]pub fn measure_override(
&self,
ui: &UserInterface<M, C>,
available_size: Vector2<f32>
) -> Vector2<f32>
[src]pub fn arrange_override(
&self,
ui: &UserInterface<M, C>,
final_size: Vector2<f32>
) -> Vector2<f32>
[src]The context menu receives PopupMessage
s for being displayed, and so should support those.
Trait Implementations
Auto Trait Implementations
impl<M, C> !RefUnwindSafe for Widget<M, C>
impl<M, C> !UnwindSafe for Widget<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