mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
-cc_form_header: add max caption width
picked from: https://github.com/TangoCash/neutrino-mp-cst-next commit: 4ff6c9f89b194c5fffdc4ee4e4eb744829be975f Signed-off-by: Thilo Graf <dbt@novatux.de> review reqiured
This commit is contained in:
@@ -106,6 +106,8 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen
|
||||
int cch_icon_w;
|
||||
///property: internal width for clock object
|
||||
int cch_clock_w;
|
||||
///property: internal max width for text object
|
||||
int cch_text_max_w;
|
||||
///property: internal x-position for caption object
|
||||
int cch_text_x;
|
||||
///property: internal offset of context button icons within context button object
|
||||
@@ -191,6 +193,8 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen
|
||||
virtual Font* getCaptionFont(){return cch_font;}
|
||||
///set text color for caption
|
||||
virtual void setCaptionColor(fb_pixel_t text_color){cch_col_text = text_color;}
|
||||
///set max width for caption
|
||||
virtual void setCaptionMaxWidth(int max_width){cch_text_max_w = max_width;}
|
||||
|
||||
enum
|
||||
{
|
||||
|
Reference in New Issue
Block a user