|  | Kodi Docs 20.0
    Kodi is an open source media player and entertainment hub. | 
Class:  kodi::gui::controls::CRendering | Functions | |
| kodi::gui::controls::CRendering::CRendering (CWindow *window, int controlId) | |
| Construct a new control.  More... | |
| kodi::gui::controls::CRendering::~CRendering () override | |
| Destructor.  More... | |
| virtual bool | kodi::gui::controls::CRendering::Create (int x, int y, int w, int h, kodi::HardwareContext device) | 
| To create rendering control on Add-on.  More... | |
| virtual void | kodi::gui::controls::CRendering::Render () | 
| Render process call from Kodi.  More... | |
| virtual void | kodi::gui::controls::CRendering::Stop () | 
| Call from Kodi to stop rendering process.  More... | |
| virtual bool | kodi::gui::controls::CRendering::Dirty () | 
| Call from Kodi where add-on becomes asked about dirty rendering region.  More... | |
| void | kodi::gui::controls::CRendering::SetIndependentCallbacks (kodi::gui::ClientHandle cbhdl, bool(*CBCreate)(kodi::gui::ClientHandle cbhdl, int x, int y, int w, int h, kodi::HardwareContext device), void(*CBRender)(kodi::gui::ClientHandle cbhdl), void(*CBStop)(kodi::gui::ClientHandle cbhdl), bool(*CBDirty)(kodi::gui::ClientHandle cbhdl)) | 
| If the class is used independent (with "new CRendering") and not as parent (with "cCLASS_own : CRendering") from own must be the callback from Kodi to add-on overdriven with own functions!  More... | |
Class:  kodi::gui::controls::CRendering You have the control over them to render direct OpenGL or DirectX content to the screen set by the size of them.
Alternative can be the virtual functions from t his been ignored if the callbacks are defined by the CRendering_SetIndependentCallbacks function and class is used as single and not as a parent class.
It has the header #include <kodi/gui/controls/Rendering.h> be included to enjoy it.
Here you find the needed skin part for a rendering control.
| 
 | inlinevirtual | 
To create rendering control on Add-on.
Function creates the needed rendering control for Kodi which becomes handled and processed from Add-on
| [in] | x | Horizontal position | 
| [in] | y | Vertical position | 
| [in] | w | Width of control | 
| [in] | h | Height of control | 
| [in] | device | The device to use. For OpenGL is empty on Direct X is the needed device send. | 
static_cast<...>(...). Construct a new control.
| [in] | window | Related window control class | 
| [in] | controlId | Used skin xml control id | 
| 
 | inlinevirtual | 
Call from Kodi where add-on becomes asked about dirty rendering region.
Render process call from Kodi.
| 
 | inline | 
If the class is used independent (with "new CRendering") and not as parent (with "cCLASS_own : CRendering") from own must be the callback from Kodi to add-on overdriven with own functions!
| [in] | cbhdl | Addon related class point where becomes given as value on related functions. | 
| [in] | CBCreate | External creation function pointer, see also Create about related values | 
| [in] | CBRender | External render function pointer, see also Render about related values | 
| [in] | CBStop | External stop function pointer, see also Stop about related values | 
| [in] | CBDirty | External dirty function pointer, see also Dirty about related values | 
| 
 | inlinevirtual | 
Call from Kodi to stop rendering process.
| 
 | inlineoverride | 
Destructor.