Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <GUIWindowHome.h>
Public Member Functions | |
CGUIWindowHome (void) | |
~CGUIWindowHome (void) override | |
void | OnInitWindow () override |
Called on window open. | |
void | Announce (ANNOUNCEMENT::AnnouncementFlag flag, const std::string &sender, const std::string &message, const CVariant &data) override |
bool | OnMessage (CGUIMessage &message) override |
bool | OnAction (const CAction &action) override |
void | OnJobComplete (unsigned int jobID, bool success, CJob *job) override |
The callback used when a job completes. | |
Public Member Functions inherited from CGUIWindow | |
CGUIWindow (int id, const std::string &xmlFile) | |
~CGUIWindow (void) override | |
bool | Initialize () |
bool | Load (const std::string &strFileName, bool bContainsPath=false) |
void | CenterWindow () |
void | DoProcess (unsigned int currentTime, CDirtyRegionList &dirtyregions) override |
void | DoRender () override |
Main render function, called every frame. Window classes should override this only if they need to alter how something is rendered. General updating on a per-frame basis should be handled in FrameMove instead, as DoRender is not necessarily re-entrant. | |
void | AfterRender () |
Do any post render activities. Check if window closing animation is finished and finalize window closing. | |
virtual void | FrameMove () |
Main update function, called every frame prior to rendering Any window that requires updating on a frame by frame basis (such as to maintain timers and the like) should override this function. | |
void | Close (bool forceClose=false, int nextWindowID=0, bool enableSound=true, bool bWait=true) |
virtual bool | OnBack (int actionID) |
virtual bool | OnInfo (int actionID) |
virtual void | ClearBackground () |
Clear the background (if necessary) prior to rendering the window. | |
bool | OnMove (int fromControl, int moveAction) |
bool | ControlGroupHasFocus (int groupID, int controlID) |
void | SetID (int id) override |
virtual bool | HasID (int controlID) const |
const std::vector< int > & | GetIDRange () const |
int | GetPreviousWindow () |
CRect | GetScaledBounds () const |
void | ClearAll () override |
virtual void | AllocResources (bool forceLoad=false) |
void | FreeResources (bool forceUnLoad=false) override |
void | DynamicResourceAlloc (bool bOnOff) override |
virtual bool | IsDialog () const |
virtual bool | IsDialogRunning () const |
virtual bool | IsModalDialog () const |
virtual bool | IsMediaWindow () const |
virtual bool | HasListItems () const |
virtual bool | IsSoundEnabled () const |
virtual CFileItemPtr | GetCurrentListItem (int offset=0) |
virtual int | GetViewContainerID () const |
virtual int | GetViewCount () const |
virtual bool | CanBeActivated () const |
virtual bool | IsActive () const |
void | SetCoordsRes (const RESOLUTION_INFO &res) |
const RESOLUTION_INFO & | GetCoordsRes () const |
void | SetLoadType (LOAD_TYPE loadType) |
LOAD_TYPE | GetLoadType () |
int | GetRenderOrder () |
void | SetInitialVisibility () override |
bool | IsVisible () const override |
virtual bool | HasVisibleControls () |
bool | IsAnimating (ANIMATION_TYPE animType) override |
bool | IsCustom () const |
Return if the window is a custom window. | |
void | SetCustom (bool custom) |
Mark this window as custom window. | |
void | DisableAnimations () |
virtual void | ResetControlStates () |
void | UpdateControlStats () override |
void | SetRunActionsManually () |
void | RunLoadActions () const |
void | RunUnloadActions () const |
void | SetProperty (const std::string &key, const CVariant &value) |
Set a property Sets the value of a property referenced by a key. | |
CVariant | GetProperty (const std::string &key) const |
Retrieve a property. | |
void | ClearProperties () |
Clear a all the window's properties. | |
bool | HasSaveLastControl () const |
virtual void | OnDeinitWindow (int nextWindowID) |
void | AllocResources () override |
Public Member Functions inherited from CGUIControlGroup | |
CGUIControlGroup () | |
CGUIControlGroup (int parentID, int controlID, float posX, float posY, float width, float height) | |
CGUIControlGroup (const CGUIControlGroup &from) | |
~CGUIControlGroup (void) override | |
CGUIControlGroup * | Clone () const override |
void | Process (unsigned int currentTime, CDirtyRegionList &dirtyregions) override |
void | Render () override |
void | RenderEx () override |
virtual bool | SendControlMessage (CGUIMessage &message) |
bool | HasFocus () const override |
bool | CanFocus () const override |
void | AssignDepth () override |
EVENT_RESULT | SendMouseEvent (const CPoint &point, const KODI::MOUSE::CMouseEvent &event) override |
React to a mouse event. | |
void | UnfocusFromPoint (const CPoint &point) override |
Unfocus the control if the given point on screen is not within it's boundary. | |
bool | HasAnimation (ANIMATION_TYPE anim) override |
void | QueueAnimation (ANIMATION_TYPE anim) override |
void | ResetAnimation (ANIMATION_TYPE anim) override |
void | ResetAnimations () override |
int | GetFocusedControlID () const |
CGUIControl * | GetFocusedControl () const |
virtual CGUIControl * | GetFirstFocusableControl (int id) |
virtual void | AddControl (CGUIControl *control, int position=-1) |
bool | InsertControl (CGUIControl *control, const CGUIControl *insertPoint) |
virtual bool | RemoveControl (const CGUIControl *control) |
void | SetDefaultControl (int id, bool always) |
void | SetRenderFocusedLast (bool renderLast) |
void | SaveStates (std::vector< CControlState > &states) override |
bool | IsGroup () const override |
Public Member Functions inherited from CGUIControlLookup | |
CGUIControlLookup ()=default | |
CGUIControlLookup (int parentID, int controlID, float posX, float posY, float width, float height) | |
CGUIControlLookup (const CGUIControlLookup &from) | |
~CGUIControlLookup (void) override=default | |
CGUIControl * | GetControl (int id, std::vector< CGUIControl * > *idCollector=nullptr) override |
Public Member Functions inherited from CGUIControl | |
CGUIControl () | |
CGUIControl (int parentID, int controlID, float posX, float posY, float width, float height) | |
CGUIControl (const CGUIControl &) | |
virtual | ~CGUIControl (void) |
bool | HasProcessed () const |
Returns whether or not we have processed. | |
virtual void | OnUp () |
virtual void | OnDown () |
virtual void | OnLeft () |
virtual void | OnRight () |
virtual bool | OnBack () |
virtual bool | OnInfo () |
virtual void | OnNextControl () |
virtual void | OnPrevControl () |
virtual void | OnFocus () |
virtual void | OnUnFocus () |
virtual bool | HitTest (const CPoint &point) const |
Used to test whether the point is inside a control. | |
virtual int | GetID (void) const |
int | GetParentID () const |
virtual bool | IsDynamicallyAllocated () |
bool | IsVisibleFromSkin () const |
virtual bool | IsDisabled () const |
virtual void | SetPosition (float posX, float posY) |
virtual void | SetHitRect (const CRect &rect, const KODI::UTILS::COLOR::Color &color) |
virtual void | SetCamera (const CPoint &camera) |
virtual void | SetStereoFactor (const float &factor) |
bool | SetColorDiffuse (const KODI::GUILIB::GUIINFO::CGUIInfoColor &color) |
CPoint | GetRenderPosition () const |
virtual float | GetXPosition () const |
virtual float | GetYPosition () const |
virtual float | GetWidth () const |
virtual float | GetHeight () const |
void | MarkDirtyRegion (const unsigned int dirtyState=DIRTY_STATE_CONTROL) |
bool | IsControlDirty () const |
const CRect & | GetRenderRegion () const |
return the render region in screen coordinates of this control | |
virtual CRect | CalcRenderRegion () const |
calculate the render region in parentcontrol coordinates of this control Called during process to update m_renderRegion | |
void | SetActions (const ActionMap &actions) |
void | SetAction (int actionID, const CGUIAction &action, bool replace=true) |
Set actions to perform on navigation Navigations are set if replace is true or if there is no previously set action. | |
CGUIAction | GetAction (int actionID) const |
Get an action the control can be perform. | |
bool | Navigate (int direction) const |
Start navigating in given direction. | |
virtual void | SetFocus (bool focus) |
virtual void | SetWidth (float width) |
virtual void | SetHeight (float height) |
virtual void | SetVisible (bool bVisible, bool setVisState=false) |
void | SetVisibleCondition (const std::string &expression, const std::string &allowHiddenFocus="") |
bool | HasVisibleCondition () const |
void | SetEnableCondition (const std::string &expression) |
virtual void | UpdateVisibility (const CGUIListItem *item) |
virtual void | SetEnabled (bool bEnable) |
virtual void | SetInvalid () |
virtual void | SetPulseOnSelect (bool pulse) |
virtual std::string | GetDescription () const |
virtual std::string | GetDescriptionByIndex (int index) const |
void | SetAnimations (const std::vector< CAnimation > &animations) |
const std::vector< CAnimation > & | GetAnimations () const |
CAnimation * | GetAnimation (ANIMATION_TYPE type, bool checkConditions=true) |
virtual void | UpdateInfo (const CGUIListItem *item=NULL) |
virtual void | SetPushUpdates (bool pushUpdates) |
virtual bool | IsContainer () const |
virtual bool | GetCondition (int condition, int data) const |
void | SetParentControl (CGUIControl *control) |
CGUIControl * | GetParentControl (void) const |
void | SetControlStats (GUICONTROLSTATS *controlStats) |
GUICONTROLTYPES | GetControlType () const |
bool | IsControlRenderable () |
Test whether the control is "drawable" (not a group or similar) | |
Public Member Functions inherited from ANNOUNCEMENT::IAnnouncer | |
IAnnouncer ()=default | |
virtual | ~IAnnouncer ()=default |
Public Member Functions inherited from IJobCallback | |
virtual | ~IJobCallback ()=default |
Destructor for job call back objects. | |
virtual void | OnJobAbort (unsigned int jobID, CJob *job) |
An optional callback function used when a job will be aborted. | |
virtual void | OnJobProgress (unsigned int jobID, unsigned int progress, unsigned int total, const CJob *job) |
An optional callback function that a job may call while processing. | |
CGUIWindowHome::CGUIWindowHome | ( | void | ) |
|
override |
|
overridevirtual |
Implements ANNOUNCEMENT::IAnnouncer.
Reimplemented from CGUIWindow.
Called on window open.
Reimplemented from CGUIWindow.
The callback used when a job completes.
OnJobComplete is called at the completion of the job's DoWork() function, and is used to return information to the caller on the result of the job. On returning form this function the CJobManager will destroy this job.
jobID | the unique id of the job (as retrieved from CJobManager::AddJob) |
success | the result from the DoWork call |
job | the job that has been processed. The job will be destroyed after this function returns |
we're done.
Implements IJobCallback.
|
overridevirtual |
Reimplemented from CGUIWindow.