|
xoreos
0.0.5
|
#include <checkbox.h>


Public Member Functions | |
| WidgetCheckBox (GUI &gui, const Common::UString &tag) | |
| ~WidgetCheckBox () | |
| void | load (const Aurora::GFF3Struct &gff) |
| void | setState (bool state) |
| bool | getState () const |
| void | enter () |
| The mouse entered the widget. More... | |
| void | leave () |
| The mouse left the widget. More... | |
| void | mouseUp (uint8 state, float x, float y) |
| A mouse button was released on the widget. More... | |
| void | setSelected (const Common::UString &selected) |
| void | setUnselected (const Common::UString &unselected) |
| void | setSelectedHighlighted (const Common::UString &selectedHighlighted) |
| void | setUnselectedHighlighted (const Common::UString &unselectedHighlighted) |
Public Member Functions inherited from Engines::KotORJadeWidget | |
| KotORJadeWidget (GUI &gui, const Common::UString &tag) | |
| ~KotORJadeWidget () | |
| void | setClickable (bool clickable) |
| Set the widget clickable, or not clickable. More... | |
| void | setScissor (int x, int y, int width, int height) |
| Create a scissor test over this widget. More... | |
| void | setFill (const Common::UString &fill) |
| void | setColor (float r, float g, float b, float a) |
| void | setBorderColor (float r, float g, float b, float a) |
| void | setWrapped (bool wrapped) |
| void | setSubScene (Graphics::Aurora::SubSceneQuad *subscene) |
| float | getBorderDimension () const |
| void | setHighlight (const Common::UString &hilight) |
| void | setHighlight (bool highlight) |
| Set if the widget should be highlighted. More... | |
| bool | isHighlight () |
| If the widget is highlighted. More... | |
| void | createText (const Common::UString &font, const Common::UString &str) |
| Initialize the text within this widget. More... | |
| void | setFont (const Common::UString &fnt) |
| Change the font for this widget. More... | |
| void | setText (const Common::UString &text) |
| void | setTextColor (float r, float g, float b, float a) |
| void | setHorizontalTextAlign (float halign) |
| void | setVerticalTextAlign (float valign) |
| float | getTextHeight (const Common::UString &text) const |
| void | setTag (const Common::UString &tag) |
| Set the widget's tag. More... | |
| virtual void | show () |
| Show the widget. More... | |
| virtual void | hide () |
| Hide the widget. More... | |
| virtual void | setPosition (float x, float y, float z) |
| Set the widget's position. More... | |
| virtual void | setRotation (float angle) |
| Set the rotation of the widget in degrees. More... | |
| virtual void | setWidth (float width) |
| Set the width of the widget. More... | |
| virtual void | setHeight (float height) |
| Set the height of the widget. More... | |
| float | getWidth () const |
| Get the widget's width. More... | |
| float | getHeight () const |
| Get the widget's height. More... | |
| virtual void | setInvisible (bool invisible) |
| Make the widget invisible. More... | |
Public Member Functions inherited from Engines::Widget | |
| Widget (GUI &gui, const Common::UString &tag) | |
| virtual | ~Widget () |
| const Common::UString & | getTag () const |
| Get the widget's tag. More... | |
| bool | isActive () const |
| Was the widget activated? More... | |
| bool | isVisible () const |
| Is the widget visible? More... | |
| bool | isDisabled () const |
| Is the widget disabled? More... | |
| bool | isInvisible () const |
| Is the widget invisible (never visible)? More... | |
| Widget * | getParent () |
| const Widget * | getParent () const |
| Widget * | getChild (const Common::UString &childTag) |
| Get the widget's child by tag. More... | |
| virtual void | movePosition (float x, float y, float z) |
| Move the widget, relative to its current position. More... | |
| virtual void | getPosition (float &x, float &y, float &z) const |
| Get the widget's position. More... | |
| virtual void | setDisabled (bool disabled) |
| Disable/Enable the widget. More... | |
| virtual void | mouseMove (uint8 state, float x, float y) |
| The mouse was moved over the widget. More... | |
| virtual void | mouseDown (uint8 state, float x, float y) |
| A mouse button was pressed on the widget. More... | |
| virtual void | mouseWheel (uint8 state, int x, int y) |
| A mouse wheel was used on the widget. More... | |
| virtual void | mouseDblClick (uint8 state, float x, float y) |
| A mouse button was double-clicked on the widget. More... | |
| virtual void | subActive (Widget &widget) |
| A sub-widget was activated. More... | |
| void | remove () |
| Remove the widget from the GUI. More... | |
| virtual void | addSub (Widget &widget) |
| Add a sub-widget to the widget. More... | |
| virtual void | addChild (Widget &widget) |
| Add a child to the widget. More... | |
| virtual void | addGroupMember (Widget &widget) |
| Add a fellow group member to the widget. More... | |
| virtual void | removeSub (Widget &widget) |
| Remove a sub-widget from the widget. More... | |
| virtual void | removeChild (Widget &widget) |
| Remove a child from the widget. More... | |
| virtual void | removeGroupMember (Widget &widget) |
| Remove fellow group member from the widget. More... | |
Private Member Functions | |
| void | setTextHighlighting (Graphics::Aurora::Highlightable *highlightable) |
| void | setQuadHighlighting (Graphics::Aurora::Highlightable *highlightable) |
Private Attributes | |
| Common::UString | _selected |
| Common::UString | _unselected |
| Common::UString | _selectedHighlighted |
| Common::UString | _unselectedHighlighted |
| bool | _state |
| Sound::ChannelHandle | _sound |
| float | _unselectedR |
| float | _unselectedG |
| float | _unselectedB |
| float | _unselectedA |
Definition at line 34 of file checkbox.h.
| Engines::WidgetCheckBox::WidgetCheckBox | ( | GUI & | gui, |
| const Common::UString & | tag | ||
| ) |
Definition at line 45 of file checkbox.cpp.
| Engines::WidgetCheckBox::~WidgetCheckBox | ( | ) |
Definition at line 54 of file checkbox.cpp.
|
virtual |
The mouse entered the widget.
Reimplemented from Engines::Widget.
Definition at line 128 of file checkbox.cpp.
References Engines::KotORJadeWidget::_quad, _sound, Engines::KotORJadeWidget::_text, _unselectedA, _unselectedB, _unselectedG, _unselectedR, Graphics::Aurora::Highlightable::getHighlightedLowerBound(), Engines::KotORJadeWidget::getQuadHighlightableComponent(), Engines::KotORJadeWidget::getTextHighlightableComponent(), Graphics::Aurora::Highlightable::isHighlightable(), Sound::kSoundTypeSFX, Engines::playSound(), and Graphics::Aurora::Highlightable::setHighlighted().

