|
| Scrollbar () |
| Default constructor. More...
|
|
| Scrollbar (const Scrollbar ©) |
| Copy constructor. More...
|
|
virtual | ~Scrollbar () |
| Destructor. More...
|
|
Scrollbar & | operator= (const Scrollbar &right) |
| Overload of assignment operator. More...
|
|
bool | load (const std::string &configFileFilename, const std::string §ionName="Scrollbar") |
| Loads the widget. More...
|
|
const std::string & | getLoadedConfigFile () const |
| Returns the filename of the config file that was used to load the widget. More...
|
|
void | setSize (float width, float height) |
| Changes the size of the scrollbar. More...
|
|
virtual sf::Vector2f | getSize () const |
| Returns the size of the scrollbar. More...
|
|
void | setMaximum (unsigned int maximum) |
| Sets a maximum value. More...
|
|
void | setValue (unsigned int value) |
| Changes the current value. More...
|
|
void | setLowValue (unsigned int lowValue) |
| Changes the 'low value'. More...
|
|
void | setVerticalScroll (bool verticallScroll) |
| Changes whether the scrollbar lies vertical or horizontal. More...
|
|
unsigned int | getMaximum () const |
| Returns the maximum value. More...
|
|
unsigned int | getValue () const |
| Returns the current value. More...
|
|
unsigned int | getLowValue () const |
| Returns the low value. More...
|
|
bool | getVerticalScroll () const |
| Returns whether the scrollbar lies vertical or horizontal. More...
|
|
void | setArrowScrollAmount (unsigned int scrollAmount) |
| Changes how much the value changes when pressing one of the arrows of the scrollbar. More...
|
|
unsigned int | getArrowScrollAmount () |
| Returns how much the value changes when pressing one of the arrows of the scrollbar. More...
|
|
void | setAutoHide (bool autoHide) |
| Changes whether the scrollbar should hide automatically or not. More...
|
|
bool | getAutoHide () const |
| Returns whether the scrollbar is hiding automatically or not. More...
|
|
virtual void | setTransparency (unsigned char transparency) |
| Changes the transparency of the widget. More...
|
|
| Widget () |
| Default constructor. More...
|
|
| Widget (const Widget ©) |
| Copy constructor. More...
|
|
virtual | ~Widget () |
| Destructor. More...
|
|
Widget & | operator= (const Widget &right) |
| Overload of assignment operator. More...
|
|
virtual sf::Vector2f | getAbsolutePosition () const |
| Get the absolute position of the widget on the screen. More...
|
|
virtual void | show () |
| Shows the widget. More...
|
|
virtual void | hide () |
| Hides the widget. More...
|
|
bool | isVisible () const |
| Returns true when the widget is visible. More...
|
|
virtual void | enable () |
| Enables the widget. More...
|
|
virtual void | disable () |
| Disables the widget. More...
|
|
bool | isEnabled () const |
| Returns true when the widget is enabled. More...
|
|
bool | isDisabled () const |
| Returns true when the widget is disabled. More...
|
|
bool | isLoaded () const |
| Returns true when the widget is loaded successfully. More...
|
|
virtual void | focus () |
| Focus the widget. More...
|
|
virtual void | unfocus () |
| Unfocus the widget. More...
|
|
bool | isFocused () const |
| Returns true when the widget is focused and false otherwise. More...
|
|
WidgetTypes | getWidgetType () const |
| Returns the type of the widget. More...
|
|
Container * | getParent () const |
| Returns a pointer to the parent widget. More...
|
|
unsigned char | getTransparency () const |
| Returns the transparency of the widget. More...
|
|
virtual void | moveToFront () |
| Places the widget before all other widgets. More...
|
|
virtual void | moveToBack () |
| Places the widget behind all other widgets. More...
|
|
void | setCallbackId (unsigned int callbackId) |
| Changes the callback id of the widget. More...
|
|
unsigned int | getCallbackId () |
| Returns the callback id of the widget. More...
|
|
| Transformable () |
| Default constructor. More...
|
|
virtual | ~Transformable () |
| Destructor. More...
|
|
virtual void | setPosition (float x, float y) |
| Set the position of the widget. More...
|
|
void | setPosition (const sf::Vector2f &position) |
| set the position of the widget More...
|
|
const sf::Vector2f & | getPosition () const |
| get the position of the widget More...
|
|
void | move (float offsetX, float offsetY) |
| Move the widget by a given offset. More...
|
|
void | move (const sf::Vector2f &offset) |
| Move the widget by a given offset. More...
|
|
virtual sf::Vector2f | getFullSize () const |
| Returns the entire size that the widget is using. More...
|
|
void | scale (float factorX, float factorY) |
| Scale the widget. More...
|
|
void | scale (const sf::Vector2f &factors) |
| Scale the widget. More...
|
|
void | bindCallback (std::function< void()> func, unsigned int trigger) |
| Bind a function to one or more specific callback trigger(s). More...
|
|
template<typename T > |
void | bindCallback (void(T::*func)(), T *const classPtr, unsigned int trigger) |
| Bind a function to one or more specific callback trigger(s). More...
|
|
void | bindCallbackEx (std::function< void(const Callback &)> func, unsigned int trigger) |
| Bind a function to one or more specific callback trigger(s). More...
|
|
template<typename T > |
void | bindCallbackEx (void(T::*func)(const Callback &), T *const classPtr, unsigned int trigger) |
| Bind a function to one or more specific callback trigger(s). More...
|
|
void | bindCallback (unsigned int trigger) |
| Bind one or more specific callback trigger(s) to the parent widget. More...
|
|
void | unbindCallback (unsigned int trigger) |
| Unbind all callback function bound to the given trigger. More...
|
|
void | unbindAllCallback () |
| Unbind all callback functions bound to any callback. More...
|
|