|
xoreos
0.0.5
|
#include <scrollbar.h>


Public Member Functions | |
| WidgetScrollbar (GUI &gui, const Common::UString &tag) | |
| ~WidgetScrollbar () | |
| void | load (const Aurora::GFF3Struct &gff) |
| void | show () |
| Show the widget. More... | |
| void | hide () |
| Hide the widget. More... | |
| void | setPosition (float x, float y, float z) |
| Set the widget's position. More... | |
| void | setWidth (float width) |
| Set the width of the widget. More... | |
| void | setHeight (float height) |
| Set the height of the widget. More... | |
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 | setRotation (float angle) |
| Set the rotation of the widget in degrees. 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 | enter () |
| The mouse entered the widget. More... | |
| virtual void | leave () |
| The mouse left 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 | mouseUp (uint8 state, float x, float y) |
| A mouse button was released 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 Attributes | |
| Common::ScopedPtr< Graphics::Aurora::GUIQuad > | _upArrow |
| Common::ScopedPtr< Graphics::Aurora::GUIQuad > | _downArrow |
| Common::ScopedPtr< Graphics::Aurora::GUIQuad > | _thumb |
| float | _arrowHeight |
Definition at line 32 of file scrollbar.h.
| Engines::WidgetScrollbar::WidgetScrollbar | ( | GUI & | gui, |
| const Common::UString & | tag | ||
| ) |
Definition at line 36 of file scrollbar.cpp.
| Engines::WidgetScrollbar::~WidgetScrollbar | ( | ) |
Definition at line 41 of file scrollbar.cpp.
|
virtual |
Hide the widget.
Reimplemented from Engines::KotORJadeWidget.
Definition at line 105 of file scrollbar.cpp.
References _downArrow, _thumb, _upArrow, Engines::KotORJadeWidget::hide(), and Engines::Widget::isVisible().
Referenced by Engines::WidgetListBox::refreshItemWidgets().


|
virtual |
Reimplemented from Engines::KotORJadeWidget.
Definition at line 44 of file scrollbar.cpp.
References _arrowHeight, Engines::KotORJadeWidget::_border, Engines::KotORJadeWidget::_borderDimension, _downArrow, Engines::KotORJadeWidget::_height, Engines::KotORJadeWidget::_highlight, Engines::KotORJadeWidget::_quad, _thumb, _upArrow, Engines::KotORJadeWidget::_width, Common::UString::empty(), Graphics::Aurora::Texture::getHeight(), Engines::Widget::getPosition(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getStruct(), Graphics::Aurora::TextureHandle::getTexture(), Aurora::GFF3Struct::hasField(), Engines::KotORJadeWidget::load(), Common::ScopedPtrBase< T, Deallocator >::reset(), and TextureMan.
Referenced by Engines::WidgetListBox::createScrollbar().


|
virtual |
Set the height of the widget.
Reimplemented from Engines::KotORJadeWidget.
Definition at line 169 of file scrollbar.cpp.
References _arrowHeight, Engines::KotORJadeWidget::_height, _thumb, _upArrow, Engines::Widget::getPosition(), and Engines::KotORJadeWidget::setHeight().
Referenced by Engines::WidgetListBox::createScrollbar(), and Engines::WidgetListBox::setHeight().


|
virtual |
Set the widget's position.
Reimplemented from Engines::KotORJadeWidget.
Definition at line 119 of file scrollbar.cpp.
References _downArrow, _thumb, _upArrow, Engines::Widget::getPosition(), and Engines::KotORJadeWidget::setPosition().
Referenced by Engines::WidgetListBox::createScrollbar().


|
virtual |
Set the width of the widget.
Reimplemented from Engines::KotORJadeWidget.
Definition at line 145 of file scrollbar.cpp.
References _downArrow, _thumb, _upArrow, Engines::KotORJadeWidget::_width, Engines::Widget::getPosition(), and Engines::KotORJadeWidget::setWidth().

|
virtual |
Show the widget.
Reimplemented from Engines::KotORJadeWidget.
Definition at line 91 of file scrollbar.cpp.
References _downArrow, _thumb, _upArrow, Engines::Widget::isInvisible(), Engines::Widget::isVisible(), and Engines::KotORJadeWidget::show().
Referenced by Engines::WidgetListBox::refreshItemWidgets().


|
private |
Definition at line 51 of file scrollbar.h.
Referenced by load(), and setHeight().
|
private |
Definition at line 48 of file scrollbar.h.
Referenced by hide(), load(), setPosition(), setWidth(), and show().
|
private |
Definition at line 49 of file scrollbar.h.
Referenced by hide(), load(), setHeight(), setPosition(), setWidth(), and show().
|
private |
Definition at line 47 of file scrollbar.h.
Referenced by hide(), load(), setHeight(), setPosition(), setWidth(), and show().
1.8.14