wxRichTextAttr
Functions/Procedures
- proc apply_rich_attr( atom attr, atom compare_with )
- func create_font_from_rich_attr( atom attr )
- func get_rich_attr_alignment( atom attr )
- func get_rich_attr_back_color( atom attr )
- func get_rich_attr_bullet_font( atom attr )
- func get_rich_attr_bullet_name( atom attr )
- func get_rich_attr_bullet_number( atom attr )
- func get_rich_attr_bullet_style( atom attr )
- func get_rich_attr_bullet_text( atom attr )
- func get_rich_attr_char_style( atom attr )
- func get_rich_attr_color( atom attr )
- func get_rich_attr_effects( atom attr )
- func get_rich_attr_effect_flags( atom attr )
- func get_rich_attr_flags( atom attr )
- func get_rich_attr_font_attributes( atom attr, atom font )
- func get_rich_attr_font_name( atom attr )
- func get_rich_attr_font_size( atom attr )
- func get_rich_attr_font_style( atom attr )
- func get_rich_attr_font_weight( atom attr )
- func get_rich_attr_left_indent( atom attr )
- func get_rich_attr_left_sub_indent( atom attr )
- func get_rich_attr_line_spacing( atom attr )
- func get_rich_attr_list_style( atom attr )
- func get_rich_attr_outline_level( atom attr )
- func get_rich_attr_para_spacing_after( atom attr )
- func get_rich_attr_para_spacing_before( atom attr )
- func get_rich_attr_para_style( atom attr )
- func get_rich_attr_right_indent( atom attr )
- func get_rich_attr_tabs( atom attr )
- func get_rich_attr_underlined( atom attr )
- func get_rich_attr_url( atom attr )
- func has_alignment_rich_attr( atom attr )
- func has_back_color_rich_attr( atom attr )
- func has_bullet_name_rich_attr( atom attr )
- func has_bullet_number_rich_attr( atom attr )
- func has_bullet_style_rich_attr( atom attr )
- func has_bullet_text_rich_attr( atom attr )
- func has_char_style_rich_attr( atom attr )
- func has_effects_rich_attr( atom attr )
- func has_effect_rich_attr( atom attr, atom effect )
- func has_flag_rich_attr( atom attr, atom flag )
- func has_font_name_rich_attr( atom attr )
- func has_font_rich_attr( atom attr )
- func has_font_size_rich_attr( atom attr )
- func has_font_weight_rich_attr( atom attr )
- func has_italic_rich_attr( atom attr )
- func has_left_indent_rich_attr( atom attr )
- func has_line_spacing_rich_attr( atom attr )
- func has_list_style_rich_attr( atom attr )
- func has_outline_level_rich_attr( atom attr )
- func has_page_break_rich_attr( atom attr )
- func has_para_spacing_after_rich_attr( atom attr )
- func has_para_spacing_before_rich_attr( atom attr )
- func has_para_style_rich_attr( atom attr )
- func has_right_indent_rich_attr( atom attr )
- func has_tabs_rich_attr( atom attr )
- func has_text_color_rich_attr( atom attr )
- func has_underlined_rich_attr( atom attr )
- func has_url_rich_attr( atom attr )
- func is_rich_attr_char_style( atom attr )
- func is_rich_attr_default( atom attr )
- func is_rich_attr_para_style( atom attr )
- func rich_to_textex_attr( atom attr )
- proc set_rich_attr_alignment( atom attr, atom align )
- proc set_rich_attr_back_color( atom attr, atom color )
- proc set_rich_attr_bullet_font( atom attr, object font_name )
- proc set_rich_attr_bullet_name( atom attr, object name )
- proc set_rich_attr_bullet_number( atom attr, atom number )
- proc set_rich_attr_bullet_style( atom attr, atom style )
- proc set_rich_attr_char_style( atom attr, object style )
- proc set_rich_attr_effects( atom attr, atom effects )
- proc set_rich_attr_effect_flags( atom attr, atom flags )
- proc set_rich_attr_flags( atom attr, atom flags )
- proc set_rich_attr_font_name( atom attr, object name )
- proc set_rich_attr_font_size( atom attr, atom points )
- proc set_rich_attr_font_style( atom attr, atom style )
- proc set_rich_attr_left_indent( atom attr, atom indent, atom sub_indent )
- proc set_rich_attr_line_spacing( atom attr, atom space )
- proc set_rich_attr_list_style( atom attr, object style )
- proc set_rich_attr_outline_level( atom attr, atom level )
- proc set_rich_attr_page_break( atom attr, atom page_break )
- proc set_rich_attr_para_spacing_after( atom attr, atom space )
- proc set_rich_attr_para_spacing_before( atom attr, atom space )
- proc set_rich_attr_para_style( atom attr, object style )
- proc set_rich_attr_right_indent( atom attr, atom indent )
- proc set_rich_attr_tabs( atom attr, object tabs )
- proc set_rich_attr_text_color( atom attr, atom color )
- proc set_rich_attr_underlined( atom attr, atom underline )
- proc set_rich_attr_url( atom attr, object url )
Supertopics
wxRichTextAttr
Category:
wxRichTextAttr
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.
wxRichTextAttr
Category:
wxRichTextAttr
Creates a font from the font attributes.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the alignment flags. See set_rich_attr_alignment for a list of available styles.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the background colour.
wxRichTextAttr
Category:
wxRichTextAttr
Returns a string containing the name of the font associated with the bullet symbol. Only valid for attributes with wxTEXT_ATTR_BULLET_SYMBOL.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the standard bullet name, applicable if the bullet style is wxTEXT_ATTR_BULLET_STYLE_STANDARD.
Currently the following standard bullet names are supported:
- standard/circle
- standard/square
- standard/diamond
- standard/triangle
If you wish your application to support further bullet graphics, you can derive a class from wxRichTextRenderer or
wxRichTextStdRenderer, override DrawStandardBullet and EnumerateStandardBulletNames, and set an instance of the class
using
set_rich_text_renderer.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the bullet number.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the bullet style. See set_rich_attr_bullet_style for a list of available styles.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the bullet text, which could be a symbol, or (for example) cached outline text.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the name of the character style.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the text foreground colour.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the text effects, a bit list of styles. See set_rich_attr_effects for details.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the text effect bits of interest. See set_rich_attr_flags for further information.
wxRichTextAttr
Category:
wxRichTextAttr
Returns flags indicating which attributes are applicable. See set_rich_attr_flags for a list of available flags.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the font attributes from the given font.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the font face name.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the font size in points.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the font style.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the font weight
wxRichTextAttr
Category:
wxRichTextAttr
Returns the left indent in tenths of a millimetre.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the left sub-indent in tenths of a millimetre.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the line spacing value, one of wxTEXT_ATTR_LINE_SPACING_NORMAL, wxTEXT_ATTR_LINE_SPACING_HALF, and wxTEXT_ATTR_LINE_SPACING_TWICE.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the name of the list style.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the outline level.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the space in tenths of a millimeter after the paragraph.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the space in tenths of a millimeter before the paragraph.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the name of the paragraph style.
wxRichTextAttr
Category:
wxRichTextAttr
Returns the right indent in tenths of a millimeter.
wxRichTextAttr
Category:
wxRichTextAttr
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.
wxRichTextAttr
Category:
wxRichTextAttr
wxRichTextAttr
Category:
wxRichTextAttr
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.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies alignment.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a background colour.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a standard bullet name.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a bullet number.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a bullet style.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies bullet text (usually specifying a symbol).
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a character style name.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies text effects.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a text effect.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the flag is present in the attribute object's flag bitlist.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a font face name.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies any font attributes.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a font point size.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies font weight (bold, light or normal).
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies italic style.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a left indent.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies line spacing.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a list style name.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies an outline level.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a page break before this paragraph.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies spacing after a paragraph.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies spacing before a paragraph.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a paragraph style name.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a right indent.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies tab stops.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a text foreground colour.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies either underlining or no underlining.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the attribute object specifies a URL.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the object represents a character style, that is, the flags specify a font or a text background or foreground colour.
wxRichTextAttr
Category:
wxRichTextAttr
Returns false if we have any attributes set, true otherwise.
wxRichTextAttr
Category:
wxRichTextAttr
Returns true if the object represents a paragraph style, that is, the flags specify alignment, indentation, tabs, paragraph spacing,
or bullet style.
wxRichTextAttr
Category:
wxRichTextAttr
Makes a wxTextAttrEx object from attr.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the paragraph alignment.
These are the possible values for alignment:
- wxTEXT_ALIGNMENT_DEFAULT
- wxTEXT_ALIGNMENT_LEFT
- wxTEXT_ALIGNMENT_CENTRE
- wxTEXT_ALIGNMENT_CENTER
- wxTEXT_ALIGNMENT_RIGHT
- wxTEXT_ALIGNMENT_JUSTIFIED
Of these, wxTEXT_ALIGNMENT_JUSTIFIED is unimplemented. In future justification may be supported when printing or previewing, only.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the background colour.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the name of the font associated with the bullet symbol. Only valid for attributes with wxTEXT_ATTR_BULLET_SYMBOL.
wxRichTextAttr
Category:
wxRichTextAttr
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.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the bullet number.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the bullet style. The following styles can be passed:
- wxTEXT_ATTR_BULLET_STYLE_NONE
- wxTEXT_ATTR_BULLET_STYLE_ARABIC
- wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
- wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
- wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
- wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
- wxTEXT_ATTR_BULLET_STYLE_SYMBOL
- wxTEXT_ATTR_BULLET_STYLE_BITMAP
- wxTEXT_ATTR_BULLET_STYLE_PARENTHESES
- wxTEXT_ATTR_BULLET_STYLE_PERIOD
- wxTEXT_ATTR_BULLET_STYLE_STANDARD
- wxTEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS
- wxTEXT_ATTR_BULLET_STYLE_OUTLINE
- wxTEXT_ATTR_BULLET_STYLE_ALIGN_LEFT
- wxTEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT
- wxTEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE
Currently wxTEXT_ATTR_BULLET_STYLE_BITMAP is not supported.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the character style name.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the text effects, a bit list of styles. The following styles can be passed:
- wxTEXT_ATTR_EFFECT_NONE
- wxTEXT_ATTR_EFFECT_CAPITALS
- wxTEXT_ATTR_EFFECT_SMALL_CAPITALS
- wxTEXT_ATTR_EFFECT_STRIKETHROUGH
- wxTEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH
- wxTEXT_ATTR_EFFECT_SHADOW
- wxTEXT_ATTR_EFFECT_EMBOSS
- wxTEXT_ATTR_EFFECT_OUTLINE
- wxTEXT_ATTR_EFFECT_ENGRAVE
- wxTEXT_ATTR_EFFECT_SUPERSCRIPT
- wxTEXT_ATTR_EFFECT_SUBSCRIPT
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.
wxRichTextAttr
Category:
wxRichTextAttr
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.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the flags determining which styles are being specified. The following flags can be passed in a bitlist:
Standard wxTextAttr constants:
- wxTEXT_ATTR_TEXT_COLOUR
- wxTEXT_ATTR_BACKGROUND_COLOUR
- wxTEXT_ATTR_FONT_FACE
- wxTEXT_ATTR_FONT_SIZE
- wxTEXT_ATTR_FONT_WEIGHT
- wxTEXT_ATTR_FONT_ITALIC
- wxTEXT_ATTR_FONT_UNDERLINE
- wxTEXT_ATTR_FONT
- wxTEXT_ATTR_ALIGNMENT
- wxTEXT_ATTR_LEFT_INDENT
- wxTEXT_ATTR_RIGHT_INDENT
- wxTEXT_ATTR_TABS
Extra formatting flags not in wxTextAttr
- wxTEXT_ATTR_PARA_SPACING_AFTER
- wxTEXT_ATTR_PARA_SPACING_BEFORE
- wxTEXT_ATTR_LINE_SPACING
- wxTEXT_ATTR_CHARACTER_STYLE_NAME
- wxTEXT_ATTR_PARAGRAPH_STYLE_NAME
- wxTEXT_ATTR_LIST_STYLE_NAME
- wxTEXT_ATTR_BULLET_STYLE
- wxTEXT_ATTR_BULLET_NUMBER
- wxTEXT_ATTR_BULLET_TEXT
- wxTEXT_ATTR_BULLET_NAME
- wxTEXT_ATTR_URL
- wxTEXT_ATTR_PAGE_BREAK
- wxTEXT_ATTR_EFFECTS
- wxTEXT_ATTR_OUTLINE_LEVEL
wxRichTextAttr
Category:
wxRichTextAttr
Sets the font face name.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the font size in points.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the font style (normal, italic or slanted).
wxRichTextAttr
Category:
wxRichTextAttr
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.
wxRichTextAttr
Category:
wxRichTextAttr
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:
- wxTEXT_ATTR_LINE_SPACING_NORMAL (= 10)
- wxTEXT_ATTR_LINE_SPACING_HALF (= 15)
- wxTEXT_ATTR_LINE_SPACING_TWICE (= 20)
wxRichTextAttr
Category:
wxRichTextAttr
Sets the list style name.
wxRichTextAttr
Category:
wxRichTextAttr
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.
wxRichTextAttr
Category:
wxRichTextAttr
Specifies a page break before this paragraph.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the spacing after a paragraph, in tenths of a millimetre.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the spacing before a paragraph, in tenths of a millimetre.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the name of the paragraph style.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the right indent in tenths of a millimetre.
wxRichTextAttr
Category:
wxRichTextAttr
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.
wxRichTextAttr
Category:
wxRichTextAttr
Sets the text foreground colout.
wxRichTextAttr
Category:
wxRichTextAttr
wxRichTextAttr
Category:
wxRichTextAttr
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.