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

The class implementing a button which consists of 3 parts a left part, a middle part and a right part These are presented as [ Left Middle Right ] Each part has 2 images, 1 for the normal state and 1 for the focused state Further the button can have an image (icon) which can be positioned
Наследование: GUIControl
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_actionId int
_application string
_arguments string
_cachedTextLabel1 string
_cachedTextLabel2 string
_hyperLinkWindowId int
_imageFocusedLeft GUIImage
_imageFocusedMid GUIImage
_imageFocusedRight GUIImage
_imageIcon GUIImage
_imageIcon2 GUIImage
_imageNonFocusedLeft GUIImage
_imageNonFocusedMid GUIImage
_imageNonFocusedRight GUIImage
_scriptAction string

Открытые методы

Метод Описание
AllocResources ( ) : void

Allocates the control its DirectX resources.

Dispose ( ) : void

Frees the control its DirectX resources.

FinalizeConstruction ( ) : void

This method gets called when the control is created and all properties has been set It allows the control todo any initialization

GUIButton3PartControl ( ) : System.Diagnostics

empty constructor

GUIButton3PartControl ( int dwParentID ) : System.Diagnostics

The basic constructor of the GUIControl class.

GUIButton3PartControl ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTextureFocusLeft, string strTextureFocusMid, string strTextureFocusRight, string strTextureNoFocusLeft, string strTextureNoFocusMid, string strTextureNoFocusRight, string strTextureIcon ) : System.Diagnostics

The constructor of the GUIButton3PartControl class.

OnAction ( MediaPortal.GUI.Library.Action action ) : void

OnAction() method. This method gets called when there's a new action like a keypress or mousemove or... By overriding this method, the control can respond to any action

OnMessage ( GUIMessage message ) : bool

OnMessage() This method gets called when there's a new message. Controls send messages to notify their parents about their state (changes) By overriding this method a control can respond to the messages of its controls

PreAllocResources ( ) : void

Preallocates the control its DirectX resources.

Refresh ( ) : void
Render ( float timePassed ) : void

Renders the GUIButton3PartControl.

SetBorderTFL ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
SetBorderTFM ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
SetBorderTFR ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
SetBorderTI ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
SetBorderTI2 ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
SetBorderTNFL ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
SetBorderTNFM ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
SetBorderTNFR ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
SetLabel1 ( string fontName, string label, long color ) : void

Set the text of the GUIButton3PartControl.

SetLabel2 ( string fontName, string label, long color ) : void
SetPosition ( int dwPosX, int dwPosY ) : void
SetShadow1 ( int angle, int distance, long color ) : void
SetShadow2 ( int angle, int distance, long color ) : void

Защищенные методы

Метод Описание
Calculate ( ) : void

Perform an update after a change has occured. E.g. change to a new position.

Приватные методы

Метод Описание
ContainsProperty ( string text ) : bool
GUIPropertyManager_OnPropertyChanged ( string tag, string tagValue ) : void

Описание методов

AllocResources() публичный Метод

Allocates the control its DirectX resources.
public AllocResources ( ) : void
Результат void

Calculate() защищенный Метод

Perform an update after a change has occured. E.g. change to a new position.
protected Calculate ( ) : void
Результат void

Dispose() публичный Метод

Frees the control its DirectX resources.
public Dispose ( ) : void
Результат void

FinalizeConstruction() публичный Метод

This method gets called when the control is created and all properties has been set It allows the control todo any initialization
public FinalizeConstruction ( ) : void
Результат void

GUIButton3PartControl() публичный Метод

empty constructor
public GUIButton3PartControl ( ) : System.Diagnostics
Результат System.Diagnostics

GUIButton3PartControl() публичный Метод

The basic constructor of the GUIControl class.
public GUIButton3PartControl ( int dwParentID ) : System.Diagnostics
dwParentID int
Результат System.Diagnostics

GUIButton3PartControl() публичный Метод

The constructor of the GUIButton3PartControl class.
public GUIButton3PartControl ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTextureFocusLeft, string strTextureFocusMid, string strTextureFocusRight, string strTextureNoFocusLeft, string strTextureNoFocusMid, string strTextureNoFocusRight, string strTextureIcon ) : System.Diagnostics
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.
strTextureFocusLeft string
strTextureFocusMid string
strTextureFocusRight string
strTextureNoFocusLeft string
strTextureNoFocusMid string
strTextureNoFocusRight string
strTextureIcon string
Результат System.Diagnostics

OnAction() публичный Метод

OnAction() method. This method gets called when there's a new action like a keypress or mousemove or... By overriding this method, the control can respond to any action
public OnAction ( MediaPortal.GUI.Library.Action action ) : void
action MediaPortal.GUI.Library.Action action : contains the action
Результат void

OnMessage() публичный Метод

