|
ClanLib
2.3.7
|
ListView item. More...
#include <listview_item.h>
Public Member Functions | |
Construction | |
| CL_ListViewItem () | |
| Construct a null instance. More... | |
| ~CL_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... | |
| CL_ListViewColumnData | get_column (const CL_StringRef &column_id) |
| Get column. More... | |
| CL_ListViewItem | get_parent () |
| Get Parent. More... | |
| CL_ListViewItem | get_next_sibling () |
| Get Next sibling. More... | |
| CL_ListViewItem | get_prev_sibling () |
| Get Prev sibling. More... | |
| CL_ListViewItem | get_first_child () |
| Get First child. More... | |
| CL_ListViewItem | get_last_child () |
| Get Last child. More... | |
| CL_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... | |
| CL_SharedPtr < CL_ListViewItemUserData > | get_userdata () const |
| Get Userdata. More... | |
| 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. More... | |
| CL_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 CL_StringRef &column_id, const CL_StringRef &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 (CL_SharedPtr< CL_ListViewItemUserData > ptr) |
| Set userdata. More... | |
Events | |
| CL_Callback_v1< CL_Rect > & | func_render_icon () |
Implementation | |
| class | CL_ListView |
| class | CL_ListView_Impl |
| class | CL_ListViewSelection |
| class | CL_ListViewLayout |
ListView item.
| CL_ListViewItem::CL_ListViewItem | ( | ) |
Construct a null instance.
| CL_ListViewItem::~CL_ListViewItem | ( | ) |
| void CL_ListViewItem::add_overlay_icon | ( | int | icon_index) |
Add overlay icon.
| icon_index | = value |
| CL_ListViewItem CL_ListViewItem::append_child | ( | CL_ListViewItem & | item) |
Append child.
| item | = List View Item |
| CL_Callback_v1<CL_Rect>& CL_ListViewItem::func_render_icon | ( | ) |
| int CL_ListViewItem::get_child_count | ( | bool | recursive = false, |
| bool | recurse_only_into_open_items = false |
||
| ) |
Get child count.
| recursive | = bool |
| recurse_only_into_open_items | = bool |
| CL_ListViewColumnData CL_ListViewItem::get_column | ( | const CL_StringRef & | column_id) |
Get column.
| column_id | = String Ref |
| CL_ListViewItem CL_ListViewItem::get_document_item | ( | ) |
Get Document item.
| CL_ListViewItem CL_ListViewItem::get_first_child | ( | ) |
Get First child.
| int CL_ListViewItem::get_icon | ( | ) | const |
Get the item icon id. Defaults to 0 if unset.
| int CL_ListViewItem::get_id | ( | ) | const |
Get the item id. Defaults to 0 if unset.
| CL_ListViewItem CL_ListViewItem::get_last_child | ( | ) |
Get Last child.
| CL_ListViewItem CL_ListViewItem::get_next_sibling | ( | ) |
Get Next sibling.
| std::vector<int> CL_ListViewItem::get_overlay_icons | ( | ) |
| CL_ListViewItem CL_ListViewItem::get_parent | ( | ) |
Get Parent.
| int CL_ListViewItem::get_parent_count | ( | ) |
Get Parent count.
| CL_ListViewItem CL_ListViewItem::get_prev_sibling | ( | ) |
Get Prev sibling.
| CL_SharedPtr<CL_ListViewItemUserData> CL_ListViewItem::get_userdata | ( | ) | const |
Get Userdata.
| bool CL_ListViewItem::has_children | ( | ) | const |
Has children.
| bool CL_ListViewItem::is_editable | ( | ) | const |
Is Editable.
| bool CL_ListViewItem::is_item | ( | ) | const |
Is Item.
|
inline |
Returns true if this object is invalid.
| bool CL_ListViewItem::is_open | ( | ) | const |
Is Open.
| bool CL_ListViewItem::is_selected | ( | ) | const |
Is Selected.
| bool CL_ListViewItem::operator!= | ( | CL_ListViewItem & | other) | const |
| bool CL_ListViewItem::operator== | ( | CL_ListViewItem & | other) | const |
| CL_ListViewItem CL_ListViewItem::remove | ( | ) |
Removes this item from the item tree.
| void CL_ListViewItem::remove_children | ( | ) |
Remove all children of this item.
| void CL_ListViewItem::remove_overlay_icon | ( | int | icon_index) |
Remove overlay icon.
| icon_index | = value |
| void CL_ListViewItem::set_column_text | ( | const CL_StringRef & | column_id, |
| const CL_StringRef & | text | ||
| ) |
Set column text.
| column_id | = String Ref |
| text | = String Ref |
| void CL_ListViewItem::set_editable | ( | bool | editable) |
Set editable.
| editable | = bool |
| void CL_ListViewItem::set_icon | ( | int | icon_index) |
Set icon.
| icon_index | = value |
| void CL_ListViewItem::set_id | ( | int | id) |
Set the item id. Defaults to 0 if unset.
| void CL_ListViewItem::set_open | ( | bool | open) |
Set open.
| open | = bool |
| void CL_ListViewItem::set_userdata | ( | CL_SharedPtr< CL_ListViewItemUserData > | ptr) |
Set userdata.
| ptr | = Unknown Shared Ptr |
| void CL_ListViewItem::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
|
friend |
|
friend |
|
friend |
|
friend |
1.8.4