Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Class: kodi::gui::controls::CImage

Window control used to show an image.
The image control is used for displaying images in Kodi. You can choose the position, size, transparency and contents of the image to be displayed.

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

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

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

Function Documentation

◆ CImage()

CImage ( CWindow window,
int  controlId 
)
inline

Construct a new control.

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

◆ ~CImage()

~CImage ( )
overridedefault

Destructor.

◆ SetVisible()

void SetVisible ( bool  visible)
inline

Set the control on window to visible.

Parameters
[in]visibleIf true visible, otherwise hidden

◆ SetFileName()

void SetFileName ( const std::string &  filename,
bool  useCache = true 
)
inline

To set the filename used on image control.

Parameters
[in]filenameImage file to use
[in]useCacheTo define storage of image, default is in cache, if false becomes it loaded always on changes again

◆ SetColorDiffuse()

void SetColorDiffuse ( uint32_t  colorDiffuse)
inline

To set set the diffuse color on image.

Parameters
[in]colorDiffuseColor to use for diffuse