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.
◆ CImage()
Construct a new control.
- Parameters
-
[in] | window | Related window control class |
[in] | controlId | Used skin xml control id |
◆ ~CImage()
◆ SetVisible()
void SetVisible |
( |
bool | visible | ) |
|
|
inline |
Set the control on window to visible.
- Parameters
-
[in] | visible | If 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] | filename | Image file to use |
[in] | useCache | To 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] | colorDiffuse | Color to use for diffuse |