pub enum Placement {
LeftTop(Handle<UiNode>),
RightTop(Handle<UiNode>),
Center(Handle<UiNode>),
LeftBottom(Handle<UiNode>),
RightBottom(Handle<UiNode>),
Cursor(Handle<UiNode>),
Position {
position: Vector2<f32>,
target: Handle<UiNode>,
},
}Variants§
LeftTop(Handle<UiNode>)
A popup should be placed relative to given widget at the left top corner of the widget screen bounds.
Widget handle could be NONE, in this case the popup will be placed at the left top corner of the screen.
RightTop(Handle<UiNode>)
A popup should be placed relative to given widget at the right top corner of the widget screen bounds.
Widget handle could be NONE, in this case the popup will be placed at the right top corner of the screen.
Center(Handle<UiNode>)
A popup should be placed relative to given widget at the center of the widget screen bounds.
Widget handle could be NONE, in this case the popup will be placed at the center of the screen.
LeftBottom(Handle<UiNode>)
A popup should be placed relative to given widget at the left bottom corner of the widget screen bounds.
Widget handle could be NONE, in this case the popup will be placed at the left bottom corner of the screen.
RightBottom(Handle<UiNode>)
A popup should be placed relative to given widget at the right bottom corner of the widget screen bounds.
Widget handle could be NONE, in this case the popup will be placed at the right bottom corner of the screen.
Cursor(Handle<UiNode>)
A popup should be placed at the cursor position. The widget handle could be either NONE or a handle of a
widget that is directly behind the cursor.
Position
A popup should be placed at given screen-space position.
Trait Implementations§
impl Copy for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl !RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl !UnwindSafe for Placement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MessageData for T
impl<T> MessageData for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PropertyValue for Twhere
T: Debug + 'static,
impl<T> PropertyValue for Twhere
T: Debug + 'static,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.