C# Класс MediaPortal.GUI.Library.GUILabelControl

A GUIControl for displaying text.
Наследование: GUIControl
Показать файл Открыть проект Примеры использования класса

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