Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes

gfxPlatformGtk Class Reference

#include <gfxPlatformGtk.h>

Inheritance diagram for gfxPlatformGtk:
Collaboration diagram for gfxPlatformGtk:

List of all members.

Public Member Functions

 gfxPlatformGtk ()
virtual ~gfxPlatformGtk ()
already_AddRefed< gfxASurfaceCreateOffscreenSurface (const gfxIntSize &size, gfxASurface::gfxImageFormat imageFormat)
 Create an offscreen surface of the given dimensions and image format.
nsresult GetFontList (const nsACString &aLangGroup, const nsACString &aGenericFamily, nsTArray< nsString > &aListOfFonts)
 Fill aListOfFonts with the results of querying the list of font names that correspond to the given language group or generic font family (or both, or neither).
nsresult UpdateFontList ()
 Rebuilds the any cached system font lists.
nsresult ResolveFontName (const nsAString &aFontName, FontResolverCallback aCallback, void *aClosure, PRBool &aAborted)
nsresult GetStandardFamilyName (const nsAString &aFontName, nsAString &aFamilyName)
 Resolving a font name to family name.
gfxFontGroupCreateFontGroup (const nsAString &aFamilies, const gfxFontStyle *aStyle, gfxUserFontSet *aUserFontSet)
 Create the appropriate platform font group.
FontFamily * FindFontFamily (const nsAString &aName)
FontEntry * FindFontEntry (const nsAString &aFamilyName, const gfxFontStyle &aFontStyle)
already_AddRefed< gfxFontFindFontForChar (PRUint32 aCh, gfxFont *aFont)
PRBool GetPrefFontEntries (const nsCString &aLangGroup, nsTArray< nsRefPtr< FontEntry > > *aFontEntryList)
void SetPrefFontEntries (const nsCString &aLangGroup, nsTArray< nsRefPtr< FontEntry > > &aFontEntryList)
FT_Library GetFTLibrary ()
void SetGdkDrawable (gfxASurface *target, GdkDrawable *drawable)
GdkDrawableGetGdkDrawable (gfxASurface *target)

Static Public Member Functions

static gfxPlatformGtkGetPlatform ()
 Return a pointer to the current active platform.

Protected Member Functions

void InitDisplayCaps ()
 Initialize any needed display metrics (such as DPI).

Static Protected Attributes

static gfxFontconfigUtils * sFontconfigUtils

Constructor & Destructor Documentation

gfxPlatformGtk::gfxPlatformGtk (  ) 
virtual gfxPlatformGtk::~gfxPlatformGtk (  )  [virtual]

Member Function Documentation

gfxFontGroup* gfxPlatformGtk::CreateFontGroup ( const nsAString aFamilies,
const gfxFontStyle aStyle,
gfxUserFontSet aUserFontSet 
) [virtual]

Create the appropriate platform font group.

Implements gfxPlatform.

already_AddRefed<gfxASurface> gfxPlatformGtk::CreateOffscreenSurface ( const gfxIntSize size,
gfxASurface::gfxImageFormat  imageFormat 
) [virtual]

Create an offscreen surface of the given dimensions and image format.

Implements gfxPlatform.

FontEntry* gfxPlatformGtk::FindFontEntry ( const nsAString aFamilyName,
const gfxFontStyle aFontStyle 
)
FontFamily* gfxPlatformGtk::FindFontFamily ( const nsAString aName  ) 
already_AddRefed<gfxFont> gfxPlatformGtk::FindFontForChar ( PRUint32  aCh,
gfxFont aFont 
)
nsresult gfxPlatformGtk::GetFontList ( const nsACString aLangGroup,
const nsACString aGenericFamily,
nsTArray< nsString > &  aListOfFonts 
) [virtual]

Fill aListOfFonts with the results of querying the list of font names that correspond to the given language group or generic font family (or both, or neither).

Reimplemented from gfxPlatform.

FT_Library gfxPlatformGtk::GetFTLibrary (  ) 
GdkDrawable* gfxPlatformGtk::GetGdkDrawable ( gfxASurface target  ) 
static gfxPlatformGtk* gfxPlatformGtk::GetPlatform (  )  [inline, static]

Return a pointer to the current active platform.

This is a singleton; it contains mostly convenience functions to obtain platform-specific objects.

Reimplemented from gfxPlatform.

PRBool gfxPlatformGtk::GetPrefFontEntries ( const nsCString &  aLangGroup,
nsTArray< nsRefPtr< FontEntry > > *  aFontEntryList 
)
nsresult gfxPlatformGtk::GetStandardFamilyName ( const nsAString aFontName,
nsAString aFamilyName 
) [virtual]

Resolving a font name to family name.

The result MUST be in the result of GetFontList(). If the name doesn't in the system, aFamilyName will be empty string, but not failed.

Implements gfxPlatform.

void gfxPlatformGtk::InitDisplayCaps (  )  [protected, virtual]

Initialize any needed display metrics (such as DPI).

Reimplemented from gfxPlatform.

nsresult gfxPlatformGtk::ResolveFontName ( const nsAString aFontName,
FontResolverCallback  aCallback,
void *  aClosure,
PRBool aAborted 
) [virtual]

Implements gfxPlatform.

void gfxPlatformGtk::SetGdkDrawable ( gfxASurface target,
GdkDrawable drawable 
)
void gfxPlatformGtk::SetPrefFontEntries ( const nsCString &  aLangGroup,
nsTArray< nsRefPtr< FontEntry > > &  aFontEntryList 
)
nsresult gfxPlatformGtk::UpdateFontList (  )  [virtual]

Rebuilds the any cached system font lists.

Reimplemented from gfxPlatform.


Member Data Documentation

gfxFontconfigUtils* gfxPlatformGtk::sFontconfigUtils [static, protected]

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