mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponents: move CComponentsText before Infobox
This commit is contained in:
@@ -216,6 +216,32 @@ class CComponentsPicture : public CComponentsItem
|
||||
|
||||
};
|
||||
|
||||
class CComponentsText : public CComponentsItem
|
||||
{
|
||||
private:
|
||||
Font* ct_font;
|
||||
CBox * ct_box;
|
||||
CTextBox * ct_textbox;
|
||||
|
||||
const char* ct_text;
|
||||
int ct_text_mode; //see textbox.h for possible modes
|
||||
fb_pixel_t ct_col_text;
|
||||
bool ct_text_sended;
|
||||
|
||||
void initVarText();
|
||||
void initText();
|
||||
|
||||
public:
|
||||
CComponentsText();
|
||||
~CComponentsText();
|
||||
|
||||
inline void setText(const char* text, const int text_mode=~CTextBox::AUTO_WIDTH, Font* font_text=NULL){ct_text = text; ct_text_mode = text_mode, ct_font = font_text;};
|
||||
|
||||
void hide(bool no_restore = false);
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
void setTextFont(Font* font_text){ct_font = font_text;};
|
||||
};
|
||||
|
||||
#define INFO_BOX_Y_OFFSET 2
|
||||
class CComponentsInfoBox : public CComponentsItem
|
||||
{
|
||||
@@ -410,30 +436,6 @@ class CComponentsForm : public CComponentsItem
|
||||
void setIcon(const std::string& icon_name){tb_icon = icon_name;};
|
||||
};
|
||||
|
||||
class CComponentsText : public CComponentsItem
|
||||
{
|
||||
private:
|
||||
Font* ct_font;
|
||||
CBox * ct_box;
|
||||
CTextBox * ct_textbox;
|
||||
|
||||
const char* ct_text;
|
||||
int ct_text_mode; //see textbox.h for possible modes
|
||||
fb_pixel_t ct_col_text;
|
||||
bool ct_text_sended;
|
||||
|
||||
void initVarText();
|
||||
void initText();
|
||||
|
||||
public:
|
||||
CComponentsText();
|
||||
~CComponentsText();
|
||||
|
||||
inline void setText(const char* text, const int text_mode=~CTextBox::AUTO_WIDTH, Font* font_text=NULL){ct_text = text; ct_text_mode = text_mode, ct_font = font_text;};
|
||||
|
||||
void hide(bool no_restore = false);
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
void setTextFont(Font* font_text){ct_font = font_text;};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user