_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
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 #ifndef GCN_DROPDOWN_HPP
56 #define GCN_DROPDOWN_HPP
120 virtual int getSelected();
127 virtual void setSelected(
int selected);
134 virtual void setListModel(
ListModel *listModel);
148 virtual void setScrollArea(
ScrollArea* scrollArea);
162 virtual void setListBox(
ListBox* listBox);
174 virtual void adjustHeight();
179 virtual void draw(
Graphics* graphics);
181 virtual void drawBorder(
Graphics* graphics);
183 virtual bool _keyInputMessage(
const KeyInput& keyInput);
185 virtual void logic();
187 virtual void _mouseInputMessage(
const MouseInput &mouseInput);
189 virtual void lostFocus();
191 virtual void setBaseColor(
const Color& color);
193 virtual void setBackgroundColor(
const Color& color);
195 virtual void setForegroundColor(
const Color& color);
200 virtual void moveToTop(
Widget* widget);
202 virtual void moveToBottom(
Widget* widget);
204 virtual void _announceDeath(
Widget* widget);
206 virtual void getDrawSize(
int& width,
int& height,
Widget* widget);
211 virtual void action(
const std::string& eventId);
216 virtual bool keyPress(
const Key& key);
221 virtual void mousePress(
int x,
int y,
int button);
223 virtual void mouseRelease(
int x,
int y,
int button);
225 virtual void setFont(
Font *font);
227 virtual bool getDirty()
const;
235 virtual void drawButton(
Graphics *graphics);
240 virtual void dropDown();
245 virtual void foldUp();
258 #endif // end GCN_DROPDOWN_HPP
Definition: keylistener.h:74
Definition: graphics.h:97
ScrollArea * mDefaultScrollArea
Definition: dropdown.h:252
bool mDroppedDown
Definition: dropdown.h:247
Definition: mouselistener.h:72
Definition: actionlistener.h:71
Definition: dropdown.h:78
Definition: focushandler.h:80
bool mPushed
Definition: dropdown.h:248
FocusHandler mFocusHandler
Definition: dropdown.h:254
Definition: basiccontainer.h:73
Definition: cliprectangle.cpp:61
int mOldH
Definition: dropdown.h:249
Definition: listmodel.h:70
ScrollArea * mScrollArea
Definition: dropdown.h:250
ListBox * mDefaultListBox
Definition: dropdown.h:253
ListBox * mListBox
Definition: dropdown.h:251
(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.