Public Member Functions | Static Public 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::gfxContentType contentType)
 Create an offscreen surface of the given dimensions and image format.
nsresult GetFontList (nsIAtom *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< gfxFontEntry > > *aFontEntryList)
void SetPrefFontEntries (const nsCString &aLangGroup, nsTArray< nsRefPtr< gfxFontEntry > > &aFontEntryList)
FT_Library GetFTLibrary ()
virtual gfxImageFormat GetOffscreenFormat ()

Static Public Member Functions

static gfxPlatformGtkGetPlatform ()
 Return a pointer to the current active platform.
static void SetGdkDrawable (gfxASurface *target, GdkDrawable *drawable)
static GdkDrawableGetGdkDrawable (gfxASurface *target)
static PRInt32 GetDPI ()
static PRBool UseClientSideRendering ()

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::gfxContentType  contentType 
) [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 
)
static PRInt32 gfxPlatformGtk::GetDPI (  )  [static]
nsresult gfxPlatformGtk::GetFontList ( nsIAtom 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 (  ) 
static GdkDrawable* gfxPlatformGtk::GetGdkDrawable ( gfxASurface target  )  [static]
virtual gfxImageFormat gfxPlatformGtk::GetOffscreenFormat (  )  [virtual]

Reimplemented from gfxPlatform.

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< gfxFontEntry > > *  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.

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

Implements gfxPlatform.

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

Rebuilds the any cached system font lists.

Reimplemented from gfxPlatform.

static PRBool gfxPlatformGtk::UseClientSideRendering (  )  [inline, static]

Member Data Documentation

gfxFontconfigUtils* gfxPlatformGtk::sFontconfigUtils [static, protected]

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