C# 클래스 MediaPortal.GUI.Library.GUIListControl

The implementation of a GUIListControl
상속: GUIControl
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

보호된 프로퍼티들

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

Private Properties

프로퍼티 타입 설명
CheckTimer void
Press void
SearchItem void
SelectItem void
SetLabel string
WordWrapText void
item_OnThumbnailRefresh void

공개 메소드들

메소드 설명
Add ( GUIListItem item ) : void
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, GUIListItem item ) : void
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 ( 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.

RemoveItem ( int iItem ) : int
Render ( float timePassed ) : void

Renders the control.

Replace ( int index, GUIListItem item ) : void
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 comparer ) : void

Sorts the list of items in this control.

this ( int index ) : GUIListItem

보호된 메소드들

메소드 설명
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, GUILabelControl label, bool bScroll ) : void

Renders the text.

RenderText ( float timePassed, int item, float fPosX, float fPosY, float fMaxWidth, long dwTextColor, string strTextToRender, bool bScroll ) : void

Renders the text.

비공개 메소드들

메소드 설명
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, GUIListItem item ) : string
WordWrapText ( string strText, int iMaxWidth, ArrayList &wrappedLines ) : void
item_OnThumbnailRefresh ( int buttonNr, bool gotFocus ) : void

메소드 상세

Add() 공개 메소드

public Add ( GUIListItem item ) : void
item GUIListItem
리턴 void

AllocButtons() 보호된 메소드

protected AllocButtons ( ) : void
리턴 void

AllocResources() 공개 메소드

Allocates the control its DirectX resources.
public AllocResources ( ) : void
리턴 void

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Dispose() 공개 메소드

Frees the control its DirectX resources.
public Dispose ( ) : void
리턴 void

FinalizeConstruction() 공개 최종 메소드

public final FinalizeConstruction ( ) : void
리턴 void

FreeUnusedThumbnails() 보호된 메소드

protected FreeUnusedThumbnails ( ) : void
리턴 void

GUIListControl() 공개 메소드

public GUIListControl ( int dwParentID ) : System
dwParentID int
리턴 System

GUIListControl() 공개 메소드

The constructor of the GUIListControl.
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.
리턴 System

GetSelectedItem() 공개 메소드

public GetSelectedItem ( string &strLabel, string &strLabel2, string &strThumb, string &strIndex ) : int
strLabel string
strLabel2 string
strThumb string
strIndex string
리턴 int

HitTest() 공개 메소드

Checks if the x and y coordinates correspond to the current control.
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

Insert() 공개 메소드

public Insert ( int index, GUIListItem item ) : void
index int
item GUIListItem
리턴 void

MoveItemDown() 공개 메소드

public MoveItemDown ( int iItem ) : int
iItem int
리턴 int

MoveItemUp() 공개 메소드

public MoveItemUp ( int iItem ) : int
iItem int
리턴 int

NeedRefresh() 공개 메소드

NeedRefresh() can be called to see if the control needs 2 redraw itself or not.
public NeedRefresh ( ) : bool
리턴 bool

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 ( Action action ) : void
action Action action : contains the action
리턴 void

OnDefaultAction() 보호된 메소드

protected OnDefaultAction ( Action action ) : void
action Action
리턴 void

OnDown() 보호된 메소드

Implementation of the OnDown action.
protected OnDown ( ) : void
리턴 void

OnLeft() 보호된 메소드

Implementation of the OnLeft action.
protected OnLeft ( ) : void
리턴 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

OnMouseClick() 보호된 메소드

protected OnMouseClick ( Action action ) : void
action Action
리턴 void

OnPageDown() 보호된 메소드

Implementation of the OnPageDown action.
protected OnPageDown ( ) : void
리턴 void

OnPageUp() 보호된 메소드

Implementation of the OnPageUp action.
protected OnPageUp ( ) : void
리턴 void

OnRight() 보호된 메소드

