_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <popup.h>
Public Member Functions | |
| CPopupContentType () | |
| virtual | ~CPopupContentType () |
| virtual void | Draw (int x, int y, const CPopup &popup, const unsigned int popupWidth, const ButtonAction &button, int *Costs) const =0 |
| Tell how show the variable Index. More... | |
| virtual int | GetWidth (const ButtonAction &button, int *Costs) const =0 |
| Get the content's width. More... | |
| virtual int | GetHeight (const ButtonAction &button, int *Costs) const =0 |
| Get the content's height. More... | |
| virtual void | Parse (lua_State *l)=0 |
Static Public Member Functions | |
popup.cpp - The popup globals. | |
| static CPopupContentType * | ParsePopupContent (lua_State *l) |
Public Attributes | |
| PixelPos | pos |
| int | MarginX |
| position to draw. More... | |
| int | MarginY |
| Left and right margin width. More... | |
| PixelSize | minSize |
| Upper and lower margin height. More... | |
| bool | Wrap |
| Minimal size covered by content type. More... | |
| PopupConditionPanel * | Condition |
| Color used for highlighted letters. More... | |
Protected Attributes | |
| std::string | TextColor |
| If true, the next content will be placed on the next "line". More... | |
| std::string | HighlightColor |
| Color used for plain text in content. More... | |
|
inline |
|
inlinevirtual |
|
pure virtual |
Tell how show the variable Index.
Implemented in CPopupContentTypeVariable, CPopupContentTypeLine, CPopupContentTypeCosts, CPopupContentTypeText, and CPopupContentTypeButtonInfo.
|
pure virtual |
Get the content's height.
Implemented in CPopupContentTypeVariable, CPopupContentTypeLine, CPopupContentTypeCosts, CPopupContentTypeText, and CPopupContentTypeButtonInfo.
|
pure virtual |
Get the content's width.
Implemented in CPopupContentTypeVariable, CPopupContentTypeLine, CPopupContentTypeCosts, CPopupContentTypeText, and CPopupContentTypeButtonInfo.
|
pure virtual |
|
static |
| PopupConditionPanel* CPopupContentType::Condition |
Color used for highlighted letters.
|
protected |
Color used for plain text in content.
| int CPopupContentType::MarginX |
position to draw.
| int CPopupContentType::MarginY |
Left and right margin width.
| PixelSize CPopupContentType::minSize |
Upper and lower margin height.
| PixelPos CPopupContentType::pos |
|
protected |
If true, the next content will be placed on the next "line".
| bool CPopupContentType::Wrap |
Minimal size covered by content type.
1.8.9.1
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.