$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 | |
CUIButton () | |
~CUIButton () | |
mouse.cpp - The mouse handling. | |
bool | Contains (const PixelPos &screenPos) const |
Public Attributes | |
int | X |
int | Y |
x coordinate on the screen | |
std::string | Text |
y coordinate on the screen | |
ButtonStyle * | Style |
button text | |
LuaActionListener * | Callback |
button style |
CUIButton::CUIButton | ( | ) | [inline] |
CUIButton::~CUIButton | ( | ) | [inline] |
bool CUIButton::Contains | ( | const PixelPos & | screenPos | ) | const |
Check if the mouse is on a button
x | X screen coordinate. | |
y | Y screen coordinate. |
int CUIButton::X |
int CUIButton::Y |
x coordinate on the screen
std::string CUIButton::Text |
y coordinate on the screen
button text
button style