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
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_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