Mana
Loading...
Searching...
No Matches
src
gui
textpopup.h
Go to the documentation of this file.
1
/*
2
* The Mana World
3
* Copyright (C) 2008 The Legend of Mazzeroth Development Team
4
* Copyright (C) 2008-2009 The Mana World Development Team
5
* Copyright (C) 2009-2012 The Mana Developers
6
*
7
* This file is part of The Mana World.
8
*
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
*/
23
24
#pragma once
25
26
#include "
gui/widgets/popup.h
"
27
28
#include <guichan/mouselistener.hpp>
29
30
class
TextBox
;
31
35
class
TextPopup
:
public
Popup
36
{
37
public
:
38
TextPopup
();
39
43
void
show
(
int
x,
int
y,
44
const
std::string &str1,
45
const
std::string &str2 = std::string());
46
47
void
mouseMoved
(gcn::MouseEvent &mouseEvent)
override
;
48
49
private
:
50
gcn::Label *
mText1
;
51
gcn::Label *
mText2
;
52
};
Popup
A light version of the Window class.
Definition
popup.h:48
TextBox
A text box, meant to be used inside a scroll area.
Definition
textbox.h:36
TextPopup
A popup that displays information about an item.
Definition
textpopup.h:36
TextPopup::show
void show(int x, int y, const std::string &str1, const std::string &str2=std::string())
Sets the text to be displayed.
Definition
textpopup.cpp:54
TextPopup::mText2
gcn::Label * mText2
Definition
textpopup.h:51
TextPopup::mText1
gcn::Label * mText1
Definition
textpopup.h:50
TextPopup::mouseMoved
void mouseMoved(gcn::MouseEvent &mouseEvent) override
Definition
textpopup.cpp:85
TextPopup::TextPopup
TextPopup()
Definition
textpopup.cpp:35
popup.h
Generated by
1.9.8