[][src]Struct skia_bindings::SkTypeface

#[repr(C)]
pub struct SkTypeface {
    pub _base: SkWeakRefCnt,
    pub fUniqueID: SkFontID,
    pub fStyle: SkFontStyle,
    pub fBounds: SkRect,
    pub fBoundsOnce: SkOnce,
    pub fIsFixedPitch: bool,
}

Fields

_base: SkWeakRefCntfUniqueID: SkFontIDfStyle: SkFontStylefBounds: SkRectfBoundsOnce: SkOncefIsFixedPitch: bool

Methods

impl SkTypeface[src]

pub unsafe fn getVariationDesignPosition(
    &self,
    coordinates: *mut SkFontArguments_VariationPosition_Coordinate,
    coordinateCount: c_int
) -> c_int
[src]

pub unsafe fn getVariationDesignParameters(
    &self,
    parameters: *mut SkFontParameters_Variation_Axis,
    parameterCount: c_int
) -> c_int
[src]

pub unsafe fn UniqueID(face: *const SkTypeface) -> SkFontID[src]

pub unsafe fn Equal(facea: *const SkTypeface, faceb: *const SkTypeface) -> bool[src]

pub unsafe fn MakeDefault() -> sk_sp<SkTypeface>[src]

pub unsafe fn MakeFromName(
    familyName: *const c_char,
    fontStyle: SkFontStyle
) -> sk_sp<SkTypeface>
[src]

pub unsafe fn MakeFromFile(
    path: *const c_char,
    index: c_int
) -> sk_sp<SkTypeface>
[src]

pub unsafe fn MakeFromStream(stream: u64, index: c_int) -> sk_sp<SkTypeface>[src]

pub unsafe fn MakeFromData(
    arg1: sk_sp<SkData>,
    index: c_int
) -> sk_sp<SkTypeface>
[src]

pub unsafe fn MakeFromFontData(arg1: u8) -> sk_sp<SkTypeface>[src]

pub unsafe fn makeClone(
    &self,
    arg1: *const SkFontArguments
) -> sk_sp<SkTypeface>
[src]

pub unsafe fn serialize(
    &self,
    arg1: *mut SkWStream,
    arg2: SkTypeface_SerializeBehavior
)
[src]

pub unsafe fn serialize1(
    &self,
    arg1: SkTypeface_SerializeBehavior
) -> sk_sp<SkData>
[src]

pub unsafe fn MakeDeserialize(arg1: *mut SkStream) -> sk_sp<SkTypeface>[src]

pub unsafe fn unicharsToGlyphs(
    &self,
    uni: *const SkUnichar,
    count: c_int,
    glyphs: *mut SkGlyphID
)
[src]

pub unsafe fn unicharToGlyph(&self, unichar: SkUnichar) -> SkGlyphID[src]

pub unsafe fn countGlyphs(&self) -> c_int[src]

pub unsafe fn countTables(&self) -> c_int[src]

pub unsafe fn getTableTags(&self, tags: *mut SkFontTableTag) -> c_int[src]

pub unsafe fn getTableSize(&self, arg1: SkFontTableTag) -> usize[src]

pub unsafe fn getTableData(
    &self,
    tag: SkFontTableTag,
    offset: usize,
    length: usize,
    data: *mut c_void
) -> usize
[src]

pub unsafe fn copyTableData(&self, tag: SkFontTableTag) -> sk_sp<SkData>[src]

pub unsafe fn getUnitsPerEm(&self) -> c_int[src]

pub unsafe fn getKerningPairAdjustments(
    &self,
    glyphs: *const SkGlyphID,
    count: c_int,
    adjustments: *mut i32
) -> bool
[src]

pub unsafe fn createFamilyNameIterator(
    &self
) -> *mut SkTypeface_LocalizedStrings
[src]

pub unsafe fn getFamilyName(&self, name: *mut SkString)[src]

pub unsafe fn openStream(&self, ttcIndex: *mut c_int) -> u64[src]

pub unsafe fn makeFontData(&self) -> u8[src]

pub unsafe fn createScalerContext(
    &self,
    arg1: *const SkScalerContextEffects,
    arg2: *const SkDescriptor,
    allowFailure: bool
) -> u8
[src]

pub unsafe fn getBounds(&self) -> SkRect[src]

pub unsafe fn new(style: *const SkFontStyle, isFixedPitch: bool) -> Self[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]