2009-10-03 11:33:08 +04:00
|
|
|
#ifndef __TASKBUTTON_H__
|
|
|
|
#define __TASKBUTTON_H__
|
|
|
|
|
|
|
|
#include <FL/Fl_Button.H>
|
|
|
|
#include <FL/x.H>
|
|
|
|
|
|
|
|
class TaskButton : public Fl_Button {
|
|
|
|
private:
|
|
|
|
/* window ID this button handles */
|
|
|
|
Window xid;
|
2010-03-09 01:44:32 +03:00
|
|
|
Atom net_wm_icon;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
|
|
|
public:
|
|
|
|
TaskButton(int X, int Y, int W, int H, const char *l = 0);
|
|
|
|
|
|
|
|
void draw(void);
|
|
|
|
void display_menu(void);
|
|
|
|
|
|
|
|
void set_window_xid(Window win) { xid = win; }
|
|
|
|
Window get_window_xid(void) { return xid; }
|
|
|
|
|
|
|
|
void update_title_from_xid(void);
|
2010-03-09 01:44:32 +03:00
|
|
|
void update_image_from_xid(void);
|
2009-10-03 11:33:08 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|