mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
NotifyBox almost finished.
Atom initialization moved to one place. Added few ede specific atoms with implementation. Added sample test.
This commit is contained in:
@@ -15,29 +15,28 @@
|
||||
|
||||
#include <FL/Fl_Box.h>
|
||||
|
||||
#define TIMEOUT (1.0f/60.0f)
|
||||
#define TIME_SHOWN 3.0f
|
||||
|
||||
class NotifyBox : public Fl_Box {
|
||||
private:
|
||||
bool is_shown;
|
||||
bool in_animate;
|
||||
int state;
|
||||
int lwidth, lheight;
|
||||
int area_w, area_h;
|
||||
void update_label_size(void);
|
||||
|
||||
public:
|
||||
NotifyBox();
|
||||
NotifyBox(int aw, int ah);
|
||||
~NotifyBox();
|
||||
|
||||
virtual void show(void);
|
||||
virtual void hide(void);
|
||||
bool shown(void) { return is_shown; }
|
||||
|
||||
static void animate_show_cb(void* b) { ((NotifyBox*)b)->animate_show(); }
|
||||
void animate_show(void);
|
||||
const char* label(void);
|
||||
void label(const char* l);
|
||||
void copy_label(const char* l);
|
||||
|
||||
static void animate_hide_cb(void* b) { ((NotifyBox*)b)->animate_hide(); }
|
||||
void animate_hide(void);
|
||||
static void animate_cb(void* b) { ((NotifyBox*)b)->animate(); }
|
||||
void animate(void);
|
||||
|
||||
static void visible_timeout_cb(void* b) { ((NotifyBox*)b)->visible_timeout(); }
|
||||
void visible_timeout(void);
|
||||
|
||||
Reference in New Issue
Block a user