#include <listview_item.h>
Implementation | |
| class | CL_ListView |
| class | CL_ListView_Impl |
| class | CL_ListViewSelection |
| class | CL_ListViewLayout |
Public Member Functions | |
Construction | |
| CL_ListViewItem () | |
| ~CL_ListViewItem () | |
Attributes | |
| bool | is_null () const |
| Is Null. | |
| bool | is_item () const |
| Is Item. | |
| CL_ListViewColumnData | get_column (const CL_StringRef &column_id) |
| Get column. | |
| CL_ListViewItem | get_parent () |
| Get Parent. | |
| CL_ListViewItem | get_next_sibling () |
| Get Next sibling. | |
| CL_ListViewItem | get_prev_sibling () |
| Get Prev sibling. | |
| CL_ListViewItem | get_first_child () |
| Get First child. | |
| CL_ListViewItem | get_last_child () |
| Get Last child. | |
| CL_ListViewItem | get_document_item () |
| Get Document item. | |
| int | get_parent_count () |
| Get Parent count. | |
| int | get_child_count (bool recursive=false, bool recurse_only_into_open_items=false) |
| Get child count. | |
| bool | has_children () const |
| Has children. | |
| bool | is_open () const |
| Is Open. | |
| bool | is_selected () const |
| Is Selected. | |
| bool | is_editable () const |
| Is Editable. | |
| int | get_icon () const |
| Get the item icon id. Defaults to 0 if unset. | |
| int | get_id () const |
| Get the item id. Defaults to 0 if unset. | |
| CL_UnknownSharedPtr | get_userdata () const |
| Get Userdata. | |
| bool | operator== (CL_ListViewItem &other) const |
| bool | operator!= (CL_ListViewItem &other) const |
| std::vector< int > | get_overlay_icons () |
Operations | |
| CL_ListViewItem | append_child (CL_ListViewItem &item) |
| Append child. | |
| CL_ListViewItem | remove () |
| Removes this item from the item tree. | |
| void | remove_children () |
| Remove all children of this item. | |
| void | set_column_text (const CL_StringRef &column_id, const CL_StringRef &text) |
| Set column text. | |
| void | set_open (bool open) |
| Set open. | |
| void | set_icon (int icon_index) |
| Set icon. | |
| void | set_id (int id) |
| Set the item id. Defaults to 0 if unset. | |
| void | add_overlay_icon (int icon_index) |
| Add overlay icon. | |
| void | remove_overlay_icon (int icon_index) |
| Remove overlay icon. | |
| void | set_editable (bool editable) |
| Set editable. | |
| void | set_userdata (CL_UnknownSharedPtr ptr) |
| Set userdata. | |
Events | |
| CL_Callback_v1< CL_Rect > & | func_render_icon () |
|
|
|
|
|
|
|
|
Add overlay icon.
|
|
|
Append child.
|
|
|
|
|
||||||||||||
|
Get child count.
|
|
|
Get column.
|
|
|
Get Document item.
|
|
|
Get First child.
|
|
|
Get the item icon id. Defaults to 0 if unset.
|
|
|
Get the item id. Defaults to 0 if unset.
|
|
|
Get Last child.
|
|
|
Get Next sibling.
|
|
|
|
|
|
Get Parent.
|
|
|
Get Parent count.
|
|
|
Get Prev sibling.
|
|
|
Get Userdata.
|
|
|
Has children.
|
|
|
Is Editable.
|
|
|
Is Item.
|
|
|
Is Null.
|
|
|
Is Open.
|
|
|
Is Selected.
|
|
|
|
|
|
|
|
|
Removes this item from the item tree.
|
|
|
Remove all children of this item.
|
|
|
Remove overlay icon.
|
|
||||||||||||
|
Set column text.
|
|
|
Set editable.
|
|
|
Set icon.
|
|
|
Set the item id. Defaults to 0 if unset.
|
|
|
Set open.
|
|
|
Set userdata.
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6