Download

Support

lib/ewl_text_fmt.c File Reference

#include "ewl_text_fmt.h"
#include "ewl_private.h"
#include "ewl_macros.h"
#include "ewl_debug.h"

Include dependency graph for ewl_text_fmt.c:


Functions

void ewl_text_fmt_apply (Ewl_Text_Fmt *fmt, unsigned int context_mask, Ewl_Text_Context *change, unsigned int char_idx, unsigned int char_len)
 Applies the change set to fmt starting at char_idx for char_len characters.
void ewl_text_fmt_byte_to_char (Ewl_Text_Fmt *fmt, unsigned int byte_idx, unsigned int byte_len, unsigned int *char_idx, unsigned int *char_len)
 Calculates the char index for the given byte_idx and stores into char_idx. Also calculates the char_len for byte_len.
void ewl_text_fmt_char_to_byte (Ewl_Text_Fmt *fmt, unsigned int char_idx, unsigned int char_len, unsigned int *byte_idx, unsigned int *byte_len)
 Calculates the byte index for the given char_idx and stores into byte_idx. Also calculates the byte_len for char_len.
void ewl_text_fmt_clear (Ewl_Text_Fmt *fmt)
 Clears the formatting information.
void ewl_text_fmt_destroy (Ewl_Text_Fmt *fmt)
 Cleans up the memory used by the Ewl_Text_Fmt structure.
void ewl_text_fmt_dump (Ewl_Text_Fmt *fmt)
 Prints out the formatting information.
Ewl_Text_Fmt_Nodeewl_text_fmt_get (Ewl_Text_Fmt *fmt, unsigned int idx)
 Returns the character index idx node from fmt.
Ewl_Text_Fmt_Nodeewl_text_fmt_get_current (Ewl_Text_Fmt *fmt)
 Retrives the current formatting node.
Ewl_Text_Fmt_Nodeewl_text_fmt_get_first (Ewl_Text_Fmt *fmt)
 Retrives the first formatting node.
Ewl_Text_Fmt_Nodeewl_text_fmt_get_last (Ewl_Text_Fmt *fmt)
 Retrives the last formatting node.
void ewl_text_fmt_goto (Ewl_Text_Fmt *fmt, unsigned int idx)
 Positions the last at character index idx.
Ewl_Text_Fmtewl_text_fmt_new (Ewl_Text *t)
 Creates and initializes a new Ewl_Text_Fmt structure.
void ewl_text_fmt_node_append (Ewl_Text_Fmt *fmt, Ewl_Text_Context *tx, unsigned int char_len, unsigned int byte_len)
 Appends tx for char_len bytes to fmt.
unsigned int ewl_text_fmt_node_count_get (Ewl_Text_Fmt *fmt)
 Retrives the number of nodes in the formatting information.
void ewl_text_fmt_node_delete (Ewl_Text_Fmt *fmt, unsigned int idx, unsigned int char_len)
 Removes any formatting for char_len bytes starting at idx.
void ewl_text_fmt_node_insert (Ewl_Text_Fmt *fmt, unsigned int idx, Ewl_Text_Context *tx, unsigned int char_len, unsigned int byte_len)
 Inserts tx at idx for char_len bytes to fmt.
Ewl_Text_Fmt_Nodeewl_text_fmt_node_new (Ewl_Text_Context *tx, unsigned int char_len, unsigned int byte_len)
 Creates a new Ewl_Text_Fmt_Node structure.
void ewl_text_fmt_node_prepend (Ewl_Text_Fmt *fmt, Ewl_Text_Context *tx, unsigned int char_len, unsigned int byte_len)
 Prepends the tx for char_len bytes to fmt.
void ewl_text_fmt_walk (Ewl_Text_Fmt *fmt, void(*cb)(Ewl_Text_Fmt_Node *, Ewl_Text *, unsigned int byte_idx))
 Walks the formatting information and calls cb for each node.

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:50:49 2008