pub enum TooltipPlacement {
Below,
Side,
}Expand description
Placement preference for a tooltip relative to its anchor. Resolved to
a concrete OverlayPlacement at show time (see
WidgetTree::tooltip_overlay_placement).
Below is the default (drop below the anchor, flip above near the
viewport edge). Side opens to the anchor’s trailing side (RTL-aware,
with a leading fallback) — for anchors stacked vertically (menu
items, a vertical tab strip, list/tree rows, a docking activity rail,
a vertical RadioTileGroup) where a Below tooltip would cover the
next sibling.
Variants§
Below
Below the anchor (flips above near the viewport edge). The default.
Side
To the anchor’s trailing side (RTL-aware, leading fallback).
Trait Implementations§
Source§impl Clone for TooltipPlacement
impl Clone for TooltipPlacement
Source§fn clone(&self) -> TooltipPlacement
fn clone(&self) -> TooltipPlacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TooltipPlacement
Source§impl Debug for TooltipPlacement
impl Debug for TooltipPlacement
Source§impl Default for TooltipPlacement
impl Default for TooltipPlacement
Source§fn default() -> TooltipPlacement
fn default() -> TooltipPlacement
Returns the “default value” for a type. Read more
impl Eq for TooltipPlacement
Source§impl PartialEq for TooltipPlacement
impl PartialEq for TooltipPlacement
impl StructuralPartialEq for TooltipPlacement
Auto Trait Implementations§
impl Freeze for TooltipPlacement
impl RefUnwindSafe for TooltipPlacement
impl Send for TooltipPlacement
impl Sync for TooltipPlacement
impl Unpin for TooltipPlacement
impl UnsafeUnpin for TooltipPlacement
impl UnwindSafe for TooltipPlacement
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