Lines Matching refs:item
28 // first item precedes the second, +1 if the second precedes the first or 0 if
43 // in the client area but below the last item.
45 // on the button associated with an item.
47 // on the bitmap associated with an item.
49 // in the indentation associated with an item.
51 // on the label (string) associated with an item.
53 // in the area to the right of an item.
55 // on the state icon for a tree view item that is in a user-defined state.
61 // anywhere on the item
87 // is this a valid tree item?
90 // conversion to/from either real (system-dependent) tree item id or
91 // to "long" which used to be the type for tree item ids in previous
97 void operator =(GtkTreeItem *item) { m_itemId = item; }
104 // wxTreeItemData is some (arbitrary) user class associated with some item. The
125 // accessors: set/get the item associated with this node
174 // normal tree item state (whether it is selected or not).
176 // which corresponds to an app-defined item state (for example,
185 // member functions of wxTreeItem because they must know the tree the item
193 wxString GetItemText(const wxTreeItemId& item) const;
194 // get the normal item image
195 int GetItemImage(const wxTreeItemId& item) const;
196 // get the data associated with the item
197 wxTreeItemData *GetItemData(const wxTreeItemId& item) const;
203 void SetItemText(const wxTreeItemId& item, const wxString& text);
204 // set the normal item image
205 void SetItemImage(const wxTreeItemId& item, int image);
206 // associate some data with the item
207 void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
209 // item status inquiries
212 // is the item visible (it might be outside the view or not expanded)?
213 bool IsVisible(const wxTreeItemId& item) const;
214 // does the item has any children?
215 bool ItemHasChildren(const wxTreeItemId& item) const;
216 // is the item expanded (only makes sense if HasChildren())?
217 bool IsExpanded(const wxTreeItemId& item) const;
218 // is this item currently selected (the same as has focus)?
219 bool IsSelected(const wxTreeItemId& item) const;
226 size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = true);
231 // wxTreeItemId.IsOk() will return false if there is no such item
233 // get the root tree item
236 // get the item currently selected (may return NULL if no selection)
239 // get the parent of this item (may return NULL if root)
240 wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
249 // get the last child of this item - this method doesn't use cookies
250 wxTreeItemId GetLastChild(const wxTreeItemId& item) const;
252 // get the next sibling of this item
253 wxTreeItemId GetNextSibling(const wxTreeItemId& item) const;
255 wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const;
257 // get first visible item
259 // get the next visible item: item must be visible itself!
261 wxTreeItemId GetNextVisible(const wxTreeItemId& item) const;
262 // get the previous visible item: item must be visible itself!
263 wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
273 // insert a new item in as the first child of the parent
279 // insert a new item after a given one
286 // insert a new item in as the last child of the parent
292 // delete this item and associated data if any
293 void Delete(const wxTreeItemId& item);
297 // expand this item
298 void Expand(const wxTreeItemId& item);
299 // collapse the item without removing its children
300 void Collapse(const wxTreeItemId& item);
301 // collapse the item and remove all children
302 void CollapseAndReset(const wxTreeItemId& item);
304 void Toggle(const wxTreeItemId& item);
306 // remove the selection from currently selected item (if any)
308 // select this item
309 void SelectItem(const wxTreeItemId& item);
310 // make sure this item is visible (expanding the parent item and/or
311 // scrolling to this item if necessary)
312 void EnsureVisible(const wxTreeItemId& item);
313 // scroll to this item (but don't expand its parent)
314 void ScrollTo(const wxTreeItemId& item);
316 // start editing the item label: this (temporarily) replaces the item
317 // with a one line edit control. The item will be selected if it hadn't
320 wxTextCtrl* EditLabel(const wxTreeItemId& item,
322 // returns the same pointer as StartEdit() if the item is being edited,
323 // NULL otherwise (it's assumed that no more than one item may be
326 // end editing and accept or discard the changes to item label
327 void EndEditLabel(const wxTreeItemId& item, bool discardChanges = false);
329 // sort the children of this item using the specified callback function
334 void SortChildren(const wxTreeItemId& item,
347 wxDEPRECATED( void ExpandItem(const wxTreeItemId& item, int action) );
354 wxDEPRECATED( int GetItemSelectedImage(const wxTreeItemId& item) const );
355 wxDEPRECATED( void SetItemSelectedImage(const wxTreeItemId& item, int image) );
358 wxDEPRECATED( wxTreeItemId GetFirstChild(const wxTreeItemId& item,
360 wxDEPRECATED( wxTreeItemId GetNextChild(const wxTreeItemId& item,
374 void SendExpanding(const wxTreeItemId& item);
375 void SendExpanded(const wxTreeItemId& item);
376 void SendCollapsing(const wxTreeItemId& item);
377 void SendCollapsed(const wxTreeItemId& item);
378 void SendSelChanging(const wxTreeItemId& item);
379 void SendSelChanged(const wxTreeItemId& item);
392 void SendMessage(wxEventType command, const wxTreeItemId& item);
397 // insert a new item in as the last child of the parent