added wxTextAttr::Merge (modified patch 1482719)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-06 16:16:25 +00:00
parent 6e86472fa5
commit 53ee60908a
3 changed files with 31 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ All (GUI):
- Added an easier to use wxMenu::AppendSubMenu()
- wxString <-> wxColour conversions in wxColour class (Francesco Montorsi).
- Fixed bug with ignoring blank lines in multiline wxGrid cell labels
- Added wxTextAttr::Merge() (Marcin Simonides)
wxMSW:

View File

@@ -197,6 +197,20 @@ Returns a bitlist indicating which attributes will be set.
Returns {\tt true} if this style specifies any non-default attributes.
\membersection{wxTextAttr::Merge}\label{wxtextattrmerge}
\func{void}{Merge}{\param{const wxTextAttr\&}{ overlay}}
Copies all defined/valid properties from \arg{overlay} to current object.
\func{static wxTextAttr}{Merge}{\param{const wxTextAttr\&}{ base}, \param{const wxTextAttr\&}{ overlay}}
Creates a new {\tt wxTextAttr} which is a merge of \arg{base} and
\arg{overlay}. Properties defined in \arg{overlay} take precedence over those
in \arg{base}. Properties undefined/invalid in both are undefined in the
result.
\membersection{wxTextAttr::SetAlignment}\label{wxtextattrsetalignment}
\func{void}{SetAlignment}{\param{wxTextAttrAlignment}{ alignment}}