pub struct BitmapInfo {
pub hori: SbitLineMetrics,
pub vert: SbitLineMetrics,
pub start_glyph_index: u16,
pub end_glyph_index: u16,
pub ppem_x: u8,
pub ppem_y: u8,
pub bit_depth: BitDepth,
pub flags: i8,
}Expand description
Subset of BitmapSize that includes common fields.
Fields§
§hori: SbitLineMetricsLine metrics for text rendered horizontally.
vert: SbitLineMetricsLine metrics for text rendered vertically.
start_glyph_index: u16Lowest glyph index for this size.
end_glyph_index: u16Highest glyph index for this size.
ppem_x: u8Horizontal pixels per em.
ppem_y: u8Vertical pixels per em.
bit_depth: BitDepthBit depth.
In addition to already defined bitDepth values 1, 2, 4, and 8 supported by EBDT the value
of 32 is used to identify color bitmaps with 8 bit per channel RGBA channels in CBDT.
flags: i8Vertical or horizontal.
Trait Implementations§
Source§impl Clone for BitmapInfo
impl Clone for BitmapInfo
Source§fn clone(&self) -> BitmapInfo
fn clone(&self) -> BitmapInfo
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 BitmapInfo
impl Debug for BitmapInfo
Source§impl PartialEq for BitmapInfo
impl PartialEq for BitmapInfo
impl Eq for BitmapInfo
impl StructuralPartialEq for BitmapInfo
Auto Trait Implementations§
impl Freeze for BitmapInfo
impl RefUnwindSafe for BitmapInfo
impl Send for BitmapInfo
impl Sync for BitmapInfo
impl Unpin for BitmapInfo
impl UnwindSafe for BitmapInfo
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 more