_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
55 virtual void action(
const std::string &eventId);
73 std::function<
void(
const std::string &)> lambda;
80 virtual void action(
const std::string &eventId)
129 virtual void mousePress(
int x,
int y,
int button);
131 virtual void mouseClick(
int x,
int y,
int button,
int count);
154 ImageCheckBox(
const std::string &caption,
bool marked =
false);
159 virtual void mousePress(
int x,
int y,
int button);
161 virtual void mouseClick(
int x,
int y,
int button,
int count);
204 virtual void setCaption(
const std::string &caption);
205 virtual const std::string &
getCaption()
const;
227 std::string mCaption;
228 std::vector<std::string> mTextRows;
229 unsigned int mAlignment;
230 unsigned int mVerticalAlignment;
240 void setSpeed(
float speed) { this->speedY = speed; }
243 virtual void logic();
254 Windows(
const std::string &text,
int width,
int height);
257 virtual void mouseMotion(
int x,
int y);
258 virtual void setBackgroundColor(
const gcn::Color &color);
259 virtual void setBaseColor(
const gcn::Color &color);
263 bool blockwholewindow;
282 std::vector<std::string> list;
294 std::vector<std::string> list;
364 hBarButtonImage = image;
368 vBarButtonImage = image;
416 virtual void setSize(
int width,
int height);
439 virtual void setSize(
int width,
int height);
468 unsigned int percent;
476 int run(
bool loop =
true);
481 virtual void logic();
gcn::Image * backgroundImage
Definition: widgets.h:194
Definition: keylistener.h:74
Definition: widgets.h:198
ImageTextField(const std::string &text)
Definition: widgets.h:272
virtual void draw(gcn::Graphics *graphics)
Definition: widgets.cpp:877
gcn::Image * checkedPressedImage
Definition: widgets.h:175
MultiLineLabel()
Definition: widgets.cpp:770
gcn::Image * uncheckedNormalImage
Definition: widgets.h:171
virtual void mouseClick(int x, int y, int button, int count)
Definition: widgets.cpp:639
virtual int getHeight() const
Definition: video.h:182
virtual void mouseIn()
Definition: widgets.cpp:229
virtual std::string getElementAt(int i)
Definition: widgets.h:289
void setCheckedPressedImage(gcn::Image *image)
Definition: widgets.h:168
Definition: graphics.h:97
virtual void mousePress(int x, int y, int button)
Definition: widgets.cpp:619
virtual const std::string & getCaption() const
Definition: widgets.cpp:804
ImageSlider(double scaleEnd=1.0)
Definition: widgets.cpp:676
void setItemImage(CGraphic *image)
Definition: widgets.h:310
Definition: mouselistener.h:72
void setSelected(int selected)
Definition: widgets.cpp:1419
Definition: actionlistener.h:71
virtual void action(const std::string &eventId)
Definition: widgets.h:80
Definition: dropdown.h:78
void(CCONV *lazyGlBegin)(GLenum)
LambdaActionListener(std::function< void(const std::string &)> l)
Definition: widgets.h:75
virtual int getWidth() const
Definition: video.h:181
void mousePress(int, int y, int button)
Definition: widgets.cpp:1405
virtual void mouseRelease(int, int, int)
Definition: widgets.cpp:248
HANDLE event
Definition: midiplayer.c:31
virtual void hotKeyPress(const gcn::Key &)
Definition: widgets.cpp:215
LuaListModel()
Definition: widgets.h:296
virtual void setVerticalAlignment(unsigned int alignment)
Definition: widgets.cpp:828
virtual void mouseRelease(int x, int y, int button)
Definition: widgets.cpp:629
virtual void drawMarker(gcn::Graphics *graphics)
Definition: widgets.cpp:692
virtual void drawBox(gcn::Graphics *graphics)
Definition: widgets.cpp:586
ImageTextField()
Definition: widgets.h:271
virtual void drawBorder(gcn::Graphics *graphics)
Definition: widgets.cpp:1286
virtual void adjustSize()
Definition: widgets.cpp:861
gcn::Image * markerImage
Definition: widgets.h:193
@ BOTTOM
Definition: widgets.h:221
virtual void mousePress(int, int, int)
Definition: widgets.cpp:241
Definition: cliprectangle.cpp:61
Definition: widgets.h:267
Windows(const std::string &text, int width, int height)
Definition: widgets.cpp:1110
virtual void mouseClick(int, int, int, int)
Definition: widgets.cpp:255
Definition: widgets.h:150
virtual void drawBorder(gcn::Graphics *graphics)
Definition: widgets.cpp:924
virtual void action(const std::string &eventId)
Definition: widgets.cpp:192
virtual void setLineWidth(int width)
Definition: widgets.cpp:844
@ LEFT
Definition: widgets.h:217
Definition: widgets.h:280
gcn::Image * uncheckedDisabledImage
Definition: widgets.h:173
Definition: widgets.h:292
virtual bool keyRelease(const gcn::Key &)
Definition: widgets.cpp:207
Definition: rectangle.h:65
virtual void adjustSize()
Definition: widgets.cpp:649
virtual int getLineWidth()
Definition: widgets.cpp:853
virtual std::string getElementAt(int i)
Definition: widgets.h:300
void setUncheckedDisabledImage(gcn::Image *image)
Definition: widgets.h:166
void setBackgroundImage(gcn::Image *image)
Definition: widgets.cpp:748
ImageListBox()
Definition: widgets.cpp:1333
TextField()
Definition: textfield.cpp:67
gcn::Image * uncheckedPressedImage
Definition: widgets.h:172
Definition: listmodel.h:70
virtual int getNumberOfElements()
Definition: widgets.h:299
Definition: checkbox.h:70
void setItemImage(CGraphic *image)
Definition: widgets.h:275
void setDisabledBackgroundImage(gcn::Image *image)
Definition: widgets.cpp:756
virtual void draw(gcn::Graphics *graphics)
Definition: widgets.cpp:1341
virtual int getNumberOfElements()
Definition: widgets.h:288
void setUncheckedPressedImage(gcn::Image *image)
Definition: widgets.h:165
virtual void setCaption(const std::string &caption)
Definition: widgets.cpp:794
void setMarkerImage(gcn::Image *image)
Definition: widgets.cpp:739
virtual void drawBorder(gcn::Graphics *graphics)
Definition: widgets.cpp:1373
void setUncheckedNormalImage(gcn::Image *image)
Definition: widgets.h:164
virtual void setAlignment(unsigned int alignment)
Definition: widgets.cpp:812
gcn::Image * checkedNormalImage
Definition: widgets.h:174
StringListModel(std::vector< std::string > l)
Definition: widgets.h:284
@ CENTER
Definition: widgets.h:218
gcn::Image * disabledBackgroundImage
Definition: widgets.h:195
int lua_Object
Definition: luacallback.h:38
ScrollArea * mScrollArea
Definition: dropdown.h:250
Definition: widgets.h:303
Definition: luacallback.h:41
gcn::Image * checkedDisabledImage
Definition: widgets.h:176
Definition: container.h:73
bool mMouseDown
Definition: widgets.h:177
void setList(lua_State *lua, lua_Object *lo)
Definition: widgets.cpp:1319
ImageCheckBox()
Definition: widgets.cpp:539
virtual unsigned int getVerticalAlignment()
Definition: widgets.cpp:836
Definition: textfield.h:68
Icon(Image *image)
Definition: icon.cpp:65
virtual void draw(gcn::Graphics *graphics)
Definition: widgets.cpp:560
virtual bool keyPress(const gcn::Key &)
Definition: widgets.cpp:199
Definition: widgets.h:180
@ TOP
Definition: widgets.h:220
void setCheckedDisabledImage(gcn::Image *image)
Definition: widgets.h:169
virtual void mouseWheelDown(int, int)
Definition: widgets.cpp:269
void setCheckedNormalImage(gcn::Image *image)
Definition: widgets.h:167
int GetHotKey(const std::string &text)
Get the hot key from a string.
Definition: font.cpp:472
@ RIGHT
Definition: widgets.h:219
virtual void hotKeyRelease(const gcn::Key &)
Definition: widgets.cpp:222
void logic()
Definition: widgets.h:315
virtual void mouseOut()
Definition: widgets.cpp:235
virtual void mouseWheelUp(int, int)
Definition: widgets.cpp:263
virtual void draw(gcn::Graphics *graphics)
Definition: widgets.cpp:1233
virtual void mouseMotion(int, int)
Definition: widgets.cpp:275
virtual void draw(gcn::Graphics *graphics)
Definition: widgets.cpp:716
void adjustSize()
Definition: widgets.cpp:1397
void add(gcn::Widget *widget, int x, int y)
Definition: widgets.cpp:1127
LuaActionListener(lua_State *lua, lua_Object function)
Definition: widgets.cpp:180
virtual unsigned int getAlignment()
Definition: widgets.cpp:820
Definition: widgets.h:251
void setListModel(gcn::ListModel *listModel)
Definition: widgets.cpp:1457
virtual ~LuaActionListener()
Definition: widgets.cpp:281
(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.