Flutter Engine
The Flutter Engine
Classes | Typedefs | Functions
SkDWrite.h File Reference
#include "include/core/SkFontStyle.h"
#include "include/private/base/SkTemplates.h"
#include <dwrite.h>
#include <winsdkver.h>

Go to the source code of this file.

Classes

class  AutoDWriteTable
 
class  AutoTDWriteTable< T >
 
struct  DWriteStyle
 

Typedefs

typedef skia_private::AutoSTMalloc< 16, WCHAR > SkSMallocWCHAR
 
typedef int(WINAPISkGetUserDefaultLocaleNameProc) (LPWSTR, int)
 

Functions

IDWriteFactory * sk_get_dwrite_factory ()
 
HRESULT sk_cstring_to_wchar (const char *skname, SkSMallocWCHAR *name)
 
HRESULT sk_wchar_to_skstring (WCHAR *name, int nameLen, SkString *skname)
 
HRESULT sk_get_locale_string (IDWriteLocalizedStrings *names, const WCHAR *preferedLocale, SkString *skname)
 
HRESULT SkGetGetUserDefaultLocaleNameProc (SkGetUserDefaultLocaleNameProc *proc)
 

Typedef Documentation

◆ SkGetUserDefaultLocaleNameProc

typedef int(WINAPI * SkGetUserDefaultLocaleNameProc) (LPWSTR, int)

Definition at line 44 of file SkDWrite.h.

◆ SkSMallocWCHAR

Prefer to use this type to prevent template proliferation.

Definition at line 28 of file SkDWrite.h.

Function Documentation

◆ sk_cstring_to_wchar()

HRESULT sk_cstring_to_wchar ( const char *  skname,
SkSMallocWCHAR name 
)

Converts a utf8 string to a WCHAR string.

◆ sk_get_dwrite_factory()

IDWriteFactory * sk_get_dwrite_factory ( )

◆ sk_get_locale_string()

HRESULT sk_get_locale_string ( IDWriteLocalizedStrings *  names,
const WCHAR *  preferedLocale,
SkString skname 
)

◆ sk_wchar_to_skstring()

HRESULT sk_wchar_to_skstring ( WCHAR *  name,
int  nameLen,
SkString skname 
)

Converts a WCHAR string to a utf8 string.

Parameters
nameLenthe number of WCHARs in the name.

◆ SkGetGetUserDefaultLocaleNameProc()

HRESULT SkGetGetUserDefaultLocaleNameProc ( SkGetUserDefaultLocaleNameProc proc)