C# Class MediaPortal.GUI.Library.GUIThumbnailPanel

Inheritance: GUIControl
Show file Open project: MediaPortal/MediaPortal-1

Protected Properties

Property Type Description
_allThumbAnimations List
_brackedText string
_enableSMSsearch bool
_frameFocusControl GUIAnimation
_frameNoFocusControl GUIAnimation
_lastCommandTime double
_lastSearchItem int
_listButtons List
_listLabels List
_loopDelay int
_lowItemHeight int
_lowItemWidth int
_lowTextureHeight int
_lowTextureWidth int
_scrollContinuously bool
_scrollOffset double
_scrollText string
_searchString string
_timeElapsed double
_verticalScrollBar MediaPortal.GUI.Library.GUIVerticalScrollbar

Public Methods

Method Description
Add ( GUIListItem item ) : void
AllocResources ( ) : void
Clear ( ) : void
Dispose ( ) : void
FinalizeConstruction ( ) : void
GUIThumbnailPanel ( int dwParentID ) : System
GUIThumbnailPanel ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strImageIcon, string strImageIconFocus, int dwitemWidth, int dwitemHeight, 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 strScrollbarBackground, string strScrollbarTop, string strScrollbarBottom, int dwShadowAngle, int dwShadowDistance, long dwShadowColor ) : System
GetSelectedItem ( string &strLabel, string &strLabel2, string &strThumbnail, string &strIndex ) : int
GetThumbDimensions ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
GetThumbDimensionsBig ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
GetThumbDimensionsLow ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
HitTest ( int x, int y, int &controlID, bool &focused ) : bool
Insert ( int index, GUIListItem item ) : void
MoveItemDown ( int iItem ) : int
MoveItemUp ( int iItem ) : int
NeedRefresh ( ) : bool
OnAction ( Action action ) : void
OnMessage ( GUIMessage message ) : bool
PreAllocResources ( ) : void
RemoveItem ( int iItem ) : int
Render ( float timePassed ) : void
Replace ( int index, GUIListItem item ) : void
ScaleToScreenResolution ( ) : void
SetNeedRefresh ( ) : void
SetTextureDimensions ( int iWidth, int iHeight ) : void
SetThumbDimensions ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
SetThumbDimensionsBig ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
SetThumbDimensionsLow ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
ShowBigIcons ( bool bOnOff ) : void
Sort ( IComparer comparer ) : void
this ( int index ) : GUIListItem

Protected Methods

Method Description
CalculatePages ( int item ) : int
CalculateRows ( int item ) : int
OnSelectionChanged ( ) : void
ScrollItems ( int itemInc ) : void

Private Methods

Method Description
Calculate ( ) : void
CheckTimer ( ) : void
OnDown ( ) : void
OnLeft ( ) : void
OnPageDown ( ) : void
OnPageUp ( ) : void
OnRight ( ) : void
OnUp ( ) : void
Press ( char Key ) : void

Handle keypress events for SMS style search (key '1'..'9')

RenderItem ( float timePassed, int iButton, bool bFocus, int dwPosX, int dwPosY, GUIListItem pItem, bool buttonOnly ) : void
RenderScrollbar ( float timePassed, int y ) : void
SearchItem ( string SearchKey, SearchType iSearchMethode ) : void

Search for first item starting with searchkey

SelectItem ( int iItem ) : void
SetDownFocus ( Action action, int offsetDecrease ) : void
ValidItem ( int iX, int iY ) : bool

Method Details

Add() public method

public Add ( GUIListItem item ) : void
item GUIListItem
return void

AllocResources() public method

public AllocResources ( ) : void
return void

CalculatePages() protected method

protected CalculatePages ( int item ) : int
item int
return int

CalculateRows() protected method

protected CalculateRows ( int item ) : int
item int
return int

Clear() public method

public Clear ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

FinalizeConstruction() public method

public FinalizeConstruction ( ) : void
return void

GUIThumbnailPanel() public method

public GUIThumbnailPanel ( int dwParentID ) : System
dwParentID int
return System

GUIThumbnailPanel() public method

public GUIThumbnailPanel ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strImageIcon, string strImageIconFocus, int dwitemWidth, int dwitemHeight, 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 strScrollbarBackground, string strScrollbarTop, string strScrollbarBottom, int dwShadowAngle, int dwShadowDistance, long dwShadowColor ) : System
dwParentID int
dwControlId int
dwPosX int
dwPosY int
dwWidth int
dwHeight int
strImageIcon string
strImageIconFocus string
dwitemWidth int
dwitemHeight int
dwSpinWidth int
dwSpinHeight int
strUp string
strDown string
strUpFocus string
strDownFocus string
dwSpinColor long
dwSpinX int
dwSpinY int
strFont string
dwTextColor long
dwSelectedColor long
strScrollbarBackground string
strScrollbarTop string
strScrollbarBottom string
dwShadowAngle int
dwShadowDistance int
dwShadowColor long
return System

