C# Class MediaPortal.GUI.Library.GUILabelControl

A GUIControl for displaying text.
Inheritance: GUIControl
Afficher le fichier Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Private Properties

Свойство Type Description
CachedLabel void
ClearFontCache void
GUIPropertyManager_OnPropertyChanged void

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Update ( ) : void

updates the current label by deleting the fontcache

Private Methods

Méthode Description
CachedLabel ( ) : void
ClearFontCache ( ) : void
GUIPropertyManager_OnPropertyChanged ( string tag, string tagValue ) : void

Method Details

AllocResources() public méthode

Allocate any direct3d sources
public AllocResources ( ) : void
Résultat void

Animate() public méthode

public Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void
timePassed float
animator MediaPortal.GUI.Library.Animator
Résultat void

CanFocus() public méthode

Checks if the control can focus.
public CanFocus ( ) : bool
Résultat bool

Dispose() public méthode

Free any direct3d resources
public Dispose ( ) : void
Résultat void

DrawText() public méthode

public DrawText ( float xpos, float ypos, string label, int width ) : void
xpos float
ypos float
label string
width int
Résultat void

DrawTextWidth() public méthode

public DrawTextWidth ( float xpos, float ypos, string label, float fMaxWidth ) : void
xpos float
ypos float
label string
fMaxWidth float
Résultat void

FinalizeConstruction() public final méthode

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
Résultat void

GUILabelControl() public méthode

public GUILabelControl ( int dwParentID ) : System
dwParentID int
Résultat System

GUILabelControl() public méthode

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.
Résultat System

OnMessage() public méthode

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

Render() public méthode

Renders the text onscreen.
public Render ( float timePassed ) : void
timePassed float
Résultat void

SetPosition() public méthode

public SetPosition ( int dwPosX, int dwPosY ) : void
dwPosX int
dwPosY int
Résultat void

SetShadow() public méthode

Set the shadow properties
public SetShadow ( int angle, int distance, long color ) : void
angle int
distance int
color long
Résultat void

Update() protected méthode

updates the current label by deleting the fontcache
protected Update ( ) : void
Résultat void