From 1baf22ad58cc1a9aa9089ca9a09fc80a453cb3c9 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Wed, 9 Dec 2020 16:12:53 +0000 Subject: gui: receive msg from server to chat and move it --- src/client/gui/OO_FLTK.hpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/client/gui/OO_FLTK.hpp') 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 #include #include -#include +#include -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(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() {} -- cgit v1.2.3-18-g5258