ReactOS 0.4.16-dev-92-g0c2cdca
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;
723 status = DllExports::GdipCreateFontFamilyFromName(name, theCollection, &fontFamily);
724 }
GpFontFamily * fontFamily
friend GpFontFamily *& getNat(const FontFamily *ff)
#define NULL
Definition: types.h:112
Definition: name.c:39
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 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ GetCellAscent()

UINT16 FontFamily::GetCellAscent ( INT  style) const
inline

Definition at line 760 of file gdiplusheaders.h.

761 {
762 UINT16 CellAscent;
763 SetStatus(DllExports::GdipGetCellAscent(fontFamily, style, &CellAscent));
764 return CellAscent;
765 }
unsigned short UINT16
Arabic default style
Definition: afstyles.h:94
Status SetStatus(Status status) const

◆ GetCellDescent()

UINT16 FontFamily::GetCellDescent ( INT  style) const
inline

Definition at line 768 of file gdiplusheaders.h.

769 {
770 UINT16 CellDescent;
771 SetStatus(DllExports::GdipGetCellDescent(fontFamily, style, &CellDescent));
772 return CellDescent;
773 }

◆ GetEmHeight()

UINT16 FontFamily::GetEmHeight ( INT  style)
inline

Definition at line 776 of file gdiplusheaders.h.

777 {
778 UINT16 EmHeight;
779 SetStatus(DllExports::GdipGetEmHeight(fontFamily, style, &EmHeight));
780 return EmHeight;
781 }

◆ GetFamilyName()

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

Definition at line 784 of file gdiplusheaders.h.

785 {
786 return SetStatus(DllExports::GdipGetFamilyName(fontFamily, name, language));
787 }

◆ 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;
799 SetStatus(DllExports::GdipGetLineSpacing(fontFamily, style, &LineSpacing));
800 return LineSpacing;
801 }

◆ 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;
813 SetStatus(DllExports::GdipIsStyleAvailable(fontFamily, style, &StyleAvailable));
814 return StyleAvailable;
815 }
unsigned int BOOL
Definition: ntddk_ex.h:94

◆ 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 }
@ Ok
Definition: gdiplustypes.h:26

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: