Kodi Development  20.0
for Binary and Script based Add-Ons

Inherits AddonCallback.

Inherited by WindowDialog, and WindowXML.

Public Member Functions

 addControl (...)
 

Function: addControl(Control)


Add a Control to this window. More...
 
 addControls (...)
 

Function: addControls(List)


Add a list of Controls to this window. More...
 
 clearProperties ()
 

Function: clearProperties()


Clears all window properties. More...
 
 clearProperty (...)
 

Function: clearProperty(key)


Clears the specific window property. More...
 
 close ()
 

Function: close()


Closes this window. More...
 
SWIGHIDDENVIRTUAL void dispose ()
 
 doModal ()
 

Function: doModal()


Display this window until close() is called. More...
 
 getControl (...)
 

Function: getControl(controlId)


Gets the control from this window. More...
 
 getFocus ()
 

Function: getFocus(Control)


Returns the control which is focused. More...
 
 getFocusId ()
 

Function: getFocusId(int)


Returns the id of the control which is focused. More...
 
 getHeight ()
 

Function: getHeight()


Returns the height of this Window instance. More...
 
 getProperty (...)
 

Function: getProperty(key)


Returns a window property as a string, similar to an infolabel. More...
 
 getWidth ()
 

Function: getWidth()


Returns the width of this Window instance. More...
 
void interceptorClear ()
 
SWIGHIDDENVIRTUAL bool IsDialog () const
 
SWIGHIDDENVIRTUAL bool IsDialogRunning () const
 
SWIGHIDDENVIRTUAL bool IsMediaWindow () const
 
SWIGHIDDENVIRTUAL bool IsModalDialog () const
 
 onAction (...)
 

Function: onAction(self, Action action)


onAction method. More...
 
SWIGHIDDENVIRTUAL bool OnAction (const CAction &action)
 
SWIGHIDDENVIRTUAL bool OnBack (int actionId)
 
 onClick (...)
 

Function: onClick(self, int controlId)


onClick method. More...
 
void onControl (...)
 

Function: onControl(self, Control)


onControl method. More...
 
SWIGHIDDENVIRTUAL void OnDeinitWindow (int nextWindowID)
 
 onDoubleClick (...)
 

Function: onDoubleClick(self, int controlId)


onDoubleClick method. More...
 
 onFocus (...)
 

Function: onFocus(self, int controlId)


onFocus method. More...
 
 onInit (...)
 

Function: onInit(self)


onInit method. More...
 
SWIGHIDDENVIRTUAL bool OnMessage (CGUIMessage &message)
 
 removeControl (...)
 

Function: removeControl(Control)


Removes the control from this window. More...
 
 removeControls (...)
 

Function: removeControls(List)


Removes a list of controls from this window. More...
 
 setFocus (...)
 

Function: setFocus(Control)


Give the supplied control focus. More...
 
 setFocusId (...)
 

Function: setFocusId(ControlId)


Gives the control with the supplied focus. More...
 
 setProperty (...)
 

Function: setProperty(key, value)


Sets a window property, similar to an infolabel. More...
 
 show ()
 

Function: show()


Show this window. More...
 
 Window (int existingWindowId=-1)
 

Protected Member Functions

void deallocating () override
 
ControlGetControlById (int iControlId, CCriticalSection *gc)
 
void popActiveWindowId ()
 
SWIGHIDDENVIRTUAL void PulseActionEvent ()
 
void setWindow (InterceptorBase *_window)
 
SWIGHIDDENVIRTUAL bool WaitForActionEvent (unsigned int milliseconds)
 
 Window (bool discrim)
 

Static Protected Member Functions

static int getNextAvailableWindowId ()
 

Protected Attributes

bool bModal = false
 
bool canPulse = false
 
bool destroyAfterDeInit = false
 
bool existingWindow = true
 
int iCurrentControlId = 3000
 
int iOldWindowId = 0
 
int iWindowId = -1
 
CEvent m_actionEvent
 
std::vector< AddonClass::Ref< Control > > vecControls
 
InterceptorBase * window
 

Friends

class WindowDialogMixin
 

Constructor & Destructor Documentation

◆ Window()

Window ( bool  discrim)
explicitprotected

This only takes a boolean to allow subclasses to explicitly use it. A default constructor can be used as a concrete class and we need to tell the difference. subclasses should use this constructor and not the other.

Member Function Documentation

◆ getNextAvailableWindowId()

static int getNextAvailableWindowId ( )
staticprotected

This helper retrieves the next available id. It is assumed that the global lock is already being held.

◆ setWindow()

void setWindow ( InterceptorBase *  _window)
protected

Child classes MUST call this in their constructors. It should be an instance of Interceptor<P extends CGUIWindow>. Control of memory management for this class is then given to the Window.

◆ popActiveWindowId()

void popActiveWindowId ( )
protected

This is a helper method since popping the previous window id is a common function.

◆ GetControlById()

Control* GetControlById ( int  iControlId,
CCriticalSection *  gc 
)
protected

This is a helper method since getting a control by it's id is a common function.

◆ interceptorClear()

void interceptorClear ( )
inline

This is called from the InterceptorBase destructor to prevent further use of the interceptor from the window.


The documentation for this class was generated from the following file: