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
Fields
A popup should be placed at given screen-space position.
Trait Implementations§
source§impl PartialEq<Placement> for Placement
impl PartialEq<Placement> for Placement
impl Copy for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
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> 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>
self from the equivalent element of its
superset. Read more§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).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.