ReactOS  0.4.15-dev-1201-gb2cf5a4
FontFamily Class Reference

#include <gdiplusheaders.h>

Inheritance diagram for FontFamily:
Collaboration diagram for FontFamily:

Public Member Functions

 FontFamily ()
 
 FontFamily (const WCHAR *name, const FontCollection *fontCollection)
 
FontFamilyClone ()
 
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 () const
 
UINT16 GetLineSpacing (INT style) const
 
BOOL IsAvailable () 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 ()
 
static const FontFamilyGenericSansSerif ()
 
static const FontFamilyGenericSerif ()
 

Private Member Functions

Status SetStatus (Status status) const
 

Private Attributes

Status status
 
GpFontFamilyfontFamily
 

Friends

class Font
 
GpFontFamily *& getNat (const FontFamily *ff)
 

Detailed Description

Definition at line 711 of file gdiplusheaders.h.

Constructor & Destructor Documentation

◆ FontFamily() [1/2]

FontFamily::FontFamily ( )
inline

Definition at line 716 of file gdiplusheaders.h.

717  {
718  }

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

◆ FontFamily() [2/2]

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

Definition at line 720 of file gdiplusheaders.h.

721  {
722  GpFontCollection *theCollection = fontCollection ? getNat(fontCollection) : NULL;
724  }
GpFontFamily * fontFamily
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name, GpFontCollection *fontCollection, GpFontFamily **FontFamily)
Definition: font.c:746
friend GpFontFamily *& getNat(const FontFamily *ff)
Definition: name.c:38
Definition: ps.c:97

Member Function Documentation

◆ Clone()

FontFamily* FontFamily::Clone ( )
inline

Definition at line 727 of file gdiplusheaders.h.

728  {
729  return NULL;
730  }
smooth NULL
Definition: ftsmooth.c:416

◆ GenericMonospace()

static const FontFamily* FontFamily::GenericMonospace ( )
inlinestatic

Definition at line 733 of file gdiplusheaders.h.

734  {
735  FontFamily *genericMonospace = new FontFamily();
736  genericMonospace->status =
737  DllExports::GdipGetGenericFontFamilyMonospace(genericMonospace ? &genericMonospace->fontFamily : NULL);
738  return genericMonospace;
739  }
GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace(GpFontFamily **nativeFamily)
Definition: font.c:1010
GpFontFamily * fontFamily
smooth NULL
Definition: ftsmooth.c:416

◆ GenericSansSerif()

static const FontFamily* FontFamily::GenericSansSerif ( )
inlinestatic

Definition at line 742 of file gdiplusheaders.h.

743  {
744  FontFamily *genericSansSerif = new FontFamily();
745  genericSansSerif->status =
746  DllExports::GdipGetGenericFontFamilySansSerif(genericSansSerif ? &genericSansSerif->fontFamily : NULL);
747  return genericSansSerif;
748  }
GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamily)
Definition: font.c:1074
GpFontFamily * fontFamily
smooth NULL
Definition: ftsmooth.c:416

◆ GenericSerif()

static const FontFamily* FontFamily::GenericSerif ( )
inlinestatic

Definition at line 751 of file gdiplusheaders.h.

752  {
753  FontFamily *genericSerif = new FontFamily();
754  genericSerif->status =
755  DllExports::GdipGetGenericFontFamilyMonospace(genericSerif ? &genericSerif->fontFamily : NULL);
756  return genericSerif;
757  }
GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace(GpFontFamily **nativeFamily)
Definition: font.c:1010
GpFontFamily * fontFamily
smooth NULL
Definition: ftsmooth.c:416

◆ GetCellAscent()

UINT16 FontFamily::GetCellAscent ( INT  style) const
inline

Definition at line 760 of file gdiplusheaders.h.

761  {
762  UINT16 CellAscent;
764  return CellAscent;
765  }
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 768 of file gdiplusheaders.h.

769  {
770  UINT16 CellDescent;
772  return CellDescent;
773  }
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 776 of file gdiplusheaders.h.

777  {
778  UINT16 EmHeight;
780  return EmHeight;
781  }
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 784 of file gdiplusheaders.h.

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

◆ GetLastStatus()

Status FontFamily::GetLastStatus ( ) const
inline

Definition at line 790 of file gdiplusheaders.h.

791  {
792  return status;
793  }

◆ GetLineSpacing()

UINT16 FontFamily::GetLineSpacing ( INT  style) const
inline

Definition at line 796 of file gdiplusheaders.h.

797  {
798  UINT16 LineSpacing;
800  return LineSpacing;
801  }
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 ( ) const
inline

Definition at line 804 of file gdiplusheaders.h.

805  {
806  return FALSE;
807  }
#define FALSE
Definition: types.h:117

◆ IsStyleAvailable()

BOOL FontFamily::IsStyleAvailable ( INT  style) const
inline

Definition at line 810 of file gdiplusheaders.h.

811  {
812  BOOL StyleAvailable;
814  return StyleAvailable;
815  }
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 822 of file gdiplusheaders.h.

823  {
824  if (status == Ok)
825  return status;
826  this->status = status;
827  return status;
828  }
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 713 of file gdiplusheaders.h.

◆ getNat

GpFontFamily*& getNat ( const FontFamily ff)
friend

Definition at line 832 of file gdiplusheaders.h.

833  {
834  return const_cast<FontFamily *>(ff)->fontFamily;
835  }

Referenced by FontFamily().

Member Data Documentation

◆ fontFamily

◆ status

Status FontFamily::status
mutableprivate

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