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
32
33
34
35
36
37
|
#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_Output.H>
#define STD_FONT FL_COURIER
class Client;
class BoxBackground : public Fl_Box {
public:
BoxBackground(int x, int y, int w, int h,
const char *lb = 0, Fl_Color clr = FL_WHITE);
~BoxBackground() {}
};
class ChatInput : public Fl_Input {
public:
ChatInput(int x, int y, int w, int h,
const char *lb = 0, Client *user = 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_Output {
public:
ChatBaseOutput(int x, int y, int w, int h, const char *lb = 0);
~ChatBaseOutput() {}
};
#endif
|