Merged wxRichTextAttr and wxTextAttrEx into wxTextAttr, and added a font table
to wxRichTextBuffer to reduce wxFont consumption and increase performance. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,7 +18,7 @@ wxRichTextParagraphLayoutBox
|
||||
|
||||
\wxheading{See also}
|
||||
|
||||
\helpref{wxTextAttr}{wxtextattr}, \helpref{wxTextAttrEx}{wxtextattrex}, \helpref{wxRichTextAttr}{wxrichtextattr}, \helpref{wxRichTextCtrl}{wxrichtextctrl}
|
||||
\helpref{wxTextAttr}{wxtextattr}, \helpref{wxRichTextCtrl}{wxrichtextctrl}
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
@@ -209,7 +209,7 @@ Begins a right indent, specified in tenths of a millimetre.
|
||||
|
||||
\membersection{wxRichTextBuffer::BeginStyle}\label{wxrichtextbufferbeginstyle}
|
||||
|
||||
\func{bool}{BeginStyle}{\param{const wxTextAttrEx\& }{style}}
|
||||
\func{bool}{BeginStyle}{\param{const wxTextAttr\& }{style}}
|
||||
|
||||
Begins using a specified style.
|
||||
|
||||
@@ -481,7 +481,7 @@ Finds a handler by filename or, if supplied, type.
|
||||
|
||||
\membersection{wxRichTextBuffer::GetBasicStyle}\label{wxrichtextbuffergetbasicstyle}
|
||||
|
||||
\constfunc{const wxTextAttrEx\&}{GetBasicStyle}{\void}
|
||||
\constfunc{const wxTextAttr\&}{GetBasicStyle}{\void}
|
||||
|
||||
Gets the basic (overall) style. This is the style of the whole
|
||||
buffer before further styles are applied, unlike the default style, which
|
||||
@@ -503,7 +503,7 @@ initialized.
|
||||
|
||||
\membersection{wxRichTextBuffer::GetDefaultStyle}\label{wxrichtextbuffergetdefaultstyle}
|
||||
|
||||
\constfunc{const wxTextAttrEx\&}{GetDefaultStyle}{\void}
|
||||
\constfunc{const wxTextAttr\&}{GetDefaultStyle}{\void}
|
||||
|
||||
Returns the current default style, affecting the style currently being applied (for example, setting the default
|
||||
style to bold will cause subsequently inserted text to be bold).
|
||||
@@ -530,9 +530,7 @@ Returns the object to be used to render certain aspects of the content, such as
|
||||
|
||||
\membersection{wxRichTextBuffer::GetStyle}\label{wxrichtextbuffergetstyle}
|
||||
|
||||
\func{bool}{GetStyle}{\param{long }{position}, \param{wxRichTextAttr\& }{style}}
|
||||
|
||||
\func{bool}{GetStyle}{\param{long }{position}, \param{wxTextAttrEx\& }{style}}
|
||||
\func{bool}{GetStyle}{\param{long }{position}, \param{wxTextAttr\& }{style}}
|
||||
|
||||
Gets the attributes at the given position.
|
||||
|
||||
@@ -542,7 +540,7 @@ or paragraph style alone, use \helpref{GetUncombinedStyle}{wxrichtextbuffergetun
|
||||
|
||||
\membersection{wxRichTextBuffer::GetStyleForRange}\label{wxrichtextbuffergetstyleforrange}
|
||||
|
||||
\func{bool}{GetStyleForRange}{\param{const wxRichTextRange\&}{ range}, \param{wxTextAttrEx\& }{style}}
|
||||
\func{bool}{GetStyleForRange}{\param{const wxRichTextRange\&}{ range}, \param{wxTextAttr\& }{style}}
|
||||
|
||||
This function gets a style representing the common, combined attributes in the given range.
|
||||
Attributes which have different values within the specified range will not be included the style
|
||||
@@ -577,9 +575,7 @@ Get the size of the style stack, for example to check correct nesting.
|
||||
|
||||
\membersection{wxRichTextBuffer::GetUncombinedStyle}\label{wxrichtextbuffergetuncombinedstyle}
|
||||
|
||||
\func{bool}{GetUncombinedStyle}{\param{long }{position}, \param{wxRichTextAttr\& }{style}}
|
||||
|
||||
\func{bool}{GetUncombinedStyle}{\param{long }{position}, \param{wxTextAttrEx\& }{style}}
|
||||
\func{bool}{GetUncombinedStyle}{\param{long }{position}, \param{wxTextAttr\& }{style}}
|
||||
|
||||
Gets the attributes at the given position.
|
||||
|
||||
@@ -749,9 +745,7 @@ Saves content to a file.
|
||||
|
||||
\membersection{wxRichTextBuffer::SetBasicStyle}\label{wxrichtextbuffersetbasicstyle}
|
||||
|
||||
\func{void}{SetBasicStyle}{\param{const wxRichTextAttr\& }{style}}
|
||||
|
||||
\func{void}{SetBasicStyle}{\param{const wxTextAttrEx\& }{style}}
|
||||
\func{void}{SetBasicStyle}{\param{const wxTextAttr\& }{style}}
|
||||
|
||||
Sets the basic (overall) style. This is the style of the whole
|
||||
buffer before further styles are applied, unlike the default style, which
|
||||
@@ -760,7 +754,7 @@ style to bold will cause subsequently inserted text to be bold).
|
||||
|
||||
\membersection{wxRichTextBuffer::SetDefaultStyle}\label{wxrichtextbuffersetdefaultstyle}
|
||||
|
||||
\func{void}{SetDefaultStyle}{\param{const wxTextAttrEx\& }{style}}
|
||||
\func{void}{SetDefaultStyle}{\param{const wxTextAttr\& }{style}}
|
||||
|
||||
Sets the default style, affecting the style currently being applied (for example, setting the default
|
||||
style to bold will cause subsequently inserted text to be bold).
|
||||
@@ -796,9 +790,7 @@ overriding one or more virtual functions, and setting an instance of the class u
|
||||
|
||||
\membersection{wxRichTextBuffer::SetStyle}\label{wxrichtextbuffersetstyle}
|
||||
|
||||
\func{bool}{SetStyle}{\param{const wxRichTextRange\& }{range}, \param{const wxRichTextAttr\& }{style}, \param{int }{flags $=$ wxRICHTEXT\_SETSTYLE\_WITH\_UNDO}}
|
||||
|
||||
\func{bool}{SetStyle}{\param{const wxRichTextRange\& }{range}, \param{const wxTextAttrEx\& }{style}, \param{int }{flags $=$ wxRICHTEXT\_SETSTYLE\_WITH\_UNDO}}
|
||||
\func{bool}{SetStyle}{\param{const wxRichTextRange\& }{range}, \param{const wxTextAttr\& }{style}, \param{int }{flags $=$ wxRICHTEXT\_SETSTYLE\_WITH\_UNDO}}
|
||||
|
||||
Sets the attributes for the given range. Pass flags to determine how the attributes are set.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user