CComponentsPicture: move SetTransparent() to public

This commit is contained in:
2016-01-04 22:40:57 +01:00
committed by svenhoefer
parent eec34222ea
commit c11ea8f50b

View File

@@ -93,10 +93,6 @@ class CComponentsPicture : public CComponentsItem
///paint image
void paintPicture();
// t = CFrameBuffer::TM_BLACK : Transparency when black content ('pseudo' transparency)
// t = CFrameBuffer::TM_NONE : No 'pseudo' transparency
void SetTransparent(int t){ image_transparent = t; }
public:
/*!
Constructor for image objects: use this for scaled images.
@@ -160,6 +156,13 @@ class CComponentsPicture : public CComponentsItem
///return paint mode of internal image, true=image was painted, please do not to confuse with isPainted()! isPainted() is related to item itself.
virtual inline bool isPicPainted(){return is_image_painted;};
/**sets transparency mode if icons
* @param[in] t Transparency mode
* @li t = CFrameBuffer::TM_BLACK : Transparency when black content ('pseudo' transparency)
* @li t = CFrameBuffer::TM_NONE : No 'pseudo' transparency
*/
void SetTransparent(int t){ image_transparent = t; }
///paint item
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
///hide item, see also CComponents::hide();