$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <ui.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. | |
virtual int | GetWidth (const ButtonAction &button, int *Costs) const =0 |
Get the content's width. | |
virtual int | GetHeight (const ButtonAction &button, int *Costs) const =0 |
Get the content's height. | |
Public Attributes | |
int | PosX |
int | PosY |
X position to draw. | |
int | MarginX |
X position to draw. | |
int | MarginY |
Left and right margin width. | |
int | MinWidth |
Upper and lower margin height. | |
int | MinHeight |
Minimal width covered by content type. | |
bool | Wrap |
Minimal height covered by content type. | |
PopupConditionPanel * | Condition |
If true, the next content will be placed on the next "line". |
CPopupContentType::CPopupContentType | ( | ) | [inline] |
virtual CPopupContentType::~CPopupContentType | ( | ) | [inline, virtual] |
virtual void CPopupContentType::Draw | ( | int | x, | |
int | y, | |||
const CPopup * | popup, | |||
const unsigned int | popupWidth, | |||
const ButtonAction & | button, | |||
int * | Costs | |||
) | const [pure virtual] |
Tell how show the variable Index.
Implemented in CPopupContentTypeButtonInfo, CPopupContentTypeCosts, CPopupContentTypeLine, and CPopupContentTypeVariable.
virtual int CPopupContentType::GetWidth | ( | const ButtonAction & | button, | |
int * | Costs | |||
) | const [pure virtual] |
Get the content's width.
Implemented in CPopupContentTypeButtonInfo, CPopupContentTypeCosts, CPopupContentTypeLine, and CPopupContentTypeVariable.
virtual int CPopupContentType::GetHeight | ( | const ButtonAction & | button, | |
int * | Costs | |||
) | const [pure virtual] |
Get the content's height.
Implemented in CPopupContentTypeButtonInfo, CPopupContentTypeCosts, CPopupContentTypeLine, and CPopupContentTypeVariable.
X position to draw.
X position to draw.
Left and right margin width.
Upper and lower margin height.
Minimal width covered by content type.
Minimal height covered by content type.
If true, the next content will be placed on the next "line".