C# Class 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
Inheritance: GUIControl
Afficher le fichier Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Protected Properties

Свойство Type Description
_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

Méthodes publiques

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

Méthodes protégées

Méthode Description
Calculate ( ) : void

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

Private Methods

Méthode Description
ContainsProperty ( string text ) : bool
GUIPropertyManager_OnPropertyChanged ( string tag, string tagValue ) : void

Method Details

AllocResources() public méthode

Allocates the control its DirectX resources.
public AllocResources ( ) : void
Résultat void

Calculate() protected méthode

Perform an update after a change has occured. E.g. change to a new position.
protected Calculate ( ) : void
Résultat void

Dispose() public méthode

Frees the control its DirectX resources.
public Dispose ( ) : void
Résultat void

FinalizeConstruction() public méthode

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

GUIButton3PartControl() public méthode

empty constructor
public GUIButton3PartControl ( ) : System.Diagnostics
Résultat System.Diagnostics

GUIButton3PartControl() public méthode

The basic constructor of the GUIControl class.
public GUIButton3PartControl ( int dwParentID ) : System.Diagnostics
dwParentID int
Résultat System.Diagnostics

GUIButton3PartControl() public méthode

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

OnAction() public méthode

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

OnMessage() public méthode

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

PreAllocResources() public méthode

Preallocates the control its DirectX resources.
public PreAllocResources ( ) : void
Résultat void

Refresh() public méthode

public Refresh ( ) : void
Résultat void

Render() public méthode

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

SetBorderTFL() public méthode

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

SetBorderTFM() public méthode

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

SetBorderTFR() public méthode

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

SetBorderTI() public méthode

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

SetBorderTI2() public méthode

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

SetBorderTNFL() public méthode

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

SetBorderTNFM() public méthode

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

SetBorderTNFR() public méthode

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

SetLabel1() public méthode

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

SetLabel2() public méthode

public SetLabel2 ( string fontName, string label, long color ) : void
fontName string
label string
color long
Résultat void

SetPosition() public méthode

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

SetShadow1() public méthode

public SetShadow1 ( int angle, int distance, long color ) : void
angle int
distance int
color long
Résultat void

SetShadow2() public méthode

public SetShadow2 ( int angle, int distance, long color ) : void
angle int
distance int
color long
Résultat void

Property Details

_actionId protected_oe property

protected int _actionId
Résultat int

_application protected_oe property

protected string _application
Résultat string

_arguments protected_oe property

protected string _arguments
Résultat string

_cachedTextLabel1 protected_oe property

protected string _cachedTextLabel1
Résultat string

_cachedTextLabel2 protected_oe property

protected string _cachedTextLabel2
Résultat string

_hyperLinkWindowId protected_oe property

protected int _hyperLinkWindowId
Résultat int

_imageFocusedLeft protected_oe property

protected GUIImage,MediaPortal.GUI.Library _imageFocusedLeft
Résultat GUIImage

_imageFocusedMid protected_oe property

protected GUIImage,MediaPortal.GUI.Library _imageFocusedMid
Résultat GUIImage

_imageFocusedRight protected_oe property

protected GUIImage,MediaPortal.GUI.Library _imageFocusedRight
Résultat GUIImage

_imageIcon protected_oe property

protected GUIImage,MediaPortal.GUI.Library _imageIcon
Résultat GUIImage

_imageIcon2 protected_oe property

protected GUIImage,MediaPortal.GUI.Library _imageIcon2
Résultat GUIImage

_imageNonFocusedLeft protected_oe property

protected GUIImage,MediaPortal.GUI.Library _imageNonFocusedLeft
Résultat GUIImage

_imageNonFocusedMid protected_oe property

protected GUIImage,MediaPortal.GUI.Library _imageNonFocusedMid
Résultat GUIImage

_imageNonFocusedRight protected_oe property

protected GUIImage,MediaPortal.GUI.Library _imageNonFocusedRight
Résultat GUIImage

_scriptAction protected_oe property

protected string _scriptAction
Résultat string