Applies the attributes in style to the original object, but not those attributes from style that are the same as those in compareWith (if passed).
See also combine_rich_attr for a function that does almost the same but returns a new object instead of modifying the original object.
Creates a font from the font attributes.
Returns the alignment flags. See set_rich_attr_alignment for a list of available styles.
Returns the background colour.
Returns a string containing the name of the font associated with the bullet symbol. Only valid for attributes with wxTEXT_ATTR_BULLET_SYMBOL.
Returns the standard bullet name, applicable if the bullet style is wxTEXT_ATTR_BULLET_STYLE_STANDARD. Currently the following standard bullet names are supported:
Returns the bullet number.
Returns the bullet style. See set_rich_attr_bullet_style for a list of available styles.
Returns the bullet text, which could be a symbol, or (for example) cached outline text.
Returns the name of the character style.
Returns the text foreground colour.
Returns the text effects, a bit list of styles. See set_rich_attr_effects for details.
Returns the text effect bits of interest. See set_rich_attr_flags for further information.
Returns flags indicating which attributes are applicable. See set_rich_attr_flags for a list of available flags.
Sets the font attributes from the given font.
Returns the font face name.
Returns the font size in points.
Returns the font style.
Returns the font weight
Returns the left indent in tenths of a millimetre.
Returns the left sub-indent in tenths of a millimetre.
Returns the line spacing value, one of wxTEXT_ATTR_LINE_SPACING_NORMAL, wxTEXT_ATTR_LINE_SPACING_HALF, and wxTEXT_ATTR_LINE_SPACING_TWICE.
Returns the name of the list style.
Returns the outline level.
Returns the space in tenths of a millimeter after the paragraph.
Returns the space in tenths of a millimeter before the paragraph.
Returns the name of the paragraph style.
Returns the right indent in tenths of a millimeter.
Returns a sequence of tab stops, each expressed in tenths of a millimeter. Each stop is measured from the left margin and therefore each value must be larger than the last.
Returns the URL for the content. Content with wxTEXT_ATTR_URL style causes wxRichTextCtrl to show a hand cursor over it, and wxRichTextCtrl generates a wxTextUrlEvent when the content is clicked.
Returns true if the attribute object specifies alignment.
Returns true if the attribute object specifies a background colour.
Returns true if the attribute object specifies a standard bullet name.
Returns true if the attribute object specifies a bullet number.
Returns true if the attribute object specifies a bullet style.
Returns true if the attribute object specifies bullet text (usually specifying a symbol).
Returns true if the attribute object specifies a character style name.
Returns true if the attribute object specifies text effects.
Returns true if the attribute object specifies a text effect.
Returns true if the flag is present in the attribute object's flag bitlist.
Returns true if the attribute object specifies a font face name.
Returns true if the attribute object specifies any font attributes.
Returns true if the attribute object specifies a font point size.
Returns true if the attribute object specifies font weight (bold, light or normal).
Returns true if the attribute object specifies italic style.
Returns true if the attribute object specifies a left indent.
Returns true if the attribute object specifies line spacing.
Returns true if the attribute object specifies a list style name.
Returns true if the attribute object specifies an outline level.
Returns true if the attribute object specifies a page break before this paragraph.
Returns true if the attribute object specifies spacing after a paragraph.
Returns true if the attribute object specifies spacing before a paragraph.
Returns true if the attribute object specifies a paragraph style name.
Returns true if the attribute object specifies a right indent.
Returns true if the attribute object specifies tab stops.
Returns true if the attribute object specifies a text foreground colour.
Returns true if the attribute object specifies either underlining or no underlining.
Returns true if the attribute object specifies a URL.
Returns true if the object represents a character style, that is, the flags specify a font or a text background or foreground colour.
Returns false if we have any attributes set, true otherwise.
Returns true if the object represents a paragraph style, that is, the flags specify alignment, indentation, tabs, paragraph spacing, or bullet style.
Makes a wxTextAttrEx object from attr.
Sets the paragraph alignment.
These are the possible values for alignment:
Of these, wxTEXT_ALIGNMENT_JUSTIFIED is unimplemented. In future justification may be supported when printing or previewing, only.
Sets the background colour.
Sets the name of the font associated with the bullet symbol. Only valid for attributes with wxTEXT_ATTR_BULLET_SYMBOL.
Sets the standard bullet name, applicable if the bullet style is wxTEXT_ATTR_BULLET_STYLE_STANDARD. See get_rich_attr_bullet_name for a list of supported names, and how to expand the range of supported types.
Sets the bullet number.
Sets the bullet style. The following styles can be passed:
#define wxTEXT_ATTR_BULLET_STYLE_NONE 0x00000000 #define wxTEXT_ATTR_BULLET_STYLE_ARABIC 0x00000001 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER 0x00000002 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER 0x00000004 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER 0x00000008 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER 0x00000010 #define wxTEXT_ATTR_BULLET_STYLE_SYMBOL 0x00000020 #define wxTEXT_ATTR_BULLET_STYLE_BITMAP 0x00000040 #define wxTEXT_ATTR_BULLET_STYLE_PARENTHESES 0x00000080 #define wxTEXT_ATTR_BULLET_STYLE_PERIOD 0x00000100 #define wxTEXT_ATTR_BULLET_STYLE_STANDARD 0x00000200 #define wxTEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS 0x00000400 #define wxTEXT_ATTR_BULLET_STYLE_OUTLINE 0x00000800 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_LEFT 0x00000000 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT 0x00001000 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE 0x00002000
Currently wxTEXT_ATTR_BULLET_STYLE_BITMAP is not supported.
Sets the character style name.
Sets the text effects, a bit list of styles. The following styles can be passed:
#define wxTEXT_ATTR_EFFECT_NONE 0x00000000 #define wxTEXT_ATTR_EFFECT_CAPITALS 0x00000001 #define wxTEXT_ATTR_EFFECT_SMALL_CAPITALS 0x00000002 #define wxTEXT_ATTR_EFFECT_STRIKETHROUGH 0x00000004 #define wxTEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH 0x00000008 #define wxTEXT_ATTR_EFFECT_SHADOW 0x00000010 #define wxTEXT_ATTR_EFFECT_EMBOSS 0x00000020 #define wxTEXT_ATTR_EFFECT_OUTLINE 0x00000040 #define wxTEXT_ATTR_EFFECT_ENGRAVE 0x00000080 #define wxTEXT_ATTR_EFFECT_SUPERSCRIPT 0x00000100 #define wxTEXT_ATTR_EFFECT_SUBSCRIPT 0x00000200
Of these, only wxTEXT_ATTR_EFFECT_CAPITALS and wxTEXT_ATTR_EFFECT_STRIKETHROUGH are implemented. wxTEXT_ATTR_EFFECT_CAPITALS capitalises text when displayed (leaving the case of the actual buffer text unchanged), and wxTEXT_ATTR_EFFECT_STRIKETHROUGH draws a line through text.
To set effects, you should also pass wxTEXT_ATTR_EFFECTS to set_rich_attr_flags, and call wxRichTextAttr::SetTextEffectFlags with the styles (taken from the above set) that you are interested in setting.
Sets the text effect bits of interest. You should also pass wxTEXT_ATTR_EFFECTS to set_rich_attr_flags. See set_rich_attr_flags for further information.
Sets the flags determining which styles are being specified. The following flags can be passed in a bitlist:
Standard wxTextAttr constants
#define wxTEXT_ATTR_TEXT_COLOUR 0x00000001 #define wxTEXT_ATTR_BACKGROUND_COLOUR 0x00000002 #define wxTEXT_ATTR_FONT_FACE 0x00000004 #define wxTEXT_ATTR_FONT_SIZE 0x00000008 #define wxTEXT_ATTR_FONT_WEIGHT 0x00000010 #define wxTEXT_ATTR_FONT_ITALIC 0x00000020 #define wxTEXT_ATTR_FONT_UNDERLINE 0x00000040 #define wxTEXT_ATTR_FONT \ wxTEXT_ATTR_FONT_FACE | wxTEXT_ATTR_FONT_SIZE | wxTEXT_ATTR_FONT_WEIGHT \ | wxTEXT_ATTR_FONT_ITALIC | wxTEXT_ATTR_FONT_UNDERLINE #define wxTEXT_ATTR_ALIGNMENT 0x00000080 #define wxTEXT_ATTR_LEFT_INDENT 0x00000100 #define wxTEXT_ATTR_RIGHT_INDENT 0x00000200 #define wxTEXT_ATTR_TABS 0x00000400
Extra formatting flags not in wxTextAttr
#define wxTEXT_ATTR_PARA_SPACING_AFTER 0x00000800 #define wxTEXT_ATTR_PARA_SPACING_BEFORE 0x00001000 #define wxTEXT_ATTR_LINE_SPACING 0x00002000 #define wxTEXT_ATTR_CHARACTER_STYLE_NAME 0x00004000 #define wxTEXT_ATTR_PARAGRAPH_STYLE_NAME 0x00008000 #define wxTEXT_ATTR_LIST_STYLE_NAME 0x00010000 #define wxTEXT_ATTR_BULLET_STYLE 0x00020000 #define wxTEXT_ATTR_BULLET_NUMBER 0x00040000 #define wxTEXT_ATTR_BULLET_TEXT 0x00080000 #define wxTEXT_ATTR_BULLET_NAME 0x00100000 #define wxTEXT_ATTR_URL 0x00200000 #define wxTEXT_ATTR_PAGE_BREAK 0x00400000 #define wxTEXT_ATTR_EFFECTS 0x00800000 #define wxTEXT_ATTR_OUTLINE_LEVEL 0x01000000
Sets the font face name.
Sets the font size in points.
Sets the font style (normal, italic or slanted).
Sets the left indent and left subindent in tenths of a millimetre.
The sub-indent is an offset from the left of the paragraph, and is used for all but the first line in a paragraph. A positive value will cause the first line to appear to the left of the subsequent lines, and a negative value will cause the first line to be indented relative to the subsequent lines.
wxRichTextBuffer uses indentation to render a bulleted item. The left indent is the distance between the margin and the bullet. The content of the paragraph, including the first line, starts at leftMargin + leftSubIndent. So the distance between the left edge of the bullet and the left of the actual paragraph is leftSubIndent.
Sets the line spacing. spacing is a multiple, where 10 means single-spacing, 15 means 1.5 spacing, and 20 means double spacing. The following constants are defined for convenience:
#define wxTEXT_ATTR_LINE_SPACING_NORMAL 10 #define wxTEXT_ATTR_LINE_SPACING_HALF 15 #define wxTEXT_ATTR_LINE_SPACING_TWICE 20
Sets the list style name.
Specifies the outline level. Zero represents normal text. At present, the outline level is not used, but may be used in future for determining list levels and for applications that need to store document structure information.
Specifies a page break before this paragraph.
Sets the spacing after a paragraph, in tenths of a millimetre.
Sets the spacing before a paragraph, in tenths of a millimetre.
Sets the name of the paragraph style.
Sets the right indent in tenths of a millimetre.
Sets the tab stops, expressed in tenths of a millimetre. Each stop is measured from the left margin and therefore each value must be larger than the last.
Sets the text foreground colout.
Sets the URL for the content. Sets the wxTEXT_ATTR_URL style; content with this style causes wxRichTextCtrl to show a hand cursor over it, and wxRichTextCtrl generates a wxTextUrlEvent when the content is clicked.