Merge branch '138-toggle-free-look-with-hotkey' into main/gingo-test
[ryzomcore.git] / ryzom / client / src / interfaces_manager / chat_input.h
blobf8de47647aec4382843412e581c7d9e2bc9ff74a
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef NL_CHAT_INPUT_H
20 #define NL_CHAT_INPUT_H
22 #include "nel/misc/types_nl.h"
23 #include "capture.h"
26 /**
27 * CChatInput class which manage the text input for chat boxes
28 * \author David Fleury
29 * \author Nevrax France
30 * \date 2001
32 class CChatInput : public CCapture
34 public:
35 /// default Constructor
36 CChatInput(uint id);
38 ///Constructor
39 CChatInput(uint id, float x, float y, float x_pixel, float y_pixel, float w, float h, float w_pixel, float h_pixel, uint numFunc, const CPen &pen);
40 CChatInput(uint id, float x, float y, float x_pixel, float y_pixel, float w, float h, float w_pixel, float h_pixel, uint numFunc, uint32 fontSize, CRGBA color, bool shadow);
42 /// Destructor.
43 ~CChatInput();
45 /// do like a 'RETURN' keypressed : force the analysis of the line and send the message/execute the command
46 void execute();
48 private:
49 /// Initialize the control (1 function called for all constructors -> easier).
50 inline void init();
51 /// callback
52 virtual void operator () (const CEvent& event);
56 #endif // NL_CHAT_INPUT_H
58 /* End of chat_input.h */