Struct qt_gui::q_raw_font::AntialiasingType
source · pub struct AntialiasingType(/* private fields */);
Expand description
This enum represents the different ways a glyph can be rasterized in the function alphaMapForGlyph().
C++ enum: QRawFont::AntialiasingType
.
This enum represents the different ways a glyph can be rasterized in the function alphaMapForGlyph().
Implementations§
source§impl AntialiasingType
impl AntialiasingType
sourcepub const PixelAntialiasing: AntialiasingType = _
pub const PixelAntialiasing: AntialiasingType = _
Will rasterize by measuring the coverage of the shape on whole pixels. The returned image contains the alpha values of each pixel based on the coverage of the glyph shape. (C++ enum variant: PixelAntialiasing = 0
)
sourcepub const SubPixelAntialiasing: AntialiasingType = _
pub const SubPixelAntialiasing: AntialiasingType = _
Will rasterize by measuring the coverage of each subpixel, returning a separate alpha value for each of the red, green and blue components of each pixel. (C++ enum variant: SubPixelAntialiasing = 1
)
Trait Implementations§
source§impl Clone for AntialiasingType
impl Clone for AntialiasingType
source§fn clone(&self) -> AntialiasingType
fn clone(&self) -> AntialiasingType
Returns a copy 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 AntialiasingType
impl Debug for AntialiasingType
source§impl From<AntialiasingType> for c_int
impl From<AntialiasingType> for c_int
source§fn from(value: AntialiasingType) -> Self
fn from(value: AntialiasingType) -> Self
Converts to this type from the input type.
source§impl From<i32> for AntialiasingType
impl From<i32> for AntialiasingType
source§impl PartialEq for AntialiasingType
impl PartialEq for AntialiasingType
source§fn eq(&self, other: &AntialiasingType) -> bool
fn eq(&self, other: &AntialiasingType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AntialiasingType
impl Eq for AntialiasingType
impl StructuralEq for AntialiasingType
impl StructuralPartialEq for AntialiasingType
Auto Trait Implementations§
impl RefUnwindSafe for AntialiasingType
impl Send for AntialiasingType
impl Sync for AntialiasingType
impl Unpin for AntialiasingType
impl UnwindSafe for AntialiasingType
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