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: SbitLineMetrics
Line metrics for text rendered horizontally.
vert: SbitLineMetrics
Line metrics for text rendered vertically.
start_glyph_index: u16
Lowest glyph index for this size.
end_glyph_index: u16
Highest glyph index for this size.
ppem_x: u8
Horizontal pixels per em.
ppem_y: u8
Vertical pixels per em.
bit_depth: BitDepth
Bit 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: i8
Vertical or horizontal.
Trait Implementations
sourceimpl Clone for BitmapInfo
impl Clone for BitmapInfo
sourcefn clone(&self) -> BitmapInfo
fn clone(&self) -> BitmapInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BitmapInfo
impl Debug for BitmapInfo
sourceimpl PartialEq<BitmapInfo> for BitmapInfo
impl PartialEq<BitmapInfo> for BitmapInfo
sourcefn eq(&self, other: &BitmapInfo) -> bool
fn eq(&self, other: &BitmapInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BitmapInfo) -> bool
fn ne(&self, other: &BitmapInfo) -> bool
This method tests for !=
.
impl Eq for BitmapInfo
impl StructuralEq for BitmapInfo
impl StructuralPartialEq for BitmapInfo
Auto Trait Implementations
impl RefUnwindSafe for BitmapInfo
impl Send for BitmapInfo
impl Sync for BitmapInfo
impl Unpin for BitmapInfo
impl UnwindSafe for BitmapInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more