#include <listbox.h>
Inheritance diagram for wftk::ListBox:

Public Member Functions | |
| ListBox () | |
| Default constructor. | |
| void | setColor (const Color &color) |
| set the background color the ListBox, or the text color of the selected row | |
| void | setSelectedColor (const Color &color) |
| set the color of the selected row | |
| std::string | getSelection () const |
| get which element is selected | |
| void | addElement (const std::string &data) |
| add an element to the ListBox | |
| void | addElements (const std::vector< std::string > &data) |
| add a list of elements to the ListBox | |
| void | clear () |
| empty the ListBox | |
| void | scrollUp () |
| scroll up in the list | |
| void | scrollDown () |
| scroll down in the list | |
| void | setSelected (const std::string &item) |
| select this item | |
Public Attributes | |
|
SigC::Signal1< void, const std::string & > | selectionChanged |
| signal to send when the selection changes | |
|
|
add an element to the ListBox
|
|
|
add a list of elements to the ListBox
|
|
|
get which element is selected
|
|
|
set the background color the ListBox, or the text color of the selected row
Reimplemented from wftk::Widget. |
|
|
select this item
|
|
|
set the color of the selected row
|
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.