Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

Class: kodi::gui::controls::CProgress

Window control to show the progress of a particular operation
The progress control is used to show the progress of an item that may take a long time, or to show how far through a movie you are. More...

Functions

 kodi::gui::controls::CProgress::CProgress (CWindow *window, int controlId)
 Construct a new control.
 
 kodi::gui::controls::CProgress::~CProgress () override=default
 Destructor.
 
void kodi::gui::controls::CProgress::SetVisible (bool visible)
 Set the control on window to visible.
 
void kodi::gui::controls::CProgress::SetPercentage (float percent)
 To set Percent position of control.
 
float kodi::gui::controls::CProgress::GetPercentage () const
 Get the active percent position of progress bar.
 

Detailed Description

Class: kodi::gui::controls::CProgress

Window control to show the progress of a particular operation
The progress control is used to show the progress of an item that may take a long time, or to show how far through a movie you are.

You can choose the position, size, and look of the progress control.

It has the header #include <kodi/gui/controls/Progress.h> be included to enjoy it.

Here you find the needed skin part for a progress control.

Note
The call of the control is only possible from the corresponding window as its class and identification number is required.

Function Documentation

◆ CProgress()

kodi::gui::controls::CProgress::CProgress ( CWindow * window,
int controlId )
inline

Construct a new control.

Parameters
[in]windowRelated window control class
[in]controlIdUsed skin xml control id

◆ GetPercentage()

float kodi::gui::controls::CProgress::GetPercentage ( ) const
inline

Get the active percent position of progress bar.

Returns
Progress position as percent

◆ SetPercentage()

void kodi::gui::controls::CProgress::SetPercentage ( float percent)
inline

To set Percent position of control.

Parameters
[in]percentThe percent position to use

◆ SetVisible()

void kodi::gui::controls::CProgress::SetVisible ( bool visible)
inline

Set the control on window to visible.

Parameters
[in]visibleIf true visible, otherwise hidden

◆ ~CProgress()

kodi::gui::controls::CProgress::~CProgress ( )
overridedefault

Destructor.