From: Mattia Barbon Date: Sun, 26 Jun 2005 13:51:29 +0000 (+0000) Subject: Documented wxListItemAttr. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af90bd48809d7174578da339b4797389692a1472 Documented wxListItemAttr. 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 --- diff --git a/docs/latex/wx/classes.tex b/docs/latex/wx/classes.tex index 0bfe2874dc..6c55698d6d 100644 --- a/docs/latex/wx/classes.tex +++ b/docs/latex/wx/classes.tex @@ -200,6 +200,7 @@ \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 index 0000000000..0e9e7069a9 --- /dev/null +++ b/docs/latex/wx/listattr.tex @@ -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} + + + +\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. diff --git a/docs/latex/wx/listitem.tex b/docs/latex/wx/listitem.tex index 7f5604df6c..1e9919b042 100644 --- a/docs/latex/wx/listitem.tex +++ b/docs/latex/wx/listitem.tex @@ -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}