Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <control.h>
Public Member Functions | |
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) |
virtual bool | hasGroupChildren (void) |
virtual void | draw (void)=0 |
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 bool | processMouseDown (const InputEvent &event) |
virtual void | processUnfocus (const InputEvent &event) |
virtual bool | processMouseUp (const InputEvent &event) |
virtual bool | processMouseMove (const InputEvent &event) |
virtual bool | processMouseDrag (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 Member Functions | |
virtual void | drawBackground (void) |
Protected Attributes | |
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 |
Control::Control | ( | void | ) |
Definition at line 48 of file control.cpp.
|
inlinevirtual |
Definition at line 74 of file control.h.
References m_color.
Referenced by Scroller::createControls(), NewButton::draw(), and Slider::setThumbColor().
|
pure virtual |
Implemented in NewButton, StaticImageDisplay, ScrollerButton, Picker, GroupControl, Slider, Scroller, TextInputDisplay, and StaticDisplay.
Referenced by GroupControl::draw().
|
protectedvirtual |
Definition at line 39 of file control.cpp.
References DEFAULT_OUTLINE_LINE_WIDTH, drawRect(), drawRectOutline(), isClear(), m_color, m_outlineColor, and m_rect.
Referenced by StaticDisplay::draw(), Scroller::draw(), Slider::draw(), and Picker::draw().
|
inlinevirtual |
Reimplemented in StaticDisplay.
Definition at line 104 of file control.h.
References m_font.
Referenced by NewButton::draw().
|
inlinevirtual |
Reimplemented in GroupControl.
Definition at line 114 of file control.h.
Referenced by GroupControl::deleteControl(), GroupControl::findControlById(), GroupControl::processMouseDown(), GroupControl::processMouseDrag(), GroupControl::processMouseMove(), GroupControl::processMouseUp(), and GroupControl::removeControlFromGroup().
|
inlinevirtual |
Definition at line 52 of file control.h.
References m_hidden.
Referenced by GroupControl::draw(), GroupControl::processMouseDown(), GroupControl::processMouseDrag(), GroupControl::processMouseMove(), GroupControl::processMouseUp(), and GameMenu::readJoinGameControls().
Definition at line 30 of file control.cpp.
References Size::height, m_rect, Rect::origin, Rect::size, Size::width, Point::x, and Point::y.
Referenced by TextInputDisplay::processMouseDown(), Slider::processMouseDown(), GroupControl::processMouseDown(), StaticDisplay::processMouseDown(), Picker::processMouseDown(), GroupControl::processMouseDrag(), GroupControl::processMouseMove(), Slider::processMouseUp(), GroupControl::processMouseUp(), and NewButton::processMouseUp().
|
inlinevirtual |
Definition at line 63 of file control.h.
References m_id.
Referenced by GroupControl::findControlById(), NavComputer::processWindowCommand(), WctlBase< BaseComputer >::processWindowCommand(), and NewButton::setCommand().
|
inlinevirtual |
Definition at line 84 of file control.h.
References m_outlineColor.
|
inlinevirtual |
Definition at line 39 of file control.h.
References m_rect.
Referenced by Scroller::calcLayout(), BaseComputer::createModeButtons(), and Picker::draw().
|
inlinevirtual |
Reimplemented in Scroller, and Slider.
Definition at line 78 of file control.h.
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), Scroller::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), BaseComputer::LoadSaveQuitConfirm::init(), Scroller::setButtonColor(), Scroller::setColor(), and Slider::setColor().
|
inlinevirtual |
Reimplemented in StaticDisplay.
Definition at line 108 of file control.h.
References m_font.
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
inlinevirtual |
Definition at line 56 of file control.h.
Referenced by BaseComputer::actionShowAccountMenu(), BaseComputer::actionShowServerMenu(), BaseComputer::configureCargoCommitControls(), BaseComputer::configureUpgradeCommitControls(), BaseComputer::constructControls(), GameMenu::createControls(), BaseComputer::createModeButtons(), GameMenu::createNetworkControls(), BaseComputer::hideCommitControls(), GameMenu::processMainMenuButton(), GameMenu::processMultiPlayerAcctButton(), GameMenu::processMultiPlayerButton(), GameMenu::processMultiPlayerHostButton(), BaseComputer::showNetworkStatus(), UniverseUtil::startMenuInterface(), and BaseComputer::updateTransactionControlsForSelection().
|
inlinevirtual |
Definition at line 67 of file control.h.
References m_id.
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), and BaseComputer::LoadSaveQuitConfirm::init().
|
inlinevirtual |
Definition at line 88 of file control.h.
References c, and m_outlineColor.
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), ListQuestionDialog::CreateControlsForListWindow(), GameMenu::createNetworkControls(), and NavComputer::RenameConfirm::init().
|
inlinevirtual |
Reimplemented in StaticDisplay, Slider, and Scroller.
Definition at line 43 of file control.h.
References m_rect.
Referenced by Scroller::calcLayout(), NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), BaseComputer::createModeButtons(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), BaseComputer::LoadSaveQuitConfirm::init(), Scroller::setRect(), Slider::setRect(), and StaticDisplay::setRect().
|
inlinevirtual |
Reimplemented in StaticDisplay, and Scroller.
Definition at line 98 of file control.h.
References c, and m_textColor.
Referenced by NavComputer::constructControls(), BaseComputer::constructControls(), GameMenu::createControls(), Scroller::createControls(), CreateControlsForAlertWindow(), ListQuestionDialog::CreateControlsForListWindow(), CreateControlsForYesNoWindow(), GameMenu::createNetworkControls(), NetActionConfirm::init(), NavComputer::RenameConfirm::init(), BaseComputer::LoadSaveQuitConfirm::init(), and Scroller::setTextColor().
|
inlinevirtual |
Reimplemented in StaticDisplay.
Definition at line 94 of file control.h.
References m_textColor.
Referenced by Scroller::createControls(), Picker::draw(), ScrollerButton::draw(), and NewButton::draw().
|
protected |
Definition at line 137 of file control.h.
Referenced by color(), drawBackground(), and setColor().
|
protected |
Definition at line 140 of file control.h.
Referenced by Picker::draw(), font(), setFont(), and Picker::totalCellHeight().
|
protected |
Definition at line 141 of file control.h.
Referenced by hidden(), and setHidden().
|
protected |
|
protected |
Definition at line 138 of file control.h.
Referenced by drawBackground(), outlineColor(), and setOutlineColor().
|
protected |
Definition at line 135 of file control.h.
Referenced by Scroller::calcLayout(), Picker::cellForMouse(), StaticDisplay::draw(), Slider::draw(), Picker::draw(), ScrollerButton::draw(), StaticImageDisplay::draw(), NewButton::draw(), drawBackground(), NewButton::drawCycleBorder(), hitTest(), Slider::processMouseDrag(), Picker::recalcDisplay(), rect(), Picker::scrollToCell(), StaticDisplay::setPaintTextRect(), setRect(), Scroller::setRect(), Slider::setRect(), and Slider::setThumbLength().
|
protected |
Definition at line 139 of file control.h.
Referenced by Picker::draw(), setTextColor(), and textColor().