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

A GUIControl for displaying text.
상속: GUIControl
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CachedLabel void
ClearFontCache void
GUIPropertyManager_OnPropertyChanged void

공개 메소드들

메소드 설명
AllocResources ( ) : void

Allocate any direct3d sources

Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void
CanFocus ( ) : bool

Checks if the control can focus.

Dispose ( ) : void

Free any direct3d resources

DrawText ( float xpos, float ypos, string label, int width ) : void
DrawTextWidth ( float xpos, float ypos, string label, float fMaxWidth ) : void
FinalizeConstruction ( ) : void

This function is called after all of the XmlSkinnable fields have been filled with appropriate data. Use this to do any construction work other than simple data member assignments, for example, initializing new reference types, extra calculations, etc..

GUILabelControl ( int dwParentID ) : System
GUILabelControl ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strFont, string strLabel, long dwTextColor, Alignment dwTextAlign, VAlignment dwTextVAlign, bool bHasPath, int dwShadowAngle, int dwShadowDistance, long dwShadowColor ) : System

The constructor of the GUILabelControl class.

OnMessage ( GUIMessage message ) : bool

This method is called when a message was recieved by this control.

Render ( float timePassed ) : void

Renders the text onscreen.

SetPosition ( int dwPosX, int dwPosY ) : void
SetShadow ( int angle, int distance, long color ) : void

Set the shadow properties

보호된 메소드들

메소드 설명
Update ( ) : void

updates the current label by deleting the fontcache

비공개 메소드들

메소드 설명
CachedLabel ( ) : void
ClearFontCache ( ) : void
GUIPropertyManager_OnPropertyChanged ( string tag, string tagValue ) : void

메소드 상세

AllocResources() 공개 메소드

Allocate any direct3d sources
public AllocResources ( ) : void
리턴 void

Animate() 공개 메소드

public Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void
timePassed float
animator MediaPortal.GUI.Library.Animator
리턴 void

CanFocus() 공개 메소드

Checks if the control can focus.
public CanFocus ( ) : bool
리턴 bool

Dispose() 공개 메소드

Free any direct3d resources
public Dispose ( ) : void
리턴 void

DrawText() 공개 메소드

public DrawText ( float xpos, float ypos, string label, int width ) : void
xpos float
ypos float
label string
width int
리턴 void

DrawTextWidth() 공개 메소드

public DrawTextWidth ( float xpos, float ypos, string label, float fMaxWidth ) : void
xpos float
ypos float
label string
fMaxWidth float
리턴 void

FinalizeConstruction() 공개 최종 메소드

This function is called after all of the XmlSkinnable fields have been filled with appropriate data. Use this to do any construction work other than simple data member assignments, for example, initializing new reference types, extra calculations, etc..
public final FinalizeConstruction ( ) : void
리턴 void

GUILabelControl() 공개 메소드

public GUILabelControl ( int dwParentID ) : System
dwParentID int
리턴 System

GUILabelControl() 공개 메소드

The constructor of the GUILabelControl class.
public GUILabelControl ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strFont, string strLabel, long dwTextColor, Alignment dwTextAlign, VAlignment dwTextVAlign, bool bHasPath, int dwShadowAngle, int dwShadowDistance, long dwShadowColor ) : System
dwParentID int The parent of this control.
dwControlId int The ID of this control.
dwPosX int The X position of this control.
dwPosY int The Y position of this control.
dwWidth int The width of this control.
dwHeight int The height of this control.
strFont string The indication of the font of this control.
strLabel string The text of this control.
dwTextColor long The color of this control.
dwTextAlign Alignment The alignment of this control.
dwTextVAlign VAlignment The vertical alignment of this control.
bHasPath bool Indicates if the label is containing a path.
dwShadowAngle int The angle of the shadow; zero degress along x-axis.
dwShadowDistance int The distance of the shadow.
dwShadowColor long The color of the shadow.
리턴 System

OnMessage() 공개 메소드

This method is called when a message was recieved by this control.
public OnMessage ( GUIMessage message ) : bool
message GUIMessage The message.
리턴 bool

Render() 공개 메소드

Renders the text onscreen.
public Render ( float timePassed ) : void
timePassed float
리턴 void

SetPosition() 공개 메소드

public SetPosition ( int dwPosX, int dwPosY ) : void
dwPosX int
dwPosY int
리턴 void

SetShadow() 공개 메소드

Set the shadow properties
public SetShadow ( int angle, int distance, long color ) : void
angle int
distance int
color long
리턴 void

Update() 보호된 메소드

updates the current label by deleting the fontcache
protected Update ( ) : void
리턴 void