#ifndef __TASKBUTTON_H__ #define __TASKBUTTON_H__ #include #include class TaskButton : public Fl_Button { private: /* window ID this button handles */ Window xid; bool image_alloc; Atom net_wm_icon; void clear_image(void); public: TaskButton(int X, int Y, int W, int H, const char *l = 0); ~TaskButton(); 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); void update_image_from_xid(void); }; #endif