ede/ede-panel/applets/demo/AppletDemo.cpp
Sanel Zukan eb175fa89f Moving all class declarations to EDE_PANEL_APPLET_CLASS macro.
This change should make base applet code easier to modify without modifying applets itself. This is also
a starting point for implementation of better routing netwm messages to applets without adding specific listener
to each applet.
2012-05-28 10:57:50 +00:00

27 lines
403 B
C++

#include "Applet.h"
#include <FL/Fl_Button.H>
#include <FL/x.H>
#include <FL/Fl.H>
#include <stdio.h>
EDE_PANEL_APPLET_CLASS(MyButton, Fl_Button) {
public:
MyButton() : Fl_Button(0, 0, 90, 25, "xxx") {
color(FL_RED);
puts("MyButton::MyButton");
}
~MyButton() {
puts("MyButton::~MyButton");
}
};
EDE_PANEL_APPLET_EXPORT (
MyButton,
0,
"Panel button",
"0.1",
"empty",
"Sanel Zukan"
)