#include <listview_item.h>
Public Member Functions | |
Construction | |
| ListViewItem () | |
| Construct a null instance. More... | |
| ~ListViewItem () | |
Attributes | |
| bool | is_null () const |
| Returns true if this object is invalid. More... | |
| void | throw_if_null () const |
| Throw an exception if this object is invalid. More... | |
| bool | is_item () const |
| Is Item. More... | |
| ListViewColumnData | get_column (const std::string &column_id) |
| Get column. More... | |
| ListViewItem | get_parent () |
| Get Parent. More... | |
| ListViewItem | get_next_sibling () |
| Get Next sibling. More... | |
| ListViewItem | get_prev_sibling () |
| Get Prev sibling. More... | |
| ListViewItem | get_first_child () |
| Get First child. More... | |
| ListViewItem | get_last_child () |
| Get Last child. More... | |
| ListViewItem | get_document_item () |
| Get Document item. More... | |
| int | get_parent_count () |
| Get Parent count. More... | |
| int | get_child_count (bool recursive=false, bool recurse_only_into_open_items=false) |
| Get child count. More... | |
| bool | has_children () const |
| Has children. More... | |
| bool | is_open () const |
| Is Open. More... | |
| bool | is_selected () const |
| Is Selected. More... | |
| bool | is_editable () const |
| Is Editable. More... | |
| int | get_icon () const |
| Get the item icon id. Defaults to 0 if unset. More... | |
| int | get_id () const |
| Get the item id. Defaults to 0 if unset. More... | |
| std::shared_ptr < ListViewItemUserData > | get_userdata () const |
| Get Userdata. More... | |
| bool | operator== (ListViewItem &other) const |
| bool | operator!= (ListViewItem &other) const |
| std::vector< int > | get_overlay_icons () |
Operations | |
| ListViewItem | append_child (ListViewItem &item) |
| Append child. More... | |
| ListViewItem | remove () |
| Removes this item from the item tree. More... | |
| void | remove_children () |
| Remove all children of this item. More... | |
| void | set_column_text (const std::string &column_id, const std::string &text) |
| Set column text. More... | |
| void | set_open (bool open) |
| Set open. More... | |
| void | set_icon (int icon_index) |
| Set icon. More... | |
| void | set_id (int id) |
| Set the item id. Defaults to 0 if unset. More... | |
| void | add_overlay_icon (int icon_index) |
| Add overlay icon. More... | |
| void | remove_overlay_icon (int icon_index) |
| Remove overlay icon. More... | |
| void | set_editable (bool editable) |
| Set editable. More... | |
| void | set_userdata (std::shared_ptr< ListViewItemUserData > ptr) |
| Set userdata. More... | |
Events | |
| Callback_v1< Rect > & | func_render_icon () |
Implementation | |
| class | ListView |
| class | ListView_Impl |
| class | ListViewSelection |
| class | ListViewLayout |
ListView item.