summaryrefslogtreecommitdiffstats
path: root/src/client/gui/OO_FLTK.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/gui/OO_FLTK.hpp')
-rw-r--r--src/client/gui/OO_FLTK.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/client/gui/OO_FLTK.hpp b/src/client/gui/OO_FLTK.hpp
new file mode 100644
index 0000000..2f52f97
--- /dev/null
+++ b/src/client/gui/OO_FLTK.hpp
@@ -0,0 +1,26 @@
+#include <FL/Fl.H>
+#include <FL/Fl_Box.H>
+#include <FL/Fl_Input.H>
+#include <FL/Fl_Multiline_Output.H>
+
+class BoxOutline : public Fl_Box {
+public:
+ BoxOutline(int x, int y, int w, int h, const char *lb = 0);
+ ~BoxOutline() {}
+};
+
+class ChatInput : public Fl_Input {
+public:
+ ChatInput(int x, int y, int w, int h, const char *lb = 0);
+ virtual ~ChatInput() {}
+ virtual void SendMessage(void *user);
+private:
+ static void CallbackFunction(Fl_Widget *w, void *user)
+ { static_cast<ChatInput*>(w)->SendMessage(user); }
+};
+
+class ChatBaseOutput : public Fl_Multiline_Output {
+public:
+ ChatBaseOutput(int x, int y, int w, int h, const char *lb = 0);
+ ~ChatBaseOutput() {}
+}; \ No newline at end of file