| bool Engines::WidgetCheckBox::getState | ( | ) | const |
Definition at line 124 of file checkbox.cpp.
References _state.
Referenced by Engines::Jade::GUI::getCheckBoxState(), and Engines::KotOR::GUI::getCheckBoxState().

|
virtual |
The mouse left the widget.
Reimplemented from Engines::Widget.
Definition at line 150 of file checkbox.cpp.
References Engines::KotORJadeWidget::_quad, _sound, Engines::KotORJadeWidget::_text, _unselectedA, _unselectedB, _unselectedG, _unselectedR, Engines::KotORJadeWidget::getQuadHighlightableComponent(), Engines::KotORJadeWidget::getTextHighlightableComponent(), Graphics::Aurora::Highlightable::isHighlightable(), Graphics::Aurora::Highlightable::setHighlighted(), and SoundMan.

|
virtual |
Reimplemented from Engines::KotORJadeWidget.
Definition at line 57 of file checkbox.cpp.
References Engines::KotORJadeWidget::_quad, _selected, _selectedHighlighted, Engines::KotORJadeWidget::_text, _unselected, _unselectedHighlighted, Engines::KotORJadeWidget::createBorder(), Common::UString::empty(), Engines::KotORJadeWidget::Border::fill, Graphics::Aurora::Texture::getHeight(), Engines::KotORJadeWidget::getQuadHighlightableComponent(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getStruct(), Engines::KotORJadeWidget::getTextHighlightableComponent(), Graphics::Aurora::TextureHandle::getTexture(), Graphics::Aurora::Texture::getWidth(), Engines::KotORJadeWidget::load(), setQuadHighlighting(), setTextHighlighting(), and TextureMan.

|
virtual |
A mouse button was released on the widget.
Reimplemented from Engines::Widget.
Definition at line 166 of file checkbox.cpp.
References _state, Engines::Widget::isDisabled(), Sound::kSoundTypeSFX, Engines::playSound(), Engines::Widget::setActive(), and setState().

|
private |
Definition at line 198 of file checkbox.cpp.
References Graphics::Aurora::Highlightable::setHighlightable(), and Graphics::Aurora::Highlightable::setHighlightLowerBound().
Referenced by load().


| void Engines::WidgetCheckBox::setSelected | ( | const Common::UString & | selected | ) |
Definition at line 175 of file checkbox.cpp.
References _selected.
Referenced by Engines::KotOR::PartySelectionGUI::setSlotTexture().

| void Engines::WidgetCheckBox::setSelectedHighlighted | ( | const Common::UString & | selectedHighlighted | ) |
Definition at line 183 of file checkbox.cpp.
References _selectedHighlighted.
Referenced by Engines::KotOR::PartySelectionGUI::setSlotTexture().

| void Engines::WidgetCheckBox::setState | ( | bool | state | ) |
Definition at line 99 of file checkbox.cpp.
References Engines::KotORJadeWidget::_quad, _selected, _selectedHighlighted, _state, Engines::KotORJadeWidget::_text, _unselected, _unselectedHighlighted, Engines::Widget::setActive(), Engines::KotORJadeWidget::setFill(), and Engines::KotORJadeWidget::setHighlight().
Referenced by Engines::KotOR::PartySelectionGUI::loadConfiguration(), mouseUp(), Engines::Jade::GUI::setCheckBoxState(), and Engines::KotOR::GUI::setCheckBoxState().


|
private |
Definition at line 191 of file checkbox.cpp.
References Graphics::Aurora::Highlightable::setHighlightable(), Graphics::Aurora::Highlightable::setHighlightDelta(), Graphics::Aurora::Highlightable::setHighlightLowerBound(), and Graphics::Aurora::Highlightable::setHighlightUpperBound().
Referenced by load().


| void Engines::WidgetCheckBox::setUnselected | ( | const Common::UString & | unselected | ) |
Definition at line 179 of file checkbox.cpp.
References _unselected.
Referenced by Engines::KotOR::PartySelectionGUI::setSlotTexture().

| void Engines::WidgetCheckBox::setUnselectedHighlighted | ( | const Common::UString & | unselectedHighlighted | ) |
Definition at line 187 of file checkbox.cpp.
References _unselectedHighlighted.
Referenced by Engines::KotOR::PartySelectionGUI::setSlotTexture().

|
private |
Definition at line 55 of file checkbox.h.
Referenced by load(), setSelected(), and setState().
|
private |
Definition at line 56 of file checkbox.h.
Referenced by load(), setSelectedHighlighted(), and setState().
|
private |
Definition at line 59 of file checkbox.h.
|
private |
Definition at line 57 of file checkbox.h.
Referenced by getState(), mouseUp(), and setState().
|
private |
Definition at line 55 of file checkbox.h.
Referenced by load(), setState(), and setUnselected().
|
private |
Definition at line 60 of file checkbox.h.
|
private |
Definition at line 60 of file checkbox.h.
|
private |
Definition at line 60 of file checkbox.h.
|
private |
Definition at line 56 of file checkbox.h.
Referenced by load(), setState(), and setUnselectedHighlighted().
|
private |
Definition at line 60 of file checkbox.h.
1.8.14