diff options
author | Joursoir <chat@joursoir.net> | 2020-12-09 16:12:53 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2020-12-09 16:12:53 +0000 |
commit | 1baf22ad58cc1a9aa9089ca9a09fc80a453cb3c9 (patch) | |
tree | 16bc9aa1391fb76a9f7d540485dc9b949799dbc9 /src/client/gui/OO_FLTK.hpp | |
parent | 27cd9aded215835ffde615153600476bf9be2473 (diff) | |
download | want-chat-1baf22ad58cc1a9aa9089ca9a09fc80a453cb3c9.tar.gz want-chat-1baf22ad58cc1a9aa9089ca9a09fc80a453cb3c9.tar.bz2 want-chat-1baf22ad58cc1a9aa9089ca9a09fc80a453cb3c9.zip |
gui: receive msg from server to chat and move it
Diffstat (limited to 'src/client/gui/OO_FLTK.hpp')
-rw-r--r-- | src/client/gui/OO_FLTK.hpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/client/gui/OO_FLTK.hpp b/src/client/gui/OO_FLTK.hpp index b581321..a2f7183 100644 --- a/src/client/gui/OO_FLTK.hpp +++ b/src/client/gui/OO_FLTK.hpp @@ -4,17 +4,23 @@ #include <FL/Fl.H> #include <FL/Fl_Box.H> #include <FL/Fl_Input.H> -#include <FL/Fl_Multiline_Output.H> +#include <FL/Fl_Output.H> -class BoxOutline : public Fl_Box { +#define STD_FONT FL_COURIER + +class Client; + +class BoxBackground : public Fl_Box { public: - BoxOutline(int x, int y, int w, int h, const char *lb = 0); - ~BoxOutline() {} + 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); + ChatInput(int x, int y, int w, int h, + const char *lb = 0, Client *user = 0); virtual ~ChatInput() {} virtual void SendMessage(void *user); private: @@ -22,7 +28,7 @@ private: { static_cast<ChatInput*>(w)->SendMessage(user); } }; -class ChatBaseOutput : public Fl_Multiline_Output { +class ChatBaseOutput : public Fl_Output { public: ChatBaseOutput(int x, int y, int w, int h, const char *lb = 0); ~ChatBaseOutput() {} |