pub enum PopupPosition {
Center,
Top,
Bottom,
Fixed {
x: u16,
y: u16,
},
}Expand description
Popup position on screen
Variants§
Trait Implementations§
Source§impl Clone for PopupPosition
impl Clone for PopupPosition
Source§fn clone(&self) -> PopupPosition
fn clone(&self) -> PopupPosition
Returns a duplicate 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 PopupPosition
impl Debug for PopupPosition
Source§impl Default for PopupPosition
impl Default for PopupPosition
Source§fn default() -> PopupPosition
fn default() -> PopupPosition
Returns the “default value” for a type. Read more
Source§impl PartialEq for PopupPosition
impl PartialEq for PopupPosition
impl Copy for PopupPosition
impl Eq for PopupPosition
impl StructuralPartialEq for PopupPosition
Auto Trait Implementations§
impl Freeze for PopupPosition
impl RefUnwindSafe for PopupPosition
impl Send for PopupPosition
impl Sync for PopupPosition
impl Unpin for PopupPosition
impl UnwindSafe for PopupPosition
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> 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>
Converts
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>
Converts
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> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().Source§impl<T> UseAccessibility for T
impl<T> UseAccessibility for T
Source§fn use_accessibility<'a>(
&self,
ctx: &'a RenderContext<'_>,
) -> &'a AccessibilitySettings
fn use_accessibility<'a>( &self, ctx: &'a RenderContext<'_>, ) -> &'a AccessibilitySettings
Get accessibility settings
Source§fn use_high_contrast(&self, ctx: &RenderContext<'_>) -> bool
fn use_high_contrast(&self, ctx: &RenderContext<'_>) -> bool
Check if high contrast mode is enabled
Source§fn use_font_scale(&self, ctx: &RenderContext<'_>) -> f32
fn use_font_scale(&self, ctx: &RenderContext<'_>) -> f32
Get font scale multiplier
Source§fn use_scaled(&self, ctx: &RenderContext<'_>, base: u16) -> u16
fn use_scaled(&self, ctx: &RenderContext<'_>, base: u16) -> u16
Scale a dimension based on accessibility settings
Source§impl<T> UseLocale for T
impl<T> UseLocale for T
Source§fn use_locale<'a>(&self, ctx: &'a RenderContext<'_>) -> &'a Locale
fn use_locale<'a>(&self, ctx: &'a RenderContext<'_>) -> &'a Locale
Get the current locale
Source§fn use_is_rtl(&self, ctx: &RenderContext<'_>) -> bool
fn use_is_rtl(&self, ctx: &RenderContext<'_>) -> bool
Check if current locale is RTL
Source§impl<T> UseSlots for T
impl<T> UseSlots for T
Source§fn use_header_slot<'a>(&self, ctx: &'a RenderContext<'_>, slot: &str) -> &'a str
fn use_header_slot<'a>(&self, ctx: &'a RenderContext<'_>, slot: &str) -> &'a str
Get header slot content
Source§fn use_status_slot<'a>(&self, ctx: &'a RenderContext<'_>, slot: &str) -> &'a str
fn use_status_slot<'a>(&self, ctx: &'a RenderContext<'_>, slot: &str) -> &'a str
Get status bar slot content
Source§fn use_header_has(&self, ctx: &RenderContext<'_>, slot: &str) -> bool
fn use_header_has(&self, ctx: &RenderContext<'_>, slot: &str) -> bool
Check if header slot has content
Source§fn use_status_has(&self, ctx: &RenderContext<'_>, slot: &str) -> bool
fn use_status_has(&self, ctx: &RenderContext<'_>, slot: &str) -> bool
Check if status slot has content
Source§impl<T> UseTheme for T
impl<T> UseTheme for T
Source§fn use_theme<'a>(&self, ctx: &'a RenderContext<'_>) -> &'a Theme
fn use_theme<'a>(&self, ctx: &'a RenderContext<'_>) -> &'a Theme
Get the current theme
Source§fn use_text_direction(&self, ctx: &RenderContext<'_>) -> TextDirection
fn use_text_direction(&self, ctx: &RenderContext<'_>) -> TextDirection
Get text direction from theme