ManaPlus
src
gui
popups
textboxpopup.h
Go to the documentation of this file.
1
/*
2
* The ManaPlus Client
3
* Copyright (C) 2008 The Legend of Mazzeroth Development Team
4
* Copyright (C) 2008-2009 The Mana World Development Team
5
* Copyright (C) 2009-2010 The Mana Developers
6
* Copyright (C) 2011-2019 The ManaPlus Developers
7
* Copyright (C) 2019-2021 Andrei Karas
8
*
9
* This file is part of The ManaPlus Client.
10
*
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* any later version.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License
22
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
*/
24
25
#ifndef GUI_POPUPS_TEXTBOXPOPUP_H
26
#define GUI_POPUPS_TEXTBOXPOPUP_H
27
28
#include "
gui/widgets/popup.h
"
29
30
class
TextBox
;
31
35
class
TextBoxPopup
final
:
public
Popup
36
{
37
public
:
41
TextBoxPopup
();
42
43
A_DELETE_COPY
(
TextBoxPopup
)
44
45
48
~TextBoxPopup
()
override
final
;
49
50
void
postInit
()
override
final
;
51
55
void
show
(
const
int
x
,
const
int
y
,
const
std::string &str);
56
57
void
mouseMoved
(
MouseEvent
&event)
override
final
;
58
59
private
:
60
TextBox
*
mTextBox
A_NONNULLPOINTER
;
61
};
62
63
extern
TextBoxPopup
*
textBoxPopup
;
64
65
#endif
// GUI_POPUPS_TEXTBOXPOPUP_H
MouseEvent
Definition:
mouseevent.h:81
Popup
Definition:
popup.h:52
TextBoxPopup
Definition:
textboxpopup.h:36
TextBoxPopup::TextBoxPopup
TextBoxPopup()
Definition:
textboxpopup.cpp:37
TextBoxPopup::show
void show(const int x, const int y, const std::string &str)
Definition:
textboxpopup.cpp:61
TextBoxPopup::~TextBoxPopup
~TextBoxPopup()
Definition:
textboxpopup.cpp:57
TextBoxPopup::mTextBox
TextBox * mTextBox
Definition:
textboxpopup.h:60
TextBoxPopup::mouseMoved
void mouseMoved(MouseEvent &event)
Definition:
textboxpopup.cpp:81
TextBoxPopup::postInit
void postInit()
Definition:
textboxpopup.cpp:43
TextBox
Definition:
textbox.h:89
y
y
Definition:
graphics_calcImageRect.hpp:73
x
x
Definition:
graphics_calcImageRect.hpp:73
A_NONNULLPOINTER
#define A_NONNULLPOINTER
Definition:
localconsts.h:266
final
#define final
Definition:
localconsts.h:46
A_DELETE_COPY
#define A_DELETE_COPY(func)
Definition:
localconsts.h:53
popup.h
textBoxPopup
TextBoxPopup * textBoxPopup
Definition:
textboxpopup.cpp:35
Generated on Wed Mar 17 2021 19:19:06 for ManaPlus by
1.9.1