|
| ListBox () |
| Default constructor. More...
|
|
| ListBox (const ListBox ©) |
| Copy constructor. More...
|
|
virtual | ~ListBox () |
| Destructor. More...
|
|
ListBox & | operator= (const ListBox &right) |
| Overload of assignment operator. More...
|
|
virtual bool | load (unsigned int width, unsigned int height, const std::string &scrollbarPathname="", unsigned int itemHeight=0) |
| Creates the list box. More...
|
|
virtual void | setSize (float width, float height) |
| Changes the size of the list box. More...
|
|
virtual Vector2u | getSize () const |
| Returns the size of the list box, unaffected by scaling. More...
|
|
virtual Vector2f | getScaledSize () const |
| Returns the size of the list box, after the scaling transformation. More...
|
|
virtual std::string | getLoadedScrollbarPathname () const |
| Returns the pathname that was used to load the scrollbar. More...
|
|
virtual void | changeColors (const sf::Color &backgroundColor=sf::Color::White, const sf::Color &textColor=sf::Color::Black, const sf::Color &selectedBackgroundColor=sf::Color(50, 100, 200), const sf::Color &selectedTextColor=sf::Color::White, const sf::Color &borderColor=sf::Color::Black) |
| Changes the colors used in the list box. More...
|
|
virtual void | setBackgroundColor (const sf::Color &backgroundColor) |
| Set the background color that will be used inside the list box. More...
|
|
virtual void | setTextColor (const sf::Color &textColor) |
| Set the text color that will be used inside the list box. More...
|
|
virtual void | setSelectedBackgroundColor (const sf::Color &selectedBackgroundColor) |
| Set the background color of the selected text that will be used inside the list box. More...
|
|
virtual void | setSelectedTextColor (const sf::Color &selectedTextColor) |
| Set the text color of the selected text that will be used inside the list box. More...
|
|
virtual void | setBorderColor (const sf::Color &borderColor) |
| Set the border color text that will be used inside the list box. More...
|
|
virtual const sf::Color & | getBackgroundColor () const |
| Get the background color that is currently being used inside the list box. More...
|
|
virtual const sf::Color & | getTextColor () const |
| Get the text color that is currently being used inside the list box. More...
|
|
virtual const sf::Color & | getSelectedBackgroundColor () const |
| Get the background color of the selected text that is currently being used inside the list box. More...
|
|
virtual const sf::Color & | getSelectedTextColor () const |
| Get the text color of the selected text that is currently being used inside the list box. More...
|
|
virtual const sf::Color & | getBorderColor () const |
| Get the border color that is currently being used inside the list box. More...
|
|
virtual void | setTextFont (const sf::Font &font) |
| Changes the font of the items. More...
|
|
virtual const sf::Font * | getTextFont () const |
| Returns the font of the items. More...
|
|
virtual unsigned int | addItem (const sf::String &itemName) |
| Adds an item to the list. More...
|
|
virtual bool | setSelectedItem (const sf::String &itemName) |
| Selects an item in the list box. More...
|
|
virtual bool | setSelectedItem (unsigned int id) |
| Selects an item in the list box. More...
|
|
virtual void | removeItem (unsigned int id) |
| Removes an item from the list with a given id. More...
|
|
virtual void | removeItem (const sf::String &itemName) |
| Removes all items from the list with a given name. More...
|
|
virtual void | removeAllItems () |
| Removes all items from the list. More...
|
|
virtual sf::String | getItem (unsigned int id) const |
| Returns the item name of the given id. More...
|
|
virtual unsigned int | getItemID (const sf::String &itemName) const |
| Returns the id of the first item with the given name. More...
|
|
virtual std::vector< sf::String > & | getItems () |
| Returns the list that constains all the items. More...
|
|
virtual sf::String | getSelectedItem () const |
| Returns the currently selected item. More...
|
|
virtual unsigned int | getSelectedItemID () const |
| Get the id of the selected item. More...
|
|
virtual bool | setScrollbar (const std::string &scrollbarPathname) |
| Changes the scrollbar of the list box. More...
|
|
virtual void | removeScrollbar () |
| Removes the scrollbar from the list box (if there is one). More...
|
|
virtual void | setItemHeight (unsigned int itemHeight) |
| Changes the height of the items in the list box. More...
|
|
virtual unsigned int | getItemHeight () const |
| Returns the height of the items in the list box. More...
|
|
virtual void | setMaximumItems (unsigned int maximumItems=0) |
| Changes the maximum items that the list box can contain. More...
|
|
virtual unsigned int | getMaximumItems () const |
| Returns the maximum items that the list box can contain. If 0 then there is no limit. More...
|
|
virtual void | setBorders (unsigned int leftBorder=0, unsigned int topBorder=0, unsigned int rightBorder=0, unsigned int bottomBorder=0) |
| Changes the size of the borders. More...
|
|
| OBJECT () |
| Default constructor. More...
|
|
| OBJECT (const OBJECT ©) |
| Copy constructor. More...
|
|
virtual | ~OBJECT () |
| Destructor. More...
|
|
OBJECT & | operator= (const OBJECT &right) |
| Overload of assignment operator. More...
|
|
virtual void | show () |
| Shows the object. More...
|
|
virtual void | hide () |
| Hides the object. More...
|
|
virtual bool | isVisible () const |
| Returns true when the object is visible. More...
|
|
virtual void | enable () |
| Enables the object. More...
|
|
virtual void | disable () |
| Disables the object. More...
|
|
virtual bool | isEnabled () const |
| Returns true when the object is enabled. More...
|
|
virtual bool | isDisabled () const |
| Returns true when the object is disabled. More...
|
|
virtual bool | isLoaded () const |
| Returns true when the object is loaded successfully. More...
|
|
void | focus () |
| Focus the object. More...
|
|
void | unfocus () |
| Unfocus the object. More...
|
|
void | focusNextObject () |
| Focuses the next object. More...
|
|
virtual bool | isFocused () const |
| Returns true when the object is focused and false otherwise. More...
|
|
virtual ObjectTypes | getObjectType () const |
| Returns the type of the object. More...
|
|
virtual void | moveToFront () |
| Places the object before all other objects. More...
|
|
virtual void | moveToBack () |
| Places the object behind all other objects. More...
|
|
| OBJECT_BORDERS () |
| Default constructor. More...
|
|
virtual Vector4u | getBorders () const |
| Returns the size of the borders as a tgui::Vector4u. More...
|
|