_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          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 | List of all members
CUIButton Class Reference

buttons on screen themselves More...

#include <ui.h>

Public Member Functions

 CUIButton ()
 
 ~CUIButton ()
 
mouse.cpp - The mouse handling.
bool Contains (const PixelPos &screenPos) const
 

Public Attributes

int X
 
int Y
 x coordinate on the screen More...
 
std::string Text
 y coordinate on the screen More...
 
ButtonStyleStyle
 button text More...
 
LuaActionListenerCallback
 button style More...
 

Detailed Description

buttons on screen themselves

Constructor & Destructor Documentation

◆ CUIButton()

CUIButton::CUIButton ( )
inline

◆ ~CUIButton()

CUIButton::~CUIButton ( )
inline

Member Function Documentation

◆ Contains()

bool CUIButton::Contains ( const PixelPos screenPos) const

Check if the mouse is on a button

Parameters
screenPosscreen coordinate.
Returns
True if mouse is on the button, False otherwise.

Member Data Documentation

◆ Callback

LuaActionListener* CUIButton::Callback

button style

◆ Style

ButtonStyle* CUIButton::Style

button text

◆ Text

std::string CUIButton::Text

y coordinate on the screen

◆ X

int CUIButton::X

◆ Y

int CUIButton::Y

x coordinate on the screen


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.