CComponentsPicture: move SetTransparent() to public

Origin commit data
------------------
Commit: c11ea8f50b
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
This commit is contained in:
2016-01-04 22:40:57 +01:00
committed by vanhofen
parent 648f5dce05
commit eb44b190e3

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();