]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dataviewtreectrl.tex
Added wxRect::Intersect() documentation (patch 1868322 from Laurent Humbertclaude).
[wxWidgets.git] / docs / latex / wx / dataviewtreectrl.tex
CommitLineData
a75124d0
RR
1\section{\class{wxDataViewTreeCtrl}}\label{wxdataviewtreectrl}
2
3This class is a \helpref{wxDataViewCtrl}{wxdataviewctrl} which internally
4uses a \helpref{wxDataViewTreeStore}{wxdataviewtreestore} and forwards
95aefe51 5most of its API to that class. Additionally, it uses a \helpref{wxImageList}{wximagelist}
a75124d0
RR
6to store a list of icons. The main purpose of this class is to look
7like a \helpref{wxTreeCtrl}{wxtreectrl} to make a transition from it
8to the wxDataViewCtrl class simpler.
9
10\wxheading{Derived from}
11
12\helpref{wxDataViewCtrl}{wxdataviewctrl}
13
14\wxheading{Include files}
15
16<dataview.h>
17
18\wxheading{Data structures}
19
20\latexignore{\rtfignore{\wxheading{Members}}}
21
22
23\membersection{wxDataViewTreeCtrl::wxDataViewTreeCtrl}\label{wxdataviewtreectrlwxdataviewtreectrl}
24
25\func{}{wxDataViewTreeCtrl}{\void}
26
27Default constructor.
28
29\func{}{wxDataViewTreeCtrl}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{long }{style = wxDV\_NO\_HEADER}, \param{const wxValidator\& }{validator = wxDefaultValidator}}
30
31Constructor. Calls \helpref{Create}{wxdataviewtreectrlcreate}.
32
33\membersection{wxDataViewTreeCtrl::\destruct{wxDataViewTreeCtrl}}\label{wxdataviewtreectrldtor}
34
35\func{}{\destruct{wxDataViewTreeCtrl}}{\void}
36
37Destructor. Deletes the image list if any.
38
39\membersection{wxDataViewTreeCtrl::AppendContainer}\label{wxdataviewtreectrlappendcontainer}
40
41\func{wxDataViewItem}{AppendContainer}{\param{const wxDataViewItem\& }{parent}, \param{const wxString\& }{text}, \param{int }{icon = -1}, \param{int }{expanded = -1}, \param{wxClientData* }{data = NULL}}
42
43
44\membersection{wxDataViewTreeCtrl::AppendItem}\label{wxdataviewtreectrlappenditem}
45
46\func{wxDataViewItem}{AppendItem}{\param{const wxDataViewItem\& }{parent}, \param{const wxString\& }{text}, \param{int }{icon = -1}, \param{wxClientData* }{data = NULL}}
47
48
49\membersection{wxDataViewTreeCtrl::Create}\label{wxdataviewtreectrlcreate}
50
51\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{long }{style = wxDV\_NO\_HEADER}, \param{const wxValidator\& }{validator = wxDefaultValidator}}
52
53Creates the control and a \helpref{wxDataViewTreeStore}{wxdataviewtreestore} as
54its internal model.
55
56\membersection{wxDataViewTreeCtrl::DeleteAllItems}\label{wxdataviewtreectrldeleteallitems}
57
58\func{void}{DeleteAllItems}{\void}
59
60Calls the identical method from wxDataViewTreeStore.
61
62\membersection{wxDataViewTreeCtrl::DeleteChildren}\label{wxdataviewtreectrldeletechildren}
63
64\func{void}{DeleteChildren}{\param{const wxDataViewItem\& }{item}}
65
66Calls the identical method from wxDataViewTreeStore.
67
68\membersection{wxDataViewTreeCtrl::DeleteItem}\label{wxdataviewtreectrldeleteitem}
69
70\func{void}{DeleteItem}{\param{const wxDataViewItem\& }{item}}
71
72Calls the identical method from wxDataViewTreeStore.
73
74\membersection{wxDataViewTreeCtrl::GetChildCount}\label{wxdataviewtreectrlgetchildcount}
75
76\constfunc{int}{GetChildCount}{\param{const wxDataViewItem\& }{parent}}
77
78Calls the identical method from wxDataViewTreeStore.
79
80\membersection{wxDataViewTreeCtrl::GetImageList}\label{wxdataviewtreectrlgetimagelist}
81
82\func{wxImageList*}{GetImageList}{\void}
83
84Returns the image list.
85
86\membersection{wxDataViewTreeCtrl::GetItemData}\label{wxdataviewtreectrlgetitemdata}
87
88\constfunc{wxClientData*}{GetItemData}{\param{const wxDataViewItem\& }{item}}
89
90Calls the identical method from wxDataViewTreeStore.
91
92\membersection{wxDataViewTreeCtrl::GetItemExpandedIcon}\label{wxdataviewtreectrlgetitemexpandedicon}
93
94\constfunc{const wxIcon\&}{GetItemExpandedIcon}{\param{const wxDataViewItem\& }{item}}
95
96Calls the identical method from wxDataViewTreeStore.
97
98\membersection{wxDataViewTreeCtrl::GetItemIcon}\label{wxdataviewtreectrlgetitemicon}
99
100\constfunc{const wxIcon\&}{GetItemIcon}{\param{const wxDataViewItem\& }{item}}
101
102Calls the identical method from wxDataViewTreeStore.
103
104\membersection{wxDataViewTreeCtrl::GetItemText}\label{wxdataviewtreectrlgetitemtext}
105
106\constfunc{wxString}{GetItemText}{\param{const wxDataViewItem\& }{item}}
107
108Calls the identical method from wxDataViewTreeStore.
109
110\membersection{wxDataViewTreeCtrl::GetNthChild}\label{wxdataviewtreectrlgetnthchild}
111
112\constfunc{wxDataViewItem}{GetNthChild}{\param{const wxDataViewItem\& }{parent}, \param{unsigned int }{pos}}
113
114Calls the identical method from wxDataViewTreeStore.
115
116\membersection{wxDataViewTreeCtrl::GetStore}\label{wxdataviewtreectrlgetstore}
117
118\func{wxDataViewTreeStore*}{GetStore}{\void}
119
120\constfunc{const wxDataViewTreeStore*}{GetStore}{\void}
121
122Returns the store.
123
124\membersection{wxDataViewTreeCtrl::InsertContainer}\label{wxdataviewtreectrlinsertcontainer}
125
126\func{wxDataViewItem}{InsertContainer}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItem\& }{previous}, \param{const wxString\& }{text}, \param{int }{icon = -1}, \param{int }{expanded = -1}, \param{wxClientData* }{data = NULL}}
127
128Calls the same method from wxDataViewTreeStore but uess
129and index position in the image list instead of a wxIcon.
130
131\membersection{wxDataViewTreeCtrl::InsertItem}\label{wxdataviewtreectrlinsertitem}
132
133\func{wxDataViewItem}{InsertItem}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItem\& }{previous}, \param{const wxString\& }{text}, \param{int }{icon = -1}, \param{wxClientData* }{data = NULL}}
134
135Calls the same method from wxDataViewTreeStore but uess
136and index position in the image list instead of a wxIcon.
137
138\membersection{wxDataViewTreeCtrl::PrependContainer}\label{wxdataviewtreectrlprependcontainer}
139
140\func{wxDataViewItem}{PrependContainer}{\param{const wxDataViewItem\& }{parent}, \param{const wxString\& }{text}, \param{int }{icon = -1}, \param{int }{expanded = -1}, \param{wxClientData* }{data = NULL}}
141
142Calls the same method from wxDataViewTreeStore but uess
143and index position in the image list instead of a wxIcon.
144
145\membersection{wxDataViewTreeCtrl::PrependItem}\label{wxdataviewtreectrlprependitem}
146
147\func{wxDataViewItem}{PrependItem}{\param{const wxDataViewItem\& }{parent}, \param{const wxString\& }{text}, \param{int }{icon = -1}, \param{wxClientData* }{data = NULL}}
148
149Calls the same method from wxDataViewTreeStore but uess
150and index position in the image list instead of a wxIcon.
151
152\membersection{wxDataViewTreeCtrl::SetImageList}\label{wxdataviewtreectrlsetimagelist}
153
154\func{void}{SetImageList}{\param{wxImageList* }{imagelist}}
155
156Sets the image list.
157
158\membersection{wxDataViewTreeCtrl::SetItemData}\label{wxdataviewtreectrlsetitemdata}
159
160\func{void}{SetItemData}{\param{const wxDataViewItem\& }{item}, \param{wxClientData* }{data}}
161
162Calls the identical method from wxDataViewTreeStore.
163
164
165\membersection{wxDataViewTreeCtrl::SetItemExpandedIcon}\label{wxdataviewtreectrlsetitemexpandedicon}
166
167\func{void}{SetItemExpandedIcon}{\param{const wxDataViewItem\& }{item}, \param{const wxIcon\& }{icon}}
168
169Calls the identical method from wxDataViewTreeStore.
170
171
172\membersection{wxDataViewTreeCtrl::SetItemIcon}\label{wxdataviewtreectrlsetitemicon}
173
174\func{void}{SetItemIcon}{\param{const wxDataViewItem\& }{item}, \param{const wxIcon\& }{icon}}
175
176Calls the identical method from wxDataViewTreeStore.
177
178
179\membersection{wxDataViewTreeCtrl::SetItemText}\label{wxdataviewtreectrlsetitemtext}
180
181\func{void}{SetItemText}{\param{const wxDataViewItem\& }{item}, \param{const wxString\& }{text}}
182
183Calls the identical method from wxDataViewTreeStore.