ede/ede-panel/Panel.h
2009-10-03 07:33:08 +00:00

37 lines
825 B
C++

#ifndef __PANEL_H__
#define __PANEL_H__
#include <edelib/Window.h>
#include "AppletManager.h"
#define EDE_PANEL_CAST_TO_PANEL(obj) ((Panel*)(obj))
#define EDE_PANEL_GET_PANEL_OBJECT (EDE_PANEL_CAST_TO_PANEL(parent()))
EDELIB_NS_USING_AS(Window, PanelWindow)
class Panel : public PanelWindow {
private:
Fl_Widget *clicked;
int sx, sy;
int screen_x, screen_y, screen_w, screen_h, screen_h_half;
bool can_move_widgets;
AppletManager mgr;
void do_layout(void);
public:
Panel() : PanelWindow(300, 30), clicked(0), sx(0), sy(0),
screen_x(0), screen_y(0), screen_w(0), screen_h(0), screen_h_half(0), can_move_widgets(false)
{ box(FL_UP_BOX); }
int handle(int e);
void show(void);
void load_applets(void);
int panel_w(void) { return w(); }
int panel_h(void) { return h(); }
};
#endif