Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
AutoDWriteTable Class Reference

#include <SkDWrite.h>

Inheritance diagram for AutoDWriteTable:
AutoTDWriteTable< T >

Public Member Functions

 AutoDWriteTable (IDWriteFontFace *fontFace, UINT32 beTag)
 
 ~AutoDWriteTable ()
 

Public Attributes

const uint8_t * fData
 
UINT32 fSize
 
BOOL fExists
 

Detailed Description

Definition at line 50 of file SkDWrite.h.

Constructor & Destructor Documentation

◆ AutoDWriteTable()

AutoDWriteTable::AutoDWriteTable ( IDWriteFontFace *  fontFace,
UINT32  beTag 
)
inline

Definition at line 52 of file SkDWrite.h.

52 : fExists(FALSE), fFontFace(fontFace) {
53 // Any errors are ignored, user must check fExists anyway.
54 fontFace->TryGetFontTable(beTag,
55 reinterpret_cast<const void **>(&fData), &fSize, &fLock, &fExists);
56 }
UINT32 fSize
Definition: SkDWrite.h:64
const uint8_t * fData
Definition: SkDWrite.h:63
return FALSE

◆ ~AutoDWriteTable()

AutoDWriteTable::~AutoDWriteTable ( )
inline

Definition at line 57 of file SkDWrite.h.

57 {
58 if (fExists) {
59 fFontFace->ReleaseFontTable(fLock);
60 }
61 }

Member Data Documentation

◆ fData

const uint8_t* AutoDWriteTable::fData

Definition at line 63 of file SkDWrite.h.

◆ fExists

BOOL AutoDWriteTable::fExists

Definition at line 65 of file SkDWrite.h.

◆ fSize

UINT32 AutoDWriteTable::fSize

Definition at line 64 of file SkDWrite.h.


The documentation for this class was generated from the following file: