mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
Add CComponentsInfoBox to CComponents
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5c862f76a9
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-07-17 (Tue, 17 Jul 2012)
Origin message was:
------------------
* Add CComponentsInfoBox to CComponents
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -34,6 +34,7 @@ class CComponents
|
||||
{
|
||||
protected:
|
||||
int x, y, height, width;
|
||||
fb_pixel_t *bg_buf;
|
||||
CFrameBuffer * frameBuffer;
|
||||
|
||||
|
||||
@@ -64,4 +65,22 @@ class CComponentsDetailLine : public CComponents
|
||||
void setYPosDown(const int& y_pos_down){y_down = y_pos_down;};
|
||||
};
|
||||
|
||||
class CComponentsInfoBox : public CComponents
|
||||
{
|
||||
private:
|
||||
int width, height, rad;
|
||||
fb_pixel_t col_frame, col_body, col_shadow;
|
||||
bool shadow, bg_saved;
|
||||
|
||||
public:
|
||||
CComponentsInfoBox( const int x_pos, const int y_pos, const int width_, const int height_, bool shadow_ = true,
|
||||
fb_pixel_t color1 = COL_MENUCONTENT_PLUS_6,
|
||||
fb_pixel_t color2 = COL_MENUCONTENTDARK_PLUS_0,
|
||||
fb_pixel_t color3 = COL_MENUCONTENTDARK_PLUS_0);
|
||||
|
||||
void paint(int rad_);
|
||||
void hide(bool full = false);
|
||||
void setColor(fb_pixel_t color1, fb_pixel_t color2, fb_pixel_t color3){col_frame = color1; col_body = color2; col_shadow = color3;};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user