GetSelectedItem() public method

public GetSelectedItem ( string &strLabel, string &strLabel2, string &strThumbnail, string &strIndex ) : int
strLabel string
strLabel2 string
strThumbnail string
strIndex string
return int

GetThumbDimensions() public method

public GetThumbDimensions ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

GetThumbDimensionsBig() public method

public GetThumbDimensionsBig ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

GetThumbDimensionsLow() public method

public GetThumbDimensionsLow ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

HitTest() public method

public HitTest ( int x, int y, int &controlID, bool &focused ) : bool
x int
y int
controlID int
focused bool
return bool

Insert() public method

public Insert ( int index, GUIListItem item ) : void
index int
item GUIListItem
return void

MoveItemDown() public method

public MoveItemDown ( int iItem ) : int
iItem int
return int

MoveItemUp() public method

public MoveItemUp ( int iItem ) : int
iItem int
return int

NeedRefresh() public method

public NeedRefresh ( ) : bool
return bool

OnAction() public method

public OnAction ( Action action ) : void
action Action
return void

OnMessage() public method

public OnMessage ( GUIMessage message ) : bool
message GUIMessage
return bool

OnSelectionChanged() protected method

protected OnSelectionChanged ( ) : void
return void

PreAllocResources() public method

public PreAllocResources ( ) : void
return void

RemoveItem() public method

public RemoveItem ( int iItem ) : int
iItem int
return int

Render() public method

public Render ( float timePassed ) : void
timePassed float
return void

Replace() public method

public Replace ( int index, GUIListItem item ) : void
index int
item GUIListItem
return void

ScaleToScreenResolution() public method

public ScaleToScreenResolution ( ) : void
return void

ScrollItems() protected method

protected ScrollItems ( int itemInc ) : void
itemInc int
return void

SetNeedRefresh() public method

public SetNeedRefresh ( ) : void
return void

SetTextureDimensions() public method

public SetTextureDimensions ( int iWidth, int iHeight ) : void
iWidth int
iHeight int
return void

SetThumbDimensions() public method

public SetThumbDimensions ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

SetThumbDimensionsBig() public method

public SetThumbDimensionsBig ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

SetThumbDimensionsLow() public method

public SetThumbDimensionsLow ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

ShowBigIcons() public method

public ShowBigIcons ( bool bOnOff ) : void
bOnOff bool
return void

Sort() public method

public Sort ( IComparer comparer ) : void
comparer IComparer
return void

this() public method

public this ( int index ) : GUIListItem
index int
return GUIListItem

Property Details

_allThumbAnimations protected property

protected List _allThumbAnimations
return List

_brackedText protected property

protected string _brackedText
return string

_enableSMSsearch protected property

protected bool _enableSMSsearch
return bool

_frameFocusControl protected property

protected GUIAnimation,MediaPortal.GUI.Library _frameFocusControl
return GUIAnimation

_frameNoFocusControl protected property

protected GUIAnimation,MediaPortal.GUI.Library _frameNoFocusControl
return GUIAnimation

_lastCommandTime protected property

protected double _lastCommandTime
return double

_lastSearchItem protected property

protected int _lastSearchItem
return int

_listButtons protected property

protected List _listButtons
return List

_listLabels protected property

protected List _listLabels
return List

_loopDelay protected property

protected int _loopDelay
return int

_lowItemHeight protected property

protected int _lowItemHeight
return int

_lowItemWidth protected property

protected int _lowItemWidth
return int

_lowTextureHeight protected property

protected int _lowTextureHeight
return int

_lowTextureWidth protected property

protected int _lowTextureWidth
return int

_scrollContinuously protected property

protected bool _scrollContinuously
return bool

_scrollOffset protected property

protected double _scrollOffset
return double

_scrollText protected property

protected string _scrollText
return string

_searchString protected property

protected string _searchString
return string

_timeElapsed protected property

protected double _timeElapsed
return double

_verticalScrollBar protected property

protected GUIVerticalScrollbar,MediaPortal.GUI.Library _verticalScrollBar
return MediaPortal.GUI.Library.GUIVerticalScrollbar