_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Public Attributes | Protected Attributes | List of all members
CPopupContentType Class Referenceabstract

#include <popup.h>

Inheritance diagram for CPopupContentType:
CPopupContentTypeButtonInfo CPopupContentTypeCosts CPopupContentTypeLine CPopupContentTypeText CPopupContentTypeVariable

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 CPopupContentTypeParsePopupContent (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...
 
PopupConditionPanelCondition
 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...
 

Constructor & Destructor Documentation

◆ CPopupContentType()

CPopupContentType::CPopupContentType ( )
inline

◆ ~CPopupContentType()

virtual CPopupContentType::~CPopupContentType ( )
inlinevirtual

Member Function Documentation

◆ Draw()

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

◆ GetHeight()

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

◆ GetWidth()

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

◆ Parse()

virtual void CPopupContentType::Parse ( lua_State *  l)
pure virtual

◆ ParsePopupContent()

CPopupContentType * CPopupContentType::ParsePopupContent ( lua_State *  l)
static

Member Data Documentation

◆ Condition

PopupConditionPanel* CPopupContentType::Condition

Color used for highlighted letters.

◆ HighlightColor

std::string CPopupContentType::HighlightColor
protected

Color used for plain text in content.

◆ MarginX

int CPopupContentType::MarginX

position to draw.

◆ MarginY

int CPopupContentType::MarginY

Left and right margin width.

◆ minSize

PixelSize CPopupContentType::minSize

Upper and lower margin height.

◆ pos

PixelPos CPopupContentType::pos

◆ TextColor

std::string CPopupContentType::TextColor
protected

If true, the next content will be placed on the next "line".

◆ Wrap

bool CPopupContentType::Wrap

Minimal size covered by content type.


The documentation for this class was generated from the following files:
(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.