C# 클래스 MediaPortal.GUI.Library.GUIFontManager

The class responsible for keeping track of the used fonts.
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
DictFontAlias string>.Dictionary
ListFonts List

공개 메소드들

메소드 설명
ClearFontCache ( ) : void
Dispose ( ) : void

Disposes all GUIFonts.

DrawText ( Microsoft.DirectX.Direct3D.Font fnt, float xpos, float ypos, Color color, string text, int maxWidth, int fontHeight ) : void
GetFont ( int iFont ) : MediaPortal.GUI.Library.GUIFont

Gets a GUIFont.

GetFont ( string strFontName ) : MediaPortal.GUI.Library.GUIFont

Gets a GUIFont.

InitializeDeviceObjects ( ) : void

Initializes the device objects of the GUIFonts.

LoadFonts ( string strFilename ) : bool

Loads the fonts from a file.

MeasureText ( Microsoft.DirectX.Direct3D.Font fnt, string text, float &textwidth, float &textheight, int fontSize ) : void
MeasureText ( string text, float &textwidth, float &textheight, int fontSize ) : void

Uses GDI+ Graphics to render a given text and measure the it's size

Present ( ) : void
SetDevice ( ) : void

Sets the device and the FVF.

SetDeviceNull ( ) : void

비공개 메소드들

메소드 설명
CachedSystemFont ( int fontSize ) : System.Drawing.Microsoft.DirectX.Direct3D.Font
DrawTextUsingTexture ( FontManagerDrawText draw, int fontSize ) : void
GUIFontManager ( ) : System

메소드 상세

ClearFontCache() 공개 정적인 메소드

public static ClearFontCache ( ) : void
리턴 void

Dispose() 공개 정적인 메소드

Disposes all GUIFonts.
public static Dispose ( ) : void
리턴 void

DrawText() 공개 정적인 메소드

public static DrawText ( Microsoft.DirectX.Direct3D.Font fnt, float xpos, float ypos, Color color, string text, int maxWidth, int fontHeight ) : void
fnt Microsoft.DirectX.Direct3D.Font
xpos float
ypos float
color Color
text string
maxWidth int
fontHeight int
리턴 void

GetFont() 공개 정적인 메소드

Gets a GUIFont.
public static GetFont ( int iFont ) : MediaPortal.GUI.Library.GUIFont
iFont int The font number
리턴 MediaPortal.GUI.Library.GUIFont

GetFont() 공개 정적인 메소드

Gets a GUIFont.
public static GetFont ( string strFontName ) : MediaPortal.GUI.Library.GUIFont
strFontName string The name of the font
리턴 MediaPortal.GUI.Library.GUIFont

InitializeDeviceObjects() 공개 정적인 메소드

Initializes the device objects of the GUIFonts.
public static InitializeDeviceObjects ( ) : void
리턴 void

LoadFonts() 공개 정적인 메소드

Loads the fonts from a file.
public static LoadFonts ( string strFilename ) : bool
strFilename string The filename from where the fonts are loaded.
리턴 bool

MeasureText() 공개 정적인 메소드

public static MeasureText ( Microsoft.DirectX.Direct3D.Font fnt, string text, float &textwidth, float &textheight, int fontSize ) : void
fnt Microsoft.DirectX.Direct3D.Font
text string
textwidth float
textheight float
fontSize int
리턴 void

MeasureText() 공개 정적인 메소드

Uses GDI+ Graphics to render a given text and measure the it's size
public static MeasureText ( string text, float &textwidth, float &textheight, int fontSize ) : void
text string
textwidth float
textheight float
fontSize int
리턴 void

Present() 공개 정적인 메소드

public static Present ( ) : void
리턴 void

SetDevice() 공개 정적인 메소드

Sets the device and the FVF.
public static SetDevice ( ) : void
리턴 void

SetDeviceNull() 공개 정적인 메소드

public static SetDeviceNull ( ) : void
리턴 void

프로퍼티 상세

DictFontAlias 보호되어 있는 정적으로 프로퍼티

protected static Dictionary DictFontAlias
리턴 string>.Dictionary

ListFonts 보호되어 있는 정적으로 프로퍼티

protected static List ListFonts
리턴 List