Implementation of the OnRight action.
protected OnRight ( ) : void
리턴 void

OnSelectionChanged() 보호된 메소드

protected OnSelectionChanged ( ) : void
리턴 void

OnUp() 보호된 메소드

Implementation of the OnUp action.
protected OnUp ( ) : void
리턴 void

PreAllocResources() 공개 메소드

Preallocates the control its DirectX resources.
public PreAllocResources ( ) : void
리턴 void

ReleaseButtons() 보호된 메소드

protected ReleaseButtons ( ) : void
리턴 void

RemoveItem() 공개 메소드

public RemoveItem ( int iItem ) : int
iItem int
리턴 int

Render() 공개 메소드

Renders the control.
public Render ( float timePassed ) : void
timePassed float
리턴 void

RenderButton() 보호된 메소드

protected RenderButton ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void
timePassed float
buttonNr int
x int
y int
gotFocus bool
리턴 void

RenderIcon() 보호된 메소드

protected RenderIcon ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void
timePassed float
buttonNr int
x int
y int
gotFocus bool
리턴 void

RenderLabel() 보호된 메소드

protected RenderLabel ( float timePassed, int buttonNumber, int positionX, int positionY, bool gotFocus ) : void
timePassed float
buttonNumber int
positionX int
positionY int
gotFocus bool
리턴 void

RenderPinIcon() 보호된 메소드

protected RenderPinIcon ( float timePassed, int buttonNr, int x, int y, bool gotFocus ) : void
timePassed float
buttonNr int
x int
y int
gotFocus bool
리턴 void

RenderProgressBar() 보호된 메소드

protected RenderProgressBar ( float timePassed, int progressBarNr, int x, int y, bool gotFocus ) : void
timePassed float
progressBarNr int
x int
y int
gotFocus bool
리턴 void

RenderScrollbar() 보호된 메소드

protected RenderScrollbar ( float timePassed ) : void
timePassed float
리턴 void

RenderText() 보호된 메소드

Renders the text.
protected RenderText ( float timePassed, int item, GUILabelControl label, bool bScroll ) : void
timePassed float
item int
label GUILabelControl The label to render
bScroll bool A bool indication if there is scrolling or not.
리턴 void

RenderText() 보호된 메소드

Renders the text.
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.
리턴 void

Replace() 공개 메소드

public Replace ( int index, GUIListItem item ) : void
index int
item GUIListItem
리턴 void

ScaleToScreenResolution() 공개 메소드

public ScaleToScreenResolution ( ) : void
리턴 void

ScrollToEnd() 공개 메소드

public ScrollToEnd ( ) : void
리턴 void

SetColors2() 공개 메소드

Set the colors of the second label.
public SetColors2 ( long dwTextColor, long dwSelectedColor ) : void
dwTextColor long
dwSelectedColor long
리턴 void

SetColors3() 공개 메소드

Set the colors of the second label.
public SetColors3 ( long dwTextColor, long dwSelectedColor ) : void
dwTextColor long
dwSelectedColor long
리턴 void

SetImageDimensions() 공개 메소드

Sets the dimension of the images of the items.
public SetImageDimensions ( int iWidth, int iHeight ) : void
iWidth int The width.
iHeight int The height.
리턴 void

SetNeedRefresh() 공개 메소드

public SetNeedRefresh ( ) : void
리턴 void

SetPageControlVisible() 공개 메소드

Set the visibility of the page control.
public SetPageControlVisible ( bool bVisible ) : void
bVisible bool true if visible false otherwise
리턴 void

SetTextOffsets() 공개 메소드

Sets the offsets of the text.
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.
리턴 void

Sort() 공개 메소드

Sorts the list of items in this control.
public Sort ( IComparer comparer ) : void
comparer IComparer The comparer on which the sort is based.
리턴 void

this() 공개 메소드

public this ( int index ) : GUIListItem
index int
리턴 GUIListItem

