⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 treedata.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
\section{\class{wxTreeItemData}}\label{wxtreeitemdata}wxTreeItemData is some (arbitrary) user class associated with some item. Themain advantage of having this class is that wxTreeItemData objects aredestroyed automatically by the tree and, as this class has virtual destructor,it means that the memory and any other resources associated with a tree itemwill be automatically freed when it is deleted. Note that we don't use wxObjectas the base class for wxTreeItemData because the size of this class iscritical: in many applications, each tree leaf will have wxTreeItemDataassociated with it and the number of leaves may be quite big.Also please note that because the objects of this class are deleted by the treeusing the operator {\tt delete}, they must always be allocated on the heapusing {\tt new}.\wxheading{Derived from}\helpref{wxClientData}{wxclientdata}\wxheading{Include files}<wx/treectrl.h>\wxheading{See also}\helpref{wxTreeCtrl}{wxtreectrl}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxTreeItemData::wxTreeItemData}\label{wxtreeitemdatactor}\func{}{wxTreeItemData}{\void}Default constructor.\pythonnote{The wxPython version of this constructor optionallyaccepts any Python object as a parameter.  This object is thenassociated with the tree item using the wxTreeItemData as acontainer.In addition, the following methods are added in wxPython for accessingthe object:\indented{2cm}{\begin{twocollist}\itemsep=0pt\twocolitem{{\bf GetData()}}{Returns a reference to the Python Object}\twocolitem{{\bf SetData(obj)}}{Associates a new Python Object with thewxTreeItemData}\end{twocollist}}}\perlnote{In wxPerl the constructor accepts as parameter an optional scalar, and stores it as client data. You may retrieve this data by calling {\bf GetData()}, and set it by calling {\bf SetData( data ).}}\membersection{wxTreeItemData::\destruct{wxTreeItemData}}\label{wxtreeitemdatadtor}\func{void}{\destruct{wxTreeItemData}}{\void}Virtual destructor.\membersection{wxTreeItemData::GetId}\label{wxtreeitemdatagetid}\func{const wxTreeItemId\&}{GetId}{\void}Returns the item associated with this node.\membersection{wxTreeItemData::SetId}\label{wxtreeitemdatasetid}\func{void}{SetId}{\param{const wxTreeItemId\&}{ id}}Sets the item associated with this node.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -