$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

CPopupContentType Class Reference

#include <ui.h>

Inheritance diagram for CPopupContentType:

CPopupContentTypeButtonInfo CPopupContentTypeCosts CPopupContentTypeLine CPopupContentTypeVariable

List of all members.


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.
PopupConditionPanelCondition
 If true, the next content will be placed on the next "line".

Constructor & Destructor Documentation

CPopupContentType::CPopupContentType (  )  [inline]

virtual CPopupContentType::~CPopupContentType (  )  [inline, virtual]


Member Function Documentation

virtual void CPopupContentType::Draw ( int  x,
int  y,
const CPopup popup,
const unsigned int  popupWidth,
const ButtonAction button,
int *  Costs 
) const [pure virtual]

virtual int CPopupContentType::GetWidth ( const ButtonAction button,
int *  Costs 
) const [pure virtual]

virtual int CPopupContentType::GetHeight ( const ButtonAction button,
int *  Costs 
) const [pure virtual]


Member Data Documentation

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".


The documentation for this class was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.