프로퍼티 상세

_brackedText 보호되어 있는 프로퍼티

protected string _brackedText
리턴 string

_cursorX 보호되어 있는 프로퍼티

protected int _cursorX
리턴 int

_drawFocus 보호되어 있는 프로퍼티

protected bool _drawFocus
리턴 bool

_enableSMSsearch 보호되어 있는 프로퍼티

protected bool _enableSMSsearch
리턴 bool

_enableScrollLabel 보호되어 있는 프로퍼티

protected bool _enableScrollLabel
리턴 bool

_font 보호되어 있는 프로퍼티

protected GUIFont,MediaPortal.GUI.Library _font
리턴 MediaPortal.GUI.Library.GUIFont

_font2 보호되어 있는 프로퍼티

protected GUIFont,MediaPortal.GUI.Library _font2
리턴 MediaPortal.GUI.Library.GUIFont

_font3 보호되어 있는 프로퍼티

protected GUIFont,MediaPortal.GUI.Library _font3
리턴 MediaPortal.GUI.Library.GUIFont

_itemsPerPage 보호되어 있는 프로퍼티

protected int _itemsPerPage
리턴 int

_labelControls1 보호되어 있는 프로퍼티

protected List _labelControls1
리턴 List

_labelControls2 보호되어 있는 프로퍼티

protected List _labelControls2
리턴 List

_labelControls3 보호되어 있는 프로퍼티

protected List _labelControls3
리턴 List

_lastCommandTime 보호되어 있는 프로퍼티

protected double _lastCommandTime
리턴 double

_lastItem 보호되어 있는 프로퍼티

protected int _lastItem
리턴 int

_lastItemPageValue 보호되어 있는 프로퍼티

protected int _lastItemPageValue
리턴 int

_lastSearchItem 보호되어 있는 프로퍼티

protected int _lastSearchItem
리턴 int

_listButtons 보호되어 있는 프로퍼티

protected List _listButtons
리턴 List

_listItems 보호되어 있는 프로퍼티

protected List _listItems
리턴 List

_listProgresses 보호되어 있는 프로퍼티

protected List _listProgresses
리턴 List

_listType 보호되어 있는 프로퍼티

protected ListType _listType
리턴 ListType

_loopDelay 보호되어 있는 프로퍼티

protected int _loopDelay
리턴 int

_offset 보호되어 있는 프로퍼티

protected int _offset
리턴 int

_refresh 보호되어 있는 프로퍼티

protected bool _refresh
리턴 bool

_scrollContinuously 보호되어 있는 프로퍼티

protected bool _scrollContinuously
리턴 bool

_scrollDirection 보호되어 있는 프로퍼티

protected string _scrollDirection
리턴 string

_scrollOffsetX 보호되어 있는 프로퍼티

protected double _scrollOffsetX
리턴 double

_scrollPosition 보호되어 있는 프로퍼티

protected int _scrollPosition
리턴 int

_scrollPosititionX 보호되어 있는 프로퍼티

protected int _scrollPosititionX
리턴 int

_searchString 보호되어 있는 프로퍼티

protected string _searchString
리턴 string

_textLine2 보호되어 있는 프로퍼티

protected string _textLine2
리턴 string

_timeElapsed 보호되어 있는 프로퍼티

protected double _timeElapsed
리턴 double

_upDownControl 보호되어 있는 프로퍼티

protected GUISpinControl,MediaPortal.GUI.Library _upDownControl
리턴 MediaPortal.GUI.Library.GUISpinControl

_upDownControlVisible 보호되어 있는 프로퍼티

protected bool _upDownControlVisible
리턴 bool

_verticalScrollbar 보호되어 있는 프로퍼티

protected GUIVerticalScrollbar,MediaPortal.GUI.Library _verticalScrollbar
리턴 MediaPortal.GUI.Library.GUIVerticalScrollbar