Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <groupcontrol.h>
Public Member Functions | |
virtual bool | hasGroupChildren (void) |
void | addChild (Control *child) |
bool | deleteControl (Control *c) |
Control * | removeControlFromGroup (Control *c) |
Control * | findControlById (const std::string &id) |
int | childCount (void) |
Control * | childAt (int index) |
virtual void | draw (void) |
virtual bool | processMouseDown (const InputEvent &event) |
virtual bool | processMouseUp (const InputEvent &event) |
virtual bool | processMouseMove (const InputEvent &event) |
virtual bool | processMouseDrag (const InputEvent &event) |
GroupControl (void) | |
virtual | ~GroupControl (void) |
![]() | |
virtual Rect | rect (void) |
virtual void | setRect (const Rect &r) |
virtual bool | hitTest (const Point &p) |
virtual bool | hidden (void) |
virtual void | setHidden (bool h=true) |
virtual const std::string & | id (void) |
virtual void | setId (const std::string &newId) |
virtual GFXColor | color (void) |
virtual void | setColor (const GFXColor &c) |
virtual GFXColor | outlineColor (void) |
virtual void | setOutlineColor (const GFXColor &c) |
virtual GFXColor | textColor (void) |
virtual void | setTextColor (const GFXColor &c) |
virtual Font | font (void) |
virtual void | setFont (const Font &f) |
Control (void) | |
virtual | ~Control (void) |
![]() | |
virtual bool | processCommand (const EventCommandId &command, Control *control) |
virtual bool | processKeyDown (const InputEvent &event) |
virtual bool | processKeyUp (const InputEvent &event) |
virtual void | processUnfocus (const InputEvent &event) |
virtual void | sendCommand (const EventCommandId &command, Control *control) |
virtual void | setCommandTarget (EventResponder *responder) |
virtual void | setModal (bool modal) |
EventResponder (void) | |
virtual | ~EventResponder (void) |
Protected Attributes | |
std::vector< Control * > | m_controls |
![]() | |
Rect | m_rect |
std::string | m_id |
GFXColor | m_color |
GFXColor | m_outlineColor |
GFXColor | m_textColor |
Font | m_font |
bool | m_hidden |
![]() | |
bool | m_modal |
EventResponder * | m_commandTarget |
Additional Inherited Members | |
![]() | |
virtual void | drawBackground (void) |
Definition at line 33 of file groupcontrol.h.
|
inline |
Definition at line 79 of file groupcontrol.h.
|
virtual |
Definition at line 198 of file groupcontrol.cpp.
References EventManager::addToDeleteQueue(), i, and m_controls.
void GroupControl::addChild | ( | Control * | child) |
Definition at line 31 of file groupcontrol.cpp.
References m_controls.
Referenced by Window::addControl(), NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), Scroller::createControls(), and GameMenu::createNetworkControls().
Definition at line 63 of file groupcontrol.h.
References index, and m_controls.
Referenced by Scroller::calcLayout(), Scroller::processCommand(), Scroller::setButtonColor(), Scroller::setColor(), Scroller::setRangeValues(), Scroller::setScrollPosition(), Scroller::setTextColor(), and Scroller::setThumbColor().
|
inline |
Definition at line 57 of file groupcontrol.h.
References m_controls.
Referenced by Scroller::calcLayout(), Scroller::setButtonColor(), Scroller::setColor(), Scroller::setTextColor(), and Scroller::setThumbColor().
Definition at line 38 of file groupcontrol.cpp.
References EventManager::addToDeleteQueue(), deleteControl(), Control::hasGroupChildren(), and m_controls.
Referenced by deleteControl(), and Window::deleteControl().
|
virtual |
Implements Control.
Reimplemented in Scroller.
Definition at line 104 of file groupcontrol.cpp.
References Control::draw(), Control::hidden(), and m_controls.
Referenced by Scroller::draw(), and Window::draw().
Control * GroupControl::findControlById | ( | const std::string & | id) |
Definition at line 83 of file groupcontrol.cpp.
References findControlById(), Control::hasGroupChildren(), Control::id(), and m_controls.
Referenced by findControlById(), and Window::findControlById().
|
inlinevirtual |
|
virtual |
Reimplemented from EventResponder.
Definition at line 116 of file groupcontrol.cpp.
References Control::hasGroupChildren(), Control::hidden(), Control::hitTest(), InputEvent::loc, m_controls, EventResponder::processMouseDown(), processMouseDown(), and EventResponder::processUnfocus().
Referenced by processMouseDown(), and Window::processMouseDown().
|
virtual |
Reimplemented from EventResponder.
Definition at line 178 of file groupcontrol.cpp.
References Control::hasGroupChildren(), Control::hidden(), Control::hitTest(), InputEvent::loc, m_controls, EventResponder::processMouseDrag(), and processMouseDrag().
Referenced by processMouseDrag(), and Window::processMouseDrag().
|
virtual |
Reimplemented from EventResponder.
Definition at line 158 of file groupcontrol.cpp.
References Control::hasGroupChildren(), Control::hidden(), Control::hitTest(), InputEvent::loc, m_controls, EventResponder::processMouseMove(), and processMouseMove().
Referenced by processMouseMove(), and Window::processMouseMove().
|
virtual |
Reimplemented from EventResponder.
Definition at line 138 of file groupcontrol.cpp.
References Control::hasGroupChildren(), Control::hidden(), Control::hitTest(), InputEvent::loc, m_controls, EventResponder::processMouseUp(), and processMouseUp().
Referenced by processMouseUp(), and Window::processMouseUp().
Definition at line 60 of file groupcontrol.cpp.
References Control::hasGroupChildren(), m_controls, and removeControlFromGroup().
Referenced by removeControlFromGroup(), and Window::removeControlFromWindow().
|
protected |
Definition at line 87 of file groupcontrol.h.
Referenced by addChild(), childAt(), childCount(), deleteControl(), draw(), findControlById(), processMouseDown(), processMouseDrag(), processMouseMove(), processMouseUp(), removeControlFromGroup(), and ~GroupControl().