blob: b581321974efc79620463db2d5be58f43743e834 (
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
27
28
29
30
31
|
#ifndef WC_OOFLTK_H
#define WC_OOFLTK_H
#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() {}
};
#endif
|