mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponents: add some new variables and parameters and modifie debug output
- add var for object index
can be usefull for identifications of objects for focus operations soon
- add default value for screen size (30%) to CComponentsPIP constructor
most size we mostly use is 30% of size
- add setters for screen_w and screen_h
also this can be usefull t adapt screen sizes e.g. during
runtime operations
Origin commit data
------------------
Branch: ni/coolstream
Commit: 399eb696d6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)
Origin message was:
------------------
CComponents: add some new variables and parameters and modifie debug output
- add var for object index
can be usefull for identifications of objects for focus operations soon
- add default value for screen size (30%) to CComponentsPIP constructor
most size we mostly use is 30% of size
- add setters for screen_w and screen_h
also this can be usefull t adapt screen sizes e.g. during
runtime operations
------------------
This commit was generated by Migit
This commit is contained in:
@@ -110,6 +110,7 @@ typedef struct comp_element_data_t
|
||||
#define CC_SAVE_SCREEN_YES true
|
||||
#define CC_SAVE_SCREEN_NO false
|
||||
|
||||
#define CC_NO_INDEX -1
|
||||
|
||||
class CComponents
|
||||
{
|
||||
@@ -173,6 +174,7 @@ class CComponentsItem : public CComponents
|
||||
{
|
||||
protected:
|
||||
int cc_item_type;
|
||||
int cc_item_index;
|
||||
|
||||
void hideCCItem(bool no_restore = false);
|
||||
void paintInit(bool do_save_bg);
|
||||
@@ -335,11 +337,13 @@ class CComponentsPIP : public CComponentsItem
|
||||
private:
|
||||
int screen_w, screen_h;
|
||||
public:
|
||||
CComponentsPIP( const int x_pos, const int y_pos, const int percent, bool has_shadow = CC_SHADOW_OFF);
|
||||
CComponentsPIP( const int x_pos, const int y_pos, const int percent = 30, bool has_shadow = CC_SHADOW_OFF);
|
||||
~CComponentsPIP();
|
||||
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
void hide(bool no_restore = false);
|
||||
void setScreenWidth(int screen_width){screen_w = screen_width;};
|
||||
void setScreenHeight(int screen_heigth){screen_h = screen_heigth;};
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user