C# Class MediaPortal.GUI.Library.GUIFilmstripControl

Inheritance: GUIControl
Afficher le fichier Open project: MediaPortal/MediaPortal-1

Protected Properties

Свойство Type Description
_allThumbAnimations List
_brackedText string
_enableSMSsearch bool
_frameControl List
_frameFocusControl List
_horizontalScrollbar MediaPortal.GUI.Library.GUIHorizontalScrollbar
_lastSearchItem int
_listLabels List
_scollText string
_scrollContinuously bool
_scrollOffset double
_searchString string
_timeElapsed double

Méthodes publiques

Méthode Description
Add ( GUIListItem item ) : void
AllocResources ( ) : void
Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void

Method to get animate the current control

Clear ( ) : void
Dispose ( ) : void
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..

GUIFilmstripControl ( int dwParentID ) : 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
NeedRefresh ( ) : bool
OnAction ( Action action ) : void
OnMessage ( GUIMessage message ) : bool
PreAllocResources ( ) : void

Preallocates the control its DirectX resources.

ReStorePosition ( ) : void

Method to restore the saved-current control rectangle

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

The render method. This method will draw the entire filmstrip

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
StorePosition ( ) : void

Method to store(save) the current control rectangle

this ( int index ) : GUIListItem

Méthodes protégées

Méthode Description
OnSelectionChanged ( ) : void

Method which is called if the user selected another item in the filmstrip This method will update the property manager with the properties of the newly selected item

Private Methods

Méthode Description
Calculate ( ) : void
CheckTimer ( ) : void
OnDown ( ) : void
OnLeft ( ) : void
OnPageDown ( ) : void
OnPageUp ( ) : void
OnRight ( ) : void
OnUp ( ) : bool
Press ( char Key ) : void

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

RenderItem ( int itemNumber, float timePassed, bool bFocus, int dwPosX, int dwPosY, GUIListItem pItem ) : void

Method to render a single item of the filmstrip

RenderScrollbar ( float timePassed ) : void
SearchItem ( string SearchKey, SearchType iSearchMethode ) : void

Search for first item starting with searchkey

SelectItemIndex ( int iItem ) : void
UpdateInfoImage ( ) : void
ValidItem ( int iX ) : bool

Method Details

Add() public méthode

public Add ( GUIListItem item ) : void
item GUIListItem
Résultat void

AllocResources() public méthode

public AllocResources ( ) : void
Résultat void

Animate() public méthode

Method to get animate the current control
public Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void
timePassed float
animator MediaPortal.GUI.Library.Animator
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FinalizeConstruction() public méthode

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..
public FinalizeConstruction ( ) : void
Résultat void

GUIFilmstripControl() public méthode

public GUIFilmstripControl ( int dwParentID ) : System
dwParentID int
Résultat System

GetSelectedItem() public méthode

public GetSelectedItem ( string &strLabel, string &strLabel2, string &strThumbnail, string &strIndex ) : int
strLabel string
strLabel2 string
strThumbnail string
strIndex string
Résultat int

GetThumbDimensions() public méthode

public GetThumbDimensions ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
Résultat void

GetThumbDimensionsBig() public méthode

public GetThumbDimensionsBig ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
Résultat void

GetThumbDimensionsLow() public méthode

public GetThumbDimensionsLow ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
Résultat void

HitTest() public méthode

public HitTest ( int x, int y, int &controlID, bool &focused ) : bool
x int
y int
controlID int
focused bool
Résultat bool

Insert() public méthode

public Insert ( int index, GUIListItem item ) : void
index int
item GUIListItem
Résultat void

NeedRefresh() public méthode

public NeedRefresh ( ) : bool
Résultat bool

OnAction() public méthode

public OnAction ( Action action ) : void
action Action
Résultat void

OnMessage() public méthode

public OnMessage ( GUIMessage message ) : bool
message GUIMessage
Résultat bool

OnSelectionChanged() protected méthode

Method which is called if the user selected another item in the filmstrip This method will update the property manager with the properties of the newly selected item
protected OnSelectionChanged ( ) : void
Résultat void

PreAllocResources() public méthode

Preallocates the control its DirectX resources.
public PreAllocResources ( ) : void
Résultat void

ReStorePosition() public méthode

Method to restore the saved-current control rectangle
public ReStorePosition ( ) : void
Résultat void

RemoveItem() public méthode

public RemoveItem ( int iItem ) : int
iItem int
Résultat int

Render() public méthode

The render method. This method will draw the entire filmstrip
public Render ( float timePassed ) : void
timePassed float
Résultat void

Replace() public méthode

public Replace ( int index, GUIListItem item ) : void
index int
item GUIListItem
Résultat void

ScaleToScreenResolution() public méthode

public ScaleToScreenResolution ( ) : void
Résultat void

SetNeedRefresh() public méthode

public SetNeedRefresh ( ) : void
Résultat void

SetTextureDimensions() public méthode

public SetTextureDimensions ( int iWidth, int iHeight ) : void
iWidth int
iHeight int
Résultat void

SetThumbDimensions() public méthode

public SetThumbDimensions ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
Résultat void

SetThumbDimensionsBig() public méthode

public SetThumbDimensionsBig ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
Résultat void

SetThumbDimensionsLow() public méthode

public SetThumbDimensionsLow ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
Résultat void

ShowBigIcons() public méthode

public ShowBigIcons ( bool bOnOff ) : void
bOnOff bool
Résultat void

Sort() public méthode

public Sort ( IComparer comparer ) : void
comparer IComparer
Résultat void

StorePosition() public méthode

Method to store(save) the current control rectangle
public StorePosition ( ) : void
Résultat void

this() public méthode

public this ( int index ) : GUIListItem
index int
Résultat GUIListItem

Property Details

_allThumbAnimations protected_oe property

protected List _allThumbAnimations
Résultat List

_brackedText protected_oe property

protected string _brackedText
Résultat string

_enableSMSsearch protected_oe property

protected bool _enableSMSsearch
Résultat bool

_frameControl protected_oe property

protected List _frameControl
Résultat List

_frameFocusControl protected_oe property

protected List _frameFocusControl
Résultat List

_horizontalScrollbar protected_oe property

protected GUIHorizontalScrollbar,MediaPortal.GUI.Library _horizontalScrollbar
Résultat MediaPortal.GUI.Library.GUIHorizontalScrollbar

_lastSearchItem protected_oe property

protected int _lastSearchItem
Résultat int

_listLabels protected_oe property

protected List _listLabels
Résultat List

_scollText protected_oe property

protected string _scollText
Résultat string

_scrollContinuously protected_oe property

protected bool _scrollContinuously
Résultat bool

_scrollOffset protected_oe property

protected double _scrollOffset
Résultat double

_searchString protected_oe property

protected string _searchString
Résultat string

_timeElapsed protected_oe property

protected double _timeElapsed
Résultat double