mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
instead of including framebuffer.h almost everywhere, replace it with class CFrameBuffer forward declarations and/or generic system includes. Add a hack to define fb_pixel_t to config.h (one reason for framebuffer.h includes was the fb_pixel_t define)
32 lines
564 B
C++
32 lines
564 B
C++
#ifndef __PIP_SETUP_H_
|
|
#define __PIP_SETUP_H_
|
|
|
|
#include <gui/widget/menue.h>
|
|
#include <string>
|
|
|
|
class CFrameBuffer;
|
|
class CPipSetup : public CMenuTarget
|
|
{
|
|
private:
|
|
CFrameBuffer * frameBuffer;
|
|
int x_coord;
|
|
int y_coord;
|
|
int width;
|
|
int height;
|
|
int maxw;
|
|
int maxh;
|
|
int minw;
|
|
int minh;
|
|
|
|
int *gx, *gy, *gw, *gh;
|
|
void paint();
|
|
void hide();
|
|
void clear();
|
|
public:
|
|
CPipSetup();
|
|
void move(int x, int y, bool abs = false);
|
|
void resize(int w, int h, bool abs = false);
|
|
int exec(CMenuTarget* parent, const std::string & actionKey);
|
|
};
|
|
#endif
|