pub enum TextPosition {
CaptionOnly = 0,
IconOnly = 1,
CaptionBelow = 2,
CaptionAbove = 3,
CaptionRight = 4,
CaptionLeft = 5,
Overlaid = 6,
}Expand description
Text/icon positioning mode for a widget annotation (ISO 32000-2 Table 189).
Determines the relative placement of the caption text and icon within a button widget.
Variants§
CaptionOnly = 0
Caption only; no icon displayed (TP=0, default).
IconOnly = 1
Icon only; no caption displayed (TP=1).
CaptionBelow = 2
Caption below the icon (TP=2).
CaptionAbove = 3
Caption above the icon (TP=3).
CaptionRight = 4
Caption to the right of the icon (TP=4).
CaptionLeft = 5
Caption to the left of the icon (TP=5).
Overlaid = 6
Caption overlaid directly on the icon (TP=6).
Implementations§
Source§impl TextPosition
impl TextPosition
Sourcepub fn from_value(v: u32) -> Self
pub fn from_value(v: u32) -> Self
Parse from the /TP integer value in an MK dictionary.
Trait Implementations§
Source§impl Clone for TextPosition
impl Clone for TextPosition
Source§fn clone(&self) -> TextPosition
fn clone(&self) -> TextPosition
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 TextPosition
impl Debug for TextPosition
Source§impl Default for TextPosition
impl Default for TextPosition
Source§fn default() -> TextPosition
fn default() -> TextPosition
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextPosition
impl PartialEq for TextPosition
impl Copy for TextPosition
impl Eq for TextPosition
impl StructuralPartialEq for TextPosition
Auto Trait Implementations§
impl Freeze for TextPosition
impl RefUnwindSafe for TextPosition
impl Send for TextPosition
impl Sync for TextPosition
impl Unpin for TextPosition
impl UnsafeUnpin for TextPosition
impl UnwindSafe for TextPosition
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