#[repr(u8)]pub enum BaselinePixelAlignment {
Unspecified = 0,
Aligned = 1,
Unaligned = 2,
}Expand description
Specifies the baseline pixel alignment options for rendering text or graphics.
Use this enumeration to control whether the baseline of rendered content is aligned to the pixel grid, which can affect visual crispness and positioning. The value may influence rendering quality, especially at small font sizes or when precise alignment is required.
Variants§
Unspecified = 0
The baseline pixel alignment is unspecified.
Aligned = 1
The baseline is aligned to the pixel grid.
Unaligned = 2
The baseline is not aligned to the pixel grid.
Trait Implementations§
Source§impl BatchValue for BaselinePixelAlignment
impl BatchValue for BaselinePixelAlignment
Source§impl Clone for BaselinePixelAlignment
impl Clone for BaselinePixelAlignment
impl Copy for BaselinePixelAlignment
Source§impl Debug for BaselinePixelAlignment
impl Debug for BaselinePixelAlignment
Source§impl Default for BaselinePixelAlignment
impl Default for BaselinePixelAlignment
impl Eq for BaselinePixelAlignment
Source§impl Hash for BaselinePixelAlignment
impl Hash for BaselinePixelAlignment
Source§impl MarkupTyped for BaselinePixelAlignment
impl MarkupTyped for BaselinePixelAlignment
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for BaselinePixelAlignment
impl PartialEq for BaselinePixelAlignment
impl StructuralPartialEq for BaselinePixelAlignment
Auto Trait Implementations§
impl Freeze for BaselinePixelAlignment
impl RefUnwindSafe for BaselinePixelAlignment
impl Send for BaselinePixelAlignment
impl Sync for BaselinePixelAlignment
impl Unpin for BaselinePixelAlignment
impl UnsafeUnpin for BaselinePixelAlignment
impl UnwindSafe for BaselinePixelAlignment
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more