OnMessage() This method gets called when there's a new message. Controls send messages to notify their parents about their state (changes) By overriding this method a control can respond to the messages of its controls
public OnMessage ( GUIMessage message ) : bool
message GUIMessage message : contains the message
Результат bool

PreAllocResources() публичный Метод

Preallocates the control its DirectX resources.
public PreAllocResources ( ) : void
Результат void

Refresh() публичный Метод

public Refresh ( ) : void
Результат void

Render() публичный Метод

Renders the GUIButton3PartControl.
public Render ( float timePassed ) : void
timePassed float
Результат void

SetBorderTFL() публичный Метод

public SetBorderTFL ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
border string
position GUIImage
repeat bool
rotate bool
texture string
colorKey long
hasCorners bool
cornerRotate bool
Результат void

SetBorderTFM() публичный Метод

public SetBorderTFM ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
border string
position GUIImage
repeat bool
rotate bool
texture string
colorKey long
hasCorners bool
cornerRotate bool
Результат void

SetBorderTFR() публичный Метод

public SetBorderTFR ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
border string
position GUIImage
repeat bool
rotate bool
texture string
colorKey long
hasCorners bool
cornerRotate bool
Результат void

SetBorderTI() публичный Метод

public SetBorderTI ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
border string
position GUIImage
repeat bool
rotate bool
texture string
colorKey long
hasCorners bool
cornerRotate bool
Результат void

SetBorderTI2() публичный Метод

public SetBorderTI2 ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
border string
position GUIImage
repeat bool
rotate bool
texture string
colorKey long
hasCorners bool
cornerRotate bool
Результат void

SetBorderTNFL() публичный Метод

public SetBorderTNFL ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
border string
position GUIImage
repeat bool
rotate bool
texture string
colorKey long
hasCorners bool
cornerRotate bool
Результат void

SetBorderTNFM() публичный Метод

public SetBorderTNFM ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
border string
position GUIImage
repeat bool
rotate bool
texture string
colorKey long
hasCorners bool
cornerRotate bool
Результат void

SetBorderTNFR() публичный Метод

public SetBorderTNFR ( string border, GUIImage position, bool repeat, bool rotate, string texture, long colorKey, bool hasCorners, bool cornerRotate ) : void
border string
position GUIImage
repeat bool
rotate bool
texture string
colorKey long
hasCorners bool
cornerRotate bool
Результат void

SetLabel1() публичный Метод

Set the text of the GUIButton3PartControl.
public SetLabel1 ( string fontName, string label, long color ) : void
fontName string The font name.
label string The text.
color long The font color.
Результат void

SetLabel2() публичный Метод

public SetLabel2 ( string fontName, string label, long color ) : void
fontName string
label string
color long
Результат void

SetPosition() публичный Метод

public SetPosition ( int dwPosX, int dwPosY ) : void
dwPosX int
dwPosY int
Результат void

SetShadow1() публичный Метод

public SetShadow1 ( int angle, int distance, long color ) : void
angle int
distance int
color long
Результат void

SetShadow2() публичный Метод

public SetShadow2 ( int angle, int distance, long color ) : void
angle int
distance int
color long
Результат void

Описание свойств

_actionId защищенное свойство

protected int _actionId
Результат int

_application защищенное свойство

protected string _application
Результат string

_arguments защищенное свойство

protected string _arguments
Результат string

_cachedTextLabel1 защищенное свойство

protected string _cachedTextLabel1
Результат string

_cachedTextLabel2 защищенное свойство

protected string _cachedTextLabel2
Результат string

_hyperLinkWindowId защищенное свойство

protected int _hyperLinkWindowId
Результат int

_imageFocusedLeft защищенное свойство

protected GUIImage,MediaPortal.GUI.Library _imageFocusedLeft
Результат GUIImage

_imageFocusedMid защищенное свойство

protected GUIImage,MediaPortal.GUI.Library _imageFocusedMid
Результат GUIImage

_imageFocusedRight защищенное свойство

protected GUIImage,MediaPortal.GUI.Library _imageFocusedRight
Результат GUIImage

_imageIcon защищенное свойство

protected GUIImage,MediaPortal.GUI.Library _imageIcon
Результат GUIImage

_imageIcon2 защищенное свойство

protected GUIImage,MediaPortal.GUI.Library _imageIcon2
Результат GUIImage

_imageNonFocusedLeft защищенное свойство

protected GUIImage,MediaPortal.GUI.Library _imageNonFocusedLeft
Результат GUIImage

_imageNonFocusedMid защищенное свойство

protected GUIImage,MediaPortal.GUI.Library _imageNonFocusedMid
Результат GUIImage

_imageNonFocusedRight защищенное свойство

protected GUIImage,MediaPortal.GUI.Library _imageNonFocusedRight
Результат GUIImage

_scriptAction защищенное свойство

protected string _scriptAction
Результат string