Property | Type | Description | |
---|---|---|---|
_brackedText | string | ||
_cursorX | int | ||
_drawFocus | bool | ||
_enableSMSsearch | bool | ||
_enableScrollLabel | bool | ||
_font | MediaPortal.GUI.Library.GUIFont | ||
_font2 | MediaPortal.GUI.Library.GUIFont | ||
_font3 | MediaPortal.GUI.Library.GUIFont | ||
_itemsPerPage | int | ||
_labelControls1 | List |
||
_labelControls2 | List |
||
_labelControls3 | List |
||
_lastCommandTime | double | ||
_lastItem | int | ||
_lastItemPageValue | int | ||
_lastSearchItem | int | ||
_listButtons | List |
||
_listItems | List |
||
_listProgresses | List |
||
_listType | ListType | ||
_loopDelay | int | ||
_offset | int | ||
_refresh | bool | ||
_scrollContinuously | bool | ||
_scrollDirection | string | ||
_scrollOffsetX | double | ||
_scrollPosition | int | ||
_scrollPosititionX | int | ||
_searchString | string | ||
_textLine2 | string | ||
_timeElapsed | double | ||
_upDownControl | MediaPortal.GUI.Library.GUISpinControl | ||
_upDownControlVisible | bool | ||
_verticalScrollbar | MediaPortal.GUI.Library.GUIVerticalScrollbar |
Property | Type | Description | |
---|---|---|---|
CheckTimer | void | ||
Press | void | ||
SearchItem | void | ||
SelectItem | void | ||
SetLabel | string | ||
WordWrapText | void | ||
item_OnThumbnailRefresh | void |
Method | Description | |
---|---|---|
Add ( |
||
AllocResources ( ) : void |
Allocates the control its DirectX resources.
|
|
Clear ( ) : void | ||
Dispose ( ) : void |
Frees the control its DirectX resources.
|
|
FinalizeConstruction ( ) : void | ||
GUIListControl ( int dwParentID ) : System | ||
GUIListControl ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, int dwSpinWidth, int dwSpinHeight, string strUp, string strDown, string strUpFocus, string strDownFocus, long dwSpinColor, int dwSpinX, int dwSpinY, string strFont, long dwTextColor, long dwSelectedColor, string strButton, string strButtonFocus, string strScrollbarBackground, string strScrollbarTop, string strScrollbarBottom, int dwShadowAngle, int dwShadowDistance, long dwShadowColor ) : System |
The constructor of the GUIListControl.
|
|
GetSelectedItem ( string &strLabel, string &strLabel2, string &strThumb, string &strIndex ) : int | ||
HitTest ( int x, int y, int &controlID, bool &focused ) : bool |
Checks if the x and y coordinates correspond to the current control.
|
|
Insert ( int index, |
||
MoveItemDown ( int iItem ) : int | ||
MoveItemUp ( int iItem ) : int | ||
NeedRefresh ( ) : bool |
NeedRefresh() can be called to see if the control needs 2 redraw itself or not.
|
|
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
|
|
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.
|
|
RemoveItem ( int iItem ) : int | ||
Render ( float timePassed ) : void |
Renders the control.
|
|
Replace ( int index, |
||
ScaleToScreenResolution ( ) : void | ||
ScrollToEnd ( ) : void | ||
SetColors2 ( long dwTextColor, long dwSelectedColor ) : void |
Set the colors of the second label.
|
|
SetColors3 ( long dwTextColor, long dwSelectedColor ) : void |
Set the colors of the second label.
|
|
SetImageDimensions ( int iWidth, int iHeight ) : void |
Sets the dimension of the images of the items.
|
|
SetNeedRefresh ( ) : void | ||
SetPageControlVisible ( bool bVisible ) : void |
Set the visibility of the page control.
|
|
SetTextOffsets ( int iXoffset, int iYOffset, int iXoffset2, int iYOffset2, int iXoffset3, int iYOffset3 ) : void |
Sets the offsets of the text.
|
|
Sort ( IComparer |
Sorts the list of items in this control.
|
|
this ( int index ) : |
Method | Description | |
---|---|---|
AllocButtons ( ) : void | ||
FreeUnusedThumbnails ( ) : void | ||
OnDefaultAction ( Action action ) : void | ||
OnDown ( ) : void |
Implementation of the OnDown action.
|
|
OnLeft ( ) : void |
Implementation of the OnLeft action.
|
|
OnMouseClick ( Action action ) : void | ||
OnPageDown ( ) : void |
Implementation of the OnPageDown action.
|
|
OnPageUp ( ) : void |
Implementation of the OnPageUp action.
|
|
OnRight ( ) : void |
Implementation of the OnRight action.
|
|
OnSelectionChanged ( ) : void | ||
OnUp ( ) : void |
Implementation of the OnUp action.
|
|
ReleaseButtons ( ) : void | ||
RenderButton ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void | ||
RenderIcon ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void | ||
RenderLabel ( float timePassed, int buttonNumber, int positionX, int positionY, bool gotFocus ) : void |
|
|
RenderPinIcon ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void | ||
RenderProgressBar ( float timePassed, int progressBarNr, int x, int y, bool gotFocus ) : void | ||
RenderScrollbar ( float timePassed ) : void | ||
RenderText ( float timePassed, int item, |
Renders the text.
|
|
RenderText ( float timePassed, int item, float fPosX, float fPosY, float fMaxWidth, long dwTextColor, string strTextToRender, bool bScroll ) : void |
Renders the text.
|
Method | Description | |
---|---|---|
CheckTimer ( ) : void | ||
Press ( char key ) : void |
Handle keypress events for SMS style search (key '1'..'9')
|
|
SearchItem ( string searchKey, SearchType searchMethode ) : void |
Search for first item starting with searchkey
|
|
SelectItem ( int item ) : void |
Select the item and set the Page accordingly
|
|
SetLabel ( string textContent, |
||
WordWrapText ( string strText, int iMaxWidth, |
||
item_OnThumbnailRefresh ( int buttonNr, bool gotFocus ) : void |
public GUIListControl ( int dwParentID ) : System | ||
dwParentID | int | |
return | System |
public GUIListControl ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, int dwSpinWidth, int dwSpinHeight, string strUp, string strDown, string strUpFocus, string strDownFocus, long dwSpinColor, int dwSpinX, int dwSpinY, string strFont, long dwTextColor, long dwSelectedColor, string strButton, string strButtonFocus, string strScrollbarBackground, string strScrollbarTop, string strScrollbarBottom, 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. |
dwSpinWidth | int | TODO |
dwSpinHeight | int | TODO |
strUp | string | The name of the scroll up unfocused texture. |
strDown | string | The name of the scroll down unfocused texture. |
strUpFocus | string | The name of the scroll up focused texture. |
strDownFocus | string | The name of the scroll down unfocused texture. |
dwSpinColor | long | TODO |
dwSpinX | int | TODO |
dwSpinY | int | TODO |
strFont | string | The font used in the spin control. |
dwTextColor | long | The color of the text. |
dwSelectedColor | long | The color of the text when it is selected. |
strButton | string | The name of the unfocused button texture. |
strButtonFocus | string | The name of the focused button texture. |
strScrollbarBackground | string | The name of the background of the scrollbar texture. |
strScrollbarTop | string | The name of the top of the scrollbar texture. |
strScrollbarBottom | string | The name of the bottom of the scrollbar texture. |
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. |
return | System |
public GetSelectedItem ( string &strLabel, string &strLabel2, string &strThumb, string &strIndex ) : int | ||
strLabel | string | |
strLabel2 | string | |
strThumb | string | |
strIndex | string | |
return | int |
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 | |
return | bool |
public Insert ( int index, |
||
index | int | |
item | ||
return | void |
public OnAction ( Action action ) : void | ||
action | Action | action : contains the action |
return | void |
protected OnDefaultAction ( Action action ) : void | ||
action | Action | |
return | void |
public OnMessage ( |
||
message | message : contains the message | |
return | bool |
protected OnMouseClick ( Action action ) : void | ||
action | Action | |
return | void |
protected RenderButton ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void | ||
timePassed | float | |
buttonNr | int | |
x | int | |
y | int | |
gotFocus | bool | |
return | void |
protected RenderIcon ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void | ||
timePassed | float | |
buttonNr | int | |
x | int | |
y | int | |
gotFocus | bool | |
return | void |
protected RenderLabel ( float timePassed, int buttonNumber, int positionX, int positionY, bool gotFocus ) : void | ||
timePassed | float | |
buttonNumber | int | |
positionX | int | |
positionY | int | |
gotFocus | bool | |
return | void |
protected RenderPinIcon ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void | ||
timePassed | float | |
buttonNr | int | |
x | int | |
y | int | |
gotFocus | bool | |
return | void |
protected RenderProgressBar ( float timePassed, int progressBarNr, int x, int y, bool gotFocus ) : void | ||
timePassed | float | |
progressBarNr | int | |
x | int | |
y | int | |
gotFocus | bool | |
return | void |
protected RenderScrollbar ( float timePassed ) : void | ||
timePassed | float | |
return | void |
protected RenderText ( float timePassed, int item, |
||
timePassed | float | |
item | int | |
label | The label to render | |
bScroll | bool | A bool indication if there is scrolling or not. |
return | void |
protected RenderText ( float timePassed, int item, float fPosX, float fPosY, float fMaxWidth, long dwTextColor, string strTextToRender, bool bScroll ) : void | ||
timePassed | float | |
item | int | |
fPosX | float | The X position of the text. |
fPosY | float | The Y position of the text. |
fMaxWidth | float | The maximum render width. |
dwTextColor | long | The color of the text. |
strTextToRender | string | The actual text. |
bScroll | bool | A bool indication if there is scrolling or not. |
return | void |
public Replace ( int index, |
||
index | int | |
item | ||
return | void |
public SetColors2 ( long dwTextColor, long dwSelectedColor ) : void | ||
dwTextColor | long | |
dwSelectedColor | long | |
return | void |
public SetColors3 ( long dwTextColor, long dwSelectedColor ) : void | ||
dwTextColor | long | |
dwSelectedColor | long | |
return | void |
public SetImageDimensions ( int iWidth, int iHeight ) : void | ||
iWidth | int | The width. |
iHeight | int | The height. |
return | void |
public SetPageControlVisible ( bool bVisible ) : void | ||
bVisible | bool | true if visible false otherwise |
return | void |
public SetTextOffsets ( int iXoffset, int iYOffset, int iXoffset2, int iYOffset2, int iXoffset3, int iYOffset3 ) : void | ||
iXoffset | int | The X offset of the first label. |
iYOffset | int | The Y offset of the first label. |
iXoffset2 | int | The X offset of the second label. |
iYOffset2 | int | The Y offset of the second label. |
iXoffset3 | int | The X offset of the third label. |
iYOffset3 | int | The Y offset of the third label. |
return | void |
public Sort ( IComparer |
||
comparer | IComparer |
The comparer on which the sort is based. |
return | void |
protected GUIFont,MediaPortal.GUI.Library _font | ||
return | MediaPortal.GUI.Library.GUIFont |
protected GUIFont,MediaPortal.GUI.Library _font2 | ||
return | MediaPortal.GUI.Library.GUIFont |
protected GUIFont,MediaPortal.GUI.Library _font3 | ||
return | MediaPortal.GUI.Library.GUIFont |
protected GUISpinControl,MediaPortal.GUI.Library _upDownControl | ||
return | MediaPortal.GUI.Library.GUISpinControl |