summaryrefslogtreecommitdiffstats
path: root/src/client/gui/OO_FLTK.hpp
blob: 2f52f9721cbf7fdf932cc58cb3929cf575222fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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() {}
};