Enum fyrox_ui::popup::PopupMessage
source · pub enum PopupMessage {
Open,
Close,
Content(Handle<UiNode>),
Placement(Placement),
AdjustPosition,
}Expand description
A set of messages for Popup widget.
Variants§
Open
Used to open a Popup widgets. Use PopupMessage::open to create the message.
Close
Used to close a Popup widgets. Use PopupMessage::close to create the message.
Content(Handle<UiNode>)
Used to change the content of a Popup widgets. Use PopupMessage::content to create the message.
Placement(Placement)
Used to change popup’s placement. Use PopupMessage::placement to create the message.
AdjustPosition
Used to adjust position of a popup widget, so it will be on screen. Use PopupMessage::adjust_position to create
the message.
Implementations§
source§impl PopupMessage
impl PopupMessage
sourcepub fn open(
destination: Handle<UiNode>,
direction: MessageDirection
) -> UiMessage
pub fn open( destination: Handle<UiNode>, direction: MessageDirection ) -> UiMessage
Creates PopupMessage::Open message.
sourcepub fn close(
destination: Handle<UiNode>,
direction: MessageDirection
) -> UiMessage
pub fn close( destination: Handle<UiNode>, direction: MessageDirection ) -> UiMessage
Creates PopupMessage::Close message.
sourcepub fn content(
destination: Handle<UiNode>,
direction: MessageDirection,
value: Handle<UiNode>
) -> UiMessage
pub fn content( destination: Handle<UiNode>, direction: MessageDirection, value: Handle<UiNode> ) -> UiMessage
Creates PopupMessage::Content message.
sourcepub fn placement(
destination: Handle<UiNode>,
direction: MessageDirection,
value: Placement
) -> UiMessage
pub fn placement( destination: Handle<UiNode>, direction: MessageDirection, value: Placement ) -> UiMessage
Creates PopupMessage::Placement message.
sourcepub fn adjust_position(
destination: Handle<UiNode>,
direction: MessageDirection
) -> UiMessage
pub fn adjust_position( destination: Handle<UiNode>, direction: MessageDirection ) -> UiMessage
Creates PopupMessage::AdjustPosition message.
Trait Implementations§
source§impl Clone for PopupMessage
impl Clone for PopupMessage
source§fn clone(&self) -> PopupMessage
fn clone(&self) -> PopupMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PopupMessage
impl Debug for PopupMessage
source§impl PartialEq<PopupMessage> for PopupMessage
impl PartialEq<PopupMessage> for PopupMessage
source§fn eq(&self, other: &PopupMessage) -> bool
fn eq(&self, other: &PopupMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PopupMessage
Auto Trait Implementations§
impl !RefUnwindSafe for PopupMessage
impl Send for PopupMessage
impl Sync for PopupMessage
impl Unpin for PopupMessage
impl !UnwindSafe for PopupMessage
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
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere T: 'static,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.