gui/pipsetup.cpp: add simple PiP size/position setup

This commit is contained in:
[CST] Focus
2013-02-26 17:21:03 +04:00
parent ba25c9ed0f
commit 6c5e34688a
3 changed files with 249 additions and 0 deletions

29
src/gui/pipsetup.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef __PIP_SETUP_H_
#define __PIP_SETUP_H_
#include <gui/widget/menue.h>
#include <driver/framebuffer.h>
#include <string>
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;
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