]> git.saurik.com Git - wxWidgets.git/commitdiff
Documented wxListItemAttr.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 26 Jun 2005 13:51:29 +0000 (13:51 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 26 Jun 2005 13:51:29 +0000 (13:51 +0000)
  Clarified that item data is asociated with a wxListCtrl
item and not with subitems.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/classes.tex
docs/latex/wx/listattr.tex [new file with mode: 0644]
docs/latex/wx/listitem.tex

index 0bfe2874dcc1bee32d8023c3a1a1b846cad919db..6c55698d6db0ff2a7dc2eb50a9877561a1787614 100644 (file)
 \input listctrl.tex
 \input listevt.tex
 \input listitem.tex
+\input listattr.tex
 \input listview.tex
 \input locale.tex
 \input log.tex
diff --git a/docs/latex/wx/listattr.tex b/docs/latex/wx/listattr.tex
new file mode 100644 (file)
index 0000000..0e9e706
--- /dev/null
@@ -0,0 +1,85 @@
+\section{\class{wxListItemAttr}}\label{wxListItemAttr}
+
+Represents the attributes (color, font, \ldots) of a
+\helpref{wxListCtrl}{wxlistctrl} \helpref{wxListItem}{wxlistctrl}.
+
+\wxheading{Include files}
+
+<wx/listctrl.h>
+
+\wxheading{See also}
+
+\helpref{wxListCtrl overview}{wxlistctrloverview}, \helpref{wxListCtrl}{wxlistctrl}, \helpref{wxListItem}{wxlistitem}
+
+\latexignore{\rtfignore{\wxheading{Members}}}
+
+\membersection{wxListItemAttr::wxListItemAttr}\label{wxlistitemattrctor}
+
+\func{}{wxListItemAttr}{\void}
+
+Default constructor.
+
+\func{}{wxListItemAttr}{\param{const wxColour&}{ colText}, \param{const wxColour&}{ colBack}, \param{const wxFont&}{ font}}
+
+Construct a wxListItemAttr with the specified foreground and
+background colors and font.
+
+\membersection{wxListItemAttr::GetBackgroundColour}\label{wxlistitemattrgetbackgroundcolour}
+
+\constfunc{const wxColour\&}{GetBackgroundColour}{\void}
+
+Returns the currently set background color.
+
+
+\membersection{wxListItemAttr::GetFont}\label{wxlistitemattrgetfont}
+
+\constfunc{const wxFont\&}{GetFont}{\void}
+
+Returns the currently set font.
+
+
+\membersection{wxListItemAttr::GetTextColour}\label{wxlistitemattrgettextcolour}
+\constfunc{const wxColour\&}{GetTextColour}{\void}
+
+Returns the currently set text color.
+
+
+\membersection{wxListItemAttr::HasBackgroundColour}\label{wxlistitemattrhasbackgroundcolour}
+
+\constfunc{bool}{HasBackgroundColour}{\void}
+
+Returns \true if the currently set background color is valid.
+
+
+\membersection{wxListItemAttr::HasFont}\label{wxlistitemattrhasfont}
+
+\constfunc{bool}{HasFont}{\void}
+
+Returns \true if the currently set font is valid.
+
+
+\membersection{wxListItemAttr::HasTextColour}\label{wxlistitemattrhastextcolour}
+
+\constfunc{bool}{HasTextColour}{\void}
+
+Returns \true if the currently set text color is valid.
+
+
+\membersection{wxListItemAttr::SetBackgroundColour}\label{wxlistitemattrsetbackgroundcolour}
+
+\func{void}{SetBackgroundColour}{\param{const wxColour\& }{colour}}
+
+Sets a new background color.
+
+
+\membersection{wxListItemAttr::SetFont}\label{wxlistitemattrsetfont}
+
+\func{void}{SetFont}{\param{const wxFont\& }{font}}
+
+Sets a new font.
+
+
+\membersection{wxListItemAttr::SetTextColour}\label{wxlistitemattrsettextcolour}
+\func{void}{SetTextColour}{\param{const wxColour\& }{colour}}
+
+Sets a new text color.
index 7f5604df6cb52fb398d2598c27184c1c2ee44262..1e9919b0426788e89e5231c13f6e3a543db73890 100644 (file)
@@ -47,7 +47,8 @@ Returns the zero-based column; meaningful only in report mode.
 
 \constfunc{long}{GetData}{\void}
 
-Returns client data associated with the control.
+Returns client data associated with the control. Please note that
+client data is associated with the item and not with subitems.
 
 \membersection{wxListItem::GetFont}\label{wxlistitemgetfont}
 
@@ -144,7 +145,8 @@ Sets the zero-based column. Meaningful only in report mode.
 
 \func{void}{SetData}{\param{void* }{data}}
 
-Sets client data for the item.
+Sets client data for the item. Please note that
+client data is associated with the item and not with subitems.
 
 \membersection{wxListItem::SetFont}\label{wxlistitemsetfont}