ReactOS  0.4.14-dev-57-g333b8f1
FontFamily Class Reference

#include <gdiplusheaders.h>

Inheritance diagram for FontFamily:
Collaboration diagram for FontFamily:

Public Member Functions

 FontFamily (VOID)
 
 FontFamily (const WCHAR *name, const FontCollection *fontCollection)
 
FontFamilyClone (VOID)
 
UINT16 GetCellAscent (INT style) const
 
UINT16 GetCellDescent (INT style) const
 
UINT16 GetEmHeight (INT style)
 
Status GetFamilyName (WCHAR name[LF_FACESIZE], WCHAR language) const
 
Status GetLastStatus (VOID) const
 
UINT16 GetLineSpacing (INT style) const
 
BOOL IsAvailable (VOID) const
 
BOOL IsStyleAvailable (INT style) const
 
- Public Member Functions inherited from GdiplusBase
void operator delete (void *in_pVoid)
 
void operator delete[] (void *in_pVoid)
 
voidoperator new (size_t in_size)
 
voidoperator new[] (size_t in_size)
 

Static Public Member Functions

static const FontFamilyGenericMonospace (VOID)
 
static const FontFamilyGenericSansSerif (VOID)
 
static const FontFamilyGenericSerif (VOID)
 

Private Member Functions

Status SetStatus (Status status) const
 

Private Attributes

Status status
 
GpFontFamilyfontFamily
 

Friends

class Font
 

Detailed Description

Definition at line 507 of file gdiplusheaders.h.

Constructor & Destructor Documentation

◆ FontFamily() [1/2]

FontFamily::FontFamily ( VOID  )
inline

Definition at line 512 of file gdiplusheaders.h.

513  {
514  }

Referenced by GenericMonospace(), GenericSansSerif(), and GenericSerif().

◆ FontFamily() [2/2]

FontFamily::FontFamily ( const WCHAR name,
const FontCollection fontCollection 
)
inline

Definition at line 516 of file gdiplusheaders.h.

517  {
518  status = DllExports::GdipCreateFontFamilyFromName(name, fontCollection ? fontCollection->fontCollection : NULL, &fontFamily);
519  }
GpFontCollection * fontCollection
GpFontFamily * fontFamily
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name, GpFontCollection *fontCollection, GpFontFamily **FontFamily)
Definition: font.c:746
Definition: name.c:36
Definition: ps.c:97

Member Function Documentation

◆ Clone()

FontFamily* FontFamily::Clone ( VOID  )
inline

Definition at line 521 of file gdiplusheaders.h.

522  {
523  return NULL;
524  }
smooth NULL
Definition: ftsmooth.c:416

◆ GenericMonospace()

static const FontFamily* FontFamily::GenericMonospace ( VOID  )
inlinestatic

Definition at line 526 of file gdiplusheaders.h.

527  {
528  FontFamily *genericMonospace = new FontFamily();
529  genericMonospace->status = DllExports::GdipGetGenericFontFamilyMonospace(genericMonospace ? &genericMonospace->fontFamily : NULL);
530  return genericMonospace;
531  }
GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace(GpFontFamily **nativeFamily)
Definition: font.c:1010
FontFamily(VOID)
GpFontFamily * fontFamily
smooth NULL
Definition: ftsmooth.c:416

◆ GenericSansSerif()

static const FontFamily* FontFamily::GenericSansSerif ( VOID  )
inlinestatic

Definition at line 533 of file gdiplusheaders.h.

534  {
535  FontFamily *genericSansSerif = new FontFamily();
536  genericSansSerif->status = DllExports::GdipGetGenericFontFamilySansSerif(genericSansSerif ? &genericSansSerif->fontFamily : NULL);
537  return genericSansSerif;
538  }
FontFamily(VOID)
GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamily)
Definition: font.c:1074
GpFontFamily * fontFamily
smooth NULL
Definition: ftsmooth.c:416

◆ GenericSerif()

static const FontFamily* FontFamily::GenericSerif ( VOID  )
inlinestatic

Definition at line 540 of file gdiplusheaders.h.

541  {
542  FontFamily *genericSerif = new FontFamily();
543  genericSerif->status = DllExports::GdipGetGenericFontFamilyMonospace(genericSerif ? &genericSerif->fontFamily : NULL);
544  return genericSerif;
545  }
GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace(GpFontFamily **nativeFamily)
Definition: font.c:1010
FontFamily(VOID)
GpFontFamily * fontFamily
smooth NULL
Definition: ftsmooth.c:416

◆ GetCellAscent()

UINT16 FontFamily::GetCellAscent ( INT  style) const
inline

Definition at line 547 of file gdiplusheaders.h.

548  {
549  UINT16 CellAscent;
551  return CellAscent;
552  }
Status SetStatus(Status status) const
GpFontFamily * fontFamily
GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family, INT style, UINT16 *CellAscent)
Definition: font.c:880
unsigned short UINT16
Arabic default style
Definition: afstyles.h:93

◆ GetCellDescent()

UINT16 FontFamily::GetCellDescent ( INT  style) const
inline

Definition at line 554 of file gdiplusheaders.h.

555  {
556  UINT16 CellDescent;
558  return CellDescent;
559  }
Status SetStatus(Status status) const
GpFontFamily * fontFamily
GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family, INT style, UINT16 *CellDescent)
Definition: font.c:891
unsigned short UINT16
Arabic default style
Definition: afstyles.h:93

◆ GetEmHeight()

UINT16 FontFamily::GetEmHeight ( INT  style)
inline

Definition at line 561 of file gdiplusheaders.h.

562  {
563  UINT16 EmHeight;
565  return EmHeight;
566  }
Status SetStatus(Status status) const
GpFontFamily * fontFamily
unsigned short UINT16
Arabic default style
Definition: afstyles.h:93
GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, UINT16 *EmHeight)
Definition: font.c:918

◆ GetFamilyName()

Status FontFamily::GetFamilyName ( WCHAR  name[LF_FACESIZE],
WCHAR  language 
) const
inline

Definition at line 568 of file gdiplusheaders.h.

569  {
571  }
Status SetStatus(Status status) const
GpFontFamily * fontFamily
GpStatus WINGDIPAPI GdipGetFamilyName(GDIPCONST GpFontFamily *family, WCHAR *name, LANGID language)
Definition: font.c:837
Definition: name.c:36

◆ GetLastStatus()

Status FontFamily::GetLastStatus ( VOID  ) const
inline

Definition at line 573 of file gdiplusheaders.h.

574  {
575  return status;
576  }

◆ GetLineSpacing()

UINT16 FontFamily::GetLineSpacing ( INT  style) const
inline

Definition at line 578 of file gdiplusheaders.h.

579  {
580  UINT16 LineSpacing;
582  return LineSpacing;
583  }
Status SetStatus(Status status) const
GpFontFamily * fontFamily
GpStatus WINGDIPAPI GdipGetLineSpacing(GDIPCONST GpFontFamily *family, INT style, UINT16 *LineSpacing)
Definition: font.c:945
unsigned short UINT16
Arabic default style
Definition: afstyles.h:93

◆ IsAvailable()

BOOL FontFamily::IsAvailable ( VOID  ) const
inline

Definition at line 585 of file gdiplusheaders.h.

586  {
587  return FALSE;
588  }

◆ IsStyleAvailable()

BOOL FontFamily::IsStyleAvailable ( INT  style) const
inline

Definition at line 590 of file gdiplusheaders.h.

591  {
592  BOOL StyleAvailable;
594  return StyleAvailable;
595  }
Status SetStatus(Status status) const
GpFontFamily * fontFamily
unsigned int BOOL
Definition: ntddk_ex.h:94
GpStatus WINGDIPAPI GdipIsStyleAvailable(GDIPCONST GpFontFamily *family, INT style, BOOL *IsStyleAvailable)
Definition: font.c:976
Arabic default style
Definition: afstyles.h:93

◆ SetStatus()

Status FontFamily::SetStatus ( Status  status) const
inlineprivate

Definition at line 601 of file gdiplusheaders.h.

602  {
603  if (status == Ok)
604  return status;
605  this->status = status;
606  return status;
607  }
Definition: ps.c:97

Referenced by GetCellAscent(), GetCellDescent(), GetEmHeight(), GetFamilyName(), GetLineSpacing(), and IsStyleAvailable().

Friends And Related Function Documentation

◆ Font

friend class Font
friend

Definition at line 509 of file gdiplusheaders.h.

Member Data Documentation

◆ fontFamily

◆ status

Status FontFamily::status
mutableprivate

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