Ewl_Text_Context: A text formatting context
Detailed Description
Defines a class for text formatting information.
Data Structures | |
struct | Ewl_Text_Context |
Stores context information for the different formatting nodes. More... | |
Typedefs | |
typedef struct Ewl_Text_Context | Ewl_Text_Context |
Functions | |
void | ewl_text_context_acquire (Ewl_Text_Context *tx) |
Ewl_Text_Context * | ewl_text_context_find (Ewl_Text_Context *tx, unsigned int context_mask, Ewl_Text_Context *tx_change) |
void | ewl_text_context_format_string_create (Ewl_Text_Context *ctx) |
int | ewl_text_context_init (void) |
Ewl_Text_Context * | ewl_text_context_new (void) |
void | ewl_text_context_print (Ewl_Text_Context *tx, const char *indent) |
int | ewl_text_context_release (Ewl_Text_Context *tx) |
void | ewl_text_context_shutdown (void) |
Typedef Documentation
typedef struct Ewl_Text_Context Ewl_Text_Context |
A context node for formatting information
Function Documentation
void ewl_text_context_acquire | ( | Ewl_Text_Context * | tx | ) |
References DCHECK_PARAM_PTR, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, and ref_count.
Referenced by ewl_text_context_find(), ewl_text_fmt_node_append(), ewl_text_fmt_node_new(), and ewl_text_init().
Ewl_Text_Context* ewl_text_context_find | ( | Ewl_Text_Context * | tx, | |
unsigned int | context_mask, | |||
Ewl_Text_Context * | tx_change | |||
) |
References align, bg, color, DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, double_underline, DRETURN_PTR, ewl_text_context_acquire(), EWL_TEXT_CONTEXT_MASK_ALIGN, EWL_TEXT_CONTEXT_MASK_BG_COLOR, EWL_TEXT_CONTEXT_MASK_COLOR, EWL_TEXT_CONTEXT_MASK_DOUBLE_UNDERLINE_COLOR, EWL_TEXT_CONTEXT_MASK_FONT, EWL_TEXT_CONTEXT_MASK_GLOW_COLOR, EWL_TEXT_CONTEXT_MASK_OUTLINE_COLOR, EWL_TEXT_CONTEXT_MASK_SHADOW_COLOR, EWL_TEXT_CONTEXT_MASK_SIZE, EWL_TEXT_CONTEXT_MASK_STRIKETHROUGH_COLOR, EWL_TEXT_CONTEXT_MASK_STYLES, EWL_TEXT_CONTEXT_MASK_UNDERLINE_COLOR, EWL_TEXT_CONTEXT_MASK_WRAP, font, font_source, format, glow, IF_RELEASE, outline, shadow, size, strikethrough, style_colors, styles, underline, and wrap.
Referenced by ewl_text_fmt_apply().
void ewl_text_context_format_string_create | ( | Ewl_Text_Context * | ctx | ) |
References align, bg, color, DCHECK_PARAM_PTR, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, double_underline, DRETURN, EWL_FLAG_ALIGN_CENTER, EWL_FLAG_ALIGN_RIGHT, EWL_TEXT_STYLE_DOUBLE_UNDERLINE, EWL_TEXT_STYLE_FAR_SHADOW, EWL_TEXT_STYLE_GLOW, EWL_TEXT_STYLE_NONE, EWL_TEXT_STYLE_OUTLINE, EWL_TEXT_STYLE_SHADOW, EWL_TEXT_STYLE_SOFT_SHADOW, EWL_TEXT_STYLE_STRIKETHROUGH, EWL_TEXT_STYLE_UNDERLINE, EWL_TEXT_WRAP_CHAR, EWL_TEXT_WRAP_WORD, ewl_theme_path_get(), font, font_source, format, FREE, glow, NEW, outline, shadow, size, strikethrough, style_colors, styles, underline, and wrap.
Referenced by ewl_text_cb_reveal().
int ewl_text_context_init | ( | void | ) |
Ewl_Text_Context* ewl_text_context_new | ( | void | ) |
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, NEW, and ref_count.
Referenced by ewl_text_align_apply(), ewl_text_align_set(), ewl_text_bg_color_apply(), ewl_text_bg_color_set(), ewl_text_color_apply(), ewl_text_color_set(), ewl_text_double_underline_color_apply(), ewl_text_double_underline_color_set(), ewl_text_font_size_apply(), ewl_text_font_size_set(), ewl_text_font_source_apply(), ewl_text_font_source_set(), ewl_text_glow_color_apply(), ewl_text_glow_color_set(), ewl_text_outline_color_apply(), ewl_text_outline_color_set(), ewl_text_shadow_color_apply(), ewl_text_shadow_color_set(), ewl_text_strikethrough_color_apply(), ewl_text_strikethrough_color_set(), ewl_text_styles_apply(), ewl_text_styles_set(), ewl_text_underline_color_apply(), ewl_text_underline_color_set(), ewl_text_wrap_apply(), and ewl_text_wrap_set().
void ewl_text_context_print | ( | Ewl_Text_Context * | tx, | |
const char * | indent | |||
) |
References Ewl_Color_Set::a, align, Ewl_Color_Set::b, color, DCHECK_PARAM_PTR, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, font, font_source, Ewl_Color_Set::g, Ewl_Color_Set::r, size, styles, and wrap.
Referenced by ewl_text_fmt_dump().
int ewl_text_context_release | ( | Ewl_Text_Context * | tx | ) |
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, font, font_source, format, FREE, IF_RELEASE, and ref_count.
Referenced by ewl_text_align_apply(), ewl_text_align_get(), ewl_text_align_set(), ewl_text_bg_color_apply(), ewl_text_bg_color_get(), ewl_text_bg_color_set(), ewl_text_cb_reveal(), ewl_text_clear(), ewl_text_color_apply(), ewl_text_color_get(), ewl_text_color_set(), ewl_text_cursor_position_set(), ewl_text_double_underline_color_apply(), ewl_text_double_underline_color_get(), ewl_text_double_underline_color_set(), ewl_text_fmt_apply(), ewl_text_fmt_clear(), ewl_text_fmt_node_append(), ewl_text_font_get(), ewl_text_font_size_apply(), ewl_text_font_size_get(), ewl_text_font_size_set(), ewl_text_font_source_apply(), ewl_text_font_source_get(), ewl_text_font_source_set(), ewl_text_glow_color_apply(), ewl_text_glow_color_get(), ewl_text_glow_color_set(), ewl_text_outline_color_apply(), ewl_text_outline_color_get(), ewl_text_outline_color_set(), ewl_text_shadow_color_apply(), ewl_text_shadow_color_get(), ewl_text_shadow_color_set(), ewl_text_strikethrough_color_apply(), ewl_text_strikethrough_color_get(), ewl_text_strikethrough_color_set(), ewl_text_styles_apply(), ewl_text_styles_get(), ewl_text_styles_set(), ewl_text_text_append(), ewl_text_text_insert(), ewl_text_text_prepend(), ewl_text_underline_color_apply(), ewl_text_underline_color_get(), ewl_text_underline_color_set(), ewl_text_wrap_apply(), ewl_text_wrap_get(), and ewl_text_wrap_set().
void ewl_text_context_shutdown | ( | void | ) |
References DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, and IF_FREE_HASH.
Referenced by ewl_init().