listattr.tex

来自「Wxpython Implemented on Windows CE, Sou」· TEX 代码 · 共 89 行

TEX
89
字号
\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.

⌨️ 快捷键说明

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