프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_calibration | bool | ||
_data | object | ||
_isAnimating | bool | ||
_isDimmed | bool | ||
_isSelected | bool | ||
_originalDiffuseColor | long | ||
_originalRectangle | Rectangle | ||
_parentControl | GUIControl | ||
_parentControlId | int | ||
_selectedItem | int | ||
_subItemList | ArrayList | ||
_windowId | int |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
CalcBearing | double | ||
CalcDistance | double | ||
FlattenHierarchy | |||
FlattenHierarchy | void | ||
FreeResources | void | ||
Navigate | int | ||
UpdateStates | void |
메소드 | 설명 | |
---|---|---|
AddAnimations ( List |
||
AddItemLabelControl ( int iWindowId, int iControlId, string strLabel ) : void |
Sends a GUI_MSG_LABEL_ADD message to a control (Add an ItemLabel to a control).
|
|
AddListItemControl ( int iWindowId, int iControlId, |
Sends a GUI_MSG_LABEL_ADD message to a control (Add a ListItem to a control).
|
|
AddSubItem ( object obj ) : void |
Add an subitem to a control
|
|
AllocResources ( ) : void |
Allocates the control its DirectX resources.
|
|
Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void |
Method to get animate the current control
|
|
CanFocus ( ) : bool |
Checks if the control can focus.
|
|
ClearControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_LABEL_RESET message to a control (Clears a control).
|
|
DeSelectControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_DESELECTED message to a control (Deselect a control).
|
|
DisableControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_DISABLED message to a control (Disables a control).
|
|
Dispose ( ) : void |
Frees the control its DirectX resources.
|
|
DoRender ( float timePassed, uint currentTime ) : void | ||
DoUpdate ( ) : void | ||
EnableControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_ENABLED message to a control (Enables a control).
|
|
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..
|
|
FocusControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_SETFOCUS message to a control (Set the focus on a control).
|
|
FocusControl ( int iWindowId, int iControlId, Direction direction ) : void | ||
FocusItemControl ( int iWindowId, int iControlId, int iItem ) : void |
Sends a GUI_MSG_ITEM_FOCUS message to a control (set item in control to selected state).
|
|
GUIControl ( ) : System |
empty constructor
|
|
GUIControl ( int dwParentID ) : System |
The basic constructur of the GUIControl class.
|
|
GUIControl ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight ) : System |
The constructor of the GUIControl class.
|
|
GetAnimation ( AnimationType type, bool checkConditions ) : |
||
GetAnimations ( AnimationType type, bool checkConditions ) : List |
||
GetCenter ( float ¢erX, float ¢erY ) : void | ||
GetControlById ( int ID ) : |
Property to get the control for a specific control ID
|
|
GetItemCount ( int lWindowId, int iControlId ) : int |
Sends a GUI_MSG_ITEMS message to a control (Gets the number of Items in a control).
|
|
GetListItem ( int lWindowId, int iControlId, int iItem ) : |
Sends a GUI_MSG_GET_ITEM message to a control (Gets a GUIListItem based on the lWindowId, iControlId, iItem parameters).
|
|
GetRect ( int &x, int &y, int &width, int &height ) : void |
Method to get the rectangle of the current control
|
|
GetSelectedListItem ( int lWindowId, int iControlId ) : |
Sends a GUI_MSG_GET_SELECTED_ITEM message to a control (Gets the selected GUIListItem based on the lWindowId, iControlId).
|
|
GetSubItem ( int index ) : object |
Property to get a subitem
|
|
GetVisibleCondition ( ) : int | ||
HideControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_HIDDEN message to a control (Hide a control).
|
|
HitTest ( int x, int y, int &controlID, bool &focused ) : bool |
Checks if the x and y coordinates correspond to the current control.
|
|
InControl ( int x, int y, int &controlID ) : bool |
Method which determines of the coordinate(x,y) is within the current control
|
|
IsEffectAnimating ( AnimationType animType ) : bool | ||
LoadAnimationControl ( int parentID, int controlId, int posX, int posY, int width, int height, string texture ) : |
||
LoadControl ( string xmlFilename ) : List |
||
NeedRefresh ( ) : bool |
NeedRefresh() can be called to see if the control needs 2 redraw itself or not some controls (for example the fadelabel) contain scrolling texts and need 2 ne re-rendered constantly
|
|
OnAction ( 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
|
|
OnDeInit ( ) : void |
Virtual method. This method gets called when the control is de-initialized and allows it to do any de-initalization
|
|
OnInit ( ) : void |
Virtual method. This method gets called when the control is initialized and allows it to do any initalization
|
|
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
|
|
PreAllocResources ( ) : void |
Preallocates the control its DirectX resources.
|
|
QueueAnimation ( AnimationType animType ) : void | ||
ReStorePosition ( ) : void |
Method to restore the saved-current control rectangle
|
|
RefreshControl ( int iWindowId, int iControlId ) : void | ||
RemoveSubItem ( int index ) : void |
Remove an subitem from an control
|
|
RemoveSubItem ( object obj ) : void |
Remove an subitem from an control
|
|
Render ( float timePassed ) : void |
The default render method. This needs to be overwritten when inherited to give every control its specific look and feel.
|
|
ResetAnimations ( ) : void | ||
ScaleToScreenResolution ( ) : void |
Does any scaling on the inital size\position values to fit them to screen resolution.
|
|
SelectControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_SELECTED message to a control (Select a control).
|
|
SelectItemControl ( int iWindowId, int iControlId, int iItem ) : void |
Sends a GUI_MSG_ITEM_SELECT message to a control (Select an item in a control).
|
|
SetAlpha ( int dwAlpha ) : void |
Changes the alpha transparency component of the colordiffuse.
|
|
SetAnimations ( List |
||
SetControlLabel ( int iWindowId, int iControlId, string strText ) : void |
Sends a GUI_MSG_LABEL_SET message to a control (Set the label of a control).
|
|
SetInitialVisibility ( ) : void | ||
SetNavigation ( int dwUp, int dwDown, int dwLeft, int dwRight ) : void |
Set the up/down/left/right control
|
|
SetPosition ( int dwPosX, int dwPosY ) : void |
Sets the position of the control.
|
|
SetSubItem ( int index, object o ) : void |
Property to set an subitem
|
|
SetThumbAnimations ( List |
||
SetVisibleCondition ( int visible, bool allowHiddenFocus ) : void | ||
ShowControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_VISIBLE message to a control (Make a control visible).
|
|
StorePosition ( ) : void |
Method to store(save) the current control rectangle
|
|
UnfocusControl ( int iWindowId, int iControlId ) : void |
Sends a GUI_MSG_LOSTFOCUS message to a control (Set the focus on a control).
|
|
UpdateVisibility ( ) : void | ||
getTransformMatrix ( uint currentTime ) : TransformMatrix |
메소드 | 설명 | |
---|---|---|
OnFocus ( ) : void | ||
Update ( ) : void |
Perform an update after a change has occured. E.g. change to a new position.
|
메소드 | 설명 | |
---|---|---|
CalcBearing ( Drawing p1, Drawing p2 ) : double | ||
CalcDistance ( Drawing p2, Drawing p1 ) : double | ||
FlattenHierarchy ( ICollection |
||
FlattenHierarchy ( ICollection |
||
FreeResources ( ) : void | ||
Navigate ( Direction direction ) : int | ||
UpdateStates ( AnimationType type, AnimationProcess currentProcess, AnimationState currentState ) : void |
public static AddItemLabelControl ( int iWindowId, int iControlId, string strLabel ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
strLabel | string | The text of the label that needs to be added. |
리턴 | void |
public static AddListItemControl ( int iWindowId, int iControlId, |
||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
item | The item that needs to be added to the ListControl | |
리턴 | void |
public Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void | ||
timePassed | float | |
animator | MediaPortal.GUI.Library.Animator | |
리턴 | void |
public static ClearControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public static DeSelectControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public static DisableControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public DoRender ( float timePassed, uint currentTime ) : void | ||
timePassed | float | |
currentTime | uint | |
리턴 | void |
public static EnableControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public static FocusControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public static FocusControl ( int iWindowId, int iControlId, Direction direction ) : void | ||
iWindowId | int | |
iControlId | int | |
direction | Direction | |
리턴 | void |
public static FocusItemControl ( int iWindowId, int iControlId, int iItem ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
iItem | int | The id of the item that should have the selected state. |
리턴 | void |
public GUIControl ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight ) : System | ||
dwParentID | int | The id of the parent control. |
dwControlId | int | The id of this control. |
dwPosX | int | The X position on the screen of this control. |
dwPosY | int | The Y position on the screen of this control. |
dwWidth | int | The width of this control. |
dwHeight | int | The height of this control. |
리턴 | System |
public GetAnimation ( AnimationType type, bool checkConditions ) : |
||
type | AnimationType | |
checkConditions | bool | |
리턴 |
public GetAnimations ( AnimationType type, bool checkConditions ) : List |
||
type | AnimationType | |
checkConditions | bool | |
리턴 | List |
public GetCenter ( float ¢erX, float ¢erY ) : void | ||
centerX | float | |
centerY | float | |
리턴 | void |
public GetControlById ( int ID ) : |
||
ID | int | Id of wanted control |
리턴 |
public static GetItemCount ( int lWindowId, int iControlId ) : int | ||
lWindowId | int | |
iControlId | int | The target control. |
리턴 | int |
public static GetListItem ( int lWindowId, int iControlId, int iItem ) : |
||
lWindowId | int | |
iControlId | int | The target control. |
iItem | int | The item id of the item that needs to be returned. |
리턴 |
public GetRect ( int &x, int &y, int &width, int &height ) : void | ||
x | int | |
y | int | |
width | int | |
height | int | |
리턴 | void |
public static GetSelectedListItem ( int lWindowId, int iControlId ) : |
||
lWindowId | int | |
iControlId | int | The target control. |
리턴 |
public static HideControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public HitTest ( int x, int y, int &controlID, bool &focused ) : bool | ||
x | int | The x coordinate. |
y | int | The y coordinate. |
controlID | int | |
focused | bool | |
리턴 | bool |
public InControl ( int x, int y, int &controlID ) : bool | ||
x | int | x coordinate |
y | int | y coordiate |
controlID | int | return id of control if coordinate is within control |
리턴 | bool |
public IsEffectAnimating ( AnimationType animType ) : bool | ||
animType | AnimationType | |
리턴 | bool |
public LoadAnimationControl ( int parentID, int controlId, int posX, int posY, int width, int height, string texture ) : |
||
parentID | int | |
controlId | int | |
posX | int | |
posY | int | |
width | int | |
height | int | |
texture | string | |
리턴 |
public OnAction ( Action action ) : void | ||
action | Action | action : contains the action |
리턴 | void |
public OnMessage ( |
||
message | message : contains the message | |
리턴 | bool |
public QueueAnimation ( AnimationType animType ) : void | ||
animType | AnimationType | |
리턴 | void |
public static RefreshControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | |
iControlId | int | |
리턴 | void |
public static SelectControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public static SelectItemControl ( int iWindowId, int iControlId, int iItem ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
iItem | int | The id of the item that is selected on the control. |
리턴 | void |
public static SetControlLabel ( int iWindowId, int iControlId, string strText ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
strText | string | The text that needs to be set on the target label. |
리턴 | void |
public SetNavigation ( int dwUp, int dwDown, int dwLeft, int dwRight ) : void | ||
dwUp | int | The control above this control. |
dwDown | int | The control under this control. |
dwLeft | int | The control left to this control. |
dwRight | int | The control right to this control. |
리턴 | void |
public SetPosition ( int dwPosX, int dwPosY ) : void | ||
dwPosX | int | The X position. |
dwPosY | int | The Y position. |
리턴 | void |
public SetSubItem ( int index, object o ) : void | ||
index | int | index |
o | object | subitem |
리턴 | void |
public SetThumbAnimations ( List |
||
animations | List |
|
리턴 | void |
public SetVisibleCondition ( int visible, bool allowHiddenFocus ) : void | ||
visible | int | |
allowHiddenFocus | bool | |
리턴 | void |
public static ShowControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public static UnfocusControl ( int iWindowId, int iControlId ) : void | ||
iWindowId | int | The SenderId. |
iControlId | int | The target control. |
리턴 | void |
public getTransformMatrix ( uint currentTime ) : TransformMatrix | ||
currentTime | uint | |
리턴 | TransformMatrix |