Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Text_Buffer Class Reference

Fl_Text_Buffer. More...

#include <Fl_Text_Buffer.h>

List of all members.

Public Methods

 Fl_Text_Buffer (int requestedSize=0)
 ~Fl_Text_Buffer ()
char * Fl_Text_Buffer::static_buffer ()
int undo_size ()
void undo_size (int newsize)
int undo ()
void add_undo (const char *str, int pos, int len, bool inserted, bool replaced)
int length ()
const char * text ()
void text (const char *text)
const char * text_range (int start, int end)
void text_range (Fl_String_Buffer &outStr, int start, int end)
char character (int pos)
const char * text_in_rectangle (int start, int end, int rectStart, int rectEnd)
void insert (int pos, const char *text, int text_len=-1)
void append (const char *text, int text_len=-1)
void remove (int start, int end)
void replace (int start, int end, const char *text, int text_len=-1)
void copy (Fl_Text_Buffer *fromBuf, int fromStart, int fromEnd, int toPos)
int insertfile (const char *file, int pos, int buflen=128 *1024)
int appendfile (const char *file, int buflen=128 *1024)
int loadfile (const char *file, int buflen=128 *1024)
int outputfile (const char *file, int start, int end, int buflen=128 *1024)
int savefile (const char *file, int buflen=128 *1024)
void insert_column (int column, int startPos, const char *text, int *charsInserted, int *charsDeleted)
void replace_rectangular (int start, int end, int rectStart, int rectEnd, const char *text)
void overlay_rectangular (int startPos, int rectStart, int rectEnd, const char *text, int *charsInserted, int *charsDeleted)
void remove_rectangular (int start, int end, int rectStart, int rectEnd)
void clear_rectangular (int start, int end, int rectStart, int rectEnd)
int tab_distance ()
void tab_distance (int tabDist)
void select (int start, int end)
int selected ()
void unselect ()
void select_rectangular (int start, int end, int rectStart, int rectEnd)
int selection_position (int *start, int *end)
int selection_position (int *start, int *end, int *isRect, int *rectStart, int *rectEnd)
const char * selection_text ()
void remove_selection ()
void replace_selection (const char *text)
void secondary_select (int start, int end)
void secondary_unselect ()
void secondary_select_rectangular (int start, int end, int rectStart, int rectEnd)
int secondary_selection_position (int *start, int *end, int *isRect, int *rectStart, int *rectEnd)
const char * secondary_selection_text ()
void remove_secondary_selection ()
void replace_secondary_selection (const char *text)
void highlight (int start, int end)
void unhighlight ()
void highlight_rectangular (int start, int end, int rectStart, int rectEnd)
int highlight_position (int *start, int *end, int *isRect, int *rectStart, int *rectEnd)
const char * highlight_text ()
void add_modify_callback (Fl_Text_Modify_Cb bufModifiedCB, void *cbArg)
void remove_modify_callback (Fl_Text_Modify_Cb bufModifiedCB, void *cbArg)
void call_modify_callbacks ()
void add_predelete_callback (Fl_Text_Predelete_Cb bufPredelCB, void *cbArg)
void remove_predelete_callback (Fl_Text_Predelete_Cb predelCB, void *cbArg)
void call_predelete_callbacks ()
const char * line_text (int pos)
int line_start (int pos)
int line_end (int pos)
int word_start (int pos)
int word_end (int pos)
int expand_character (int pos, int indent, char *outStr)
int count_displayed_characters (int lineStartPos, int targetPos)
int skip_displayed_characters (int lineStartPos, int nChars)
int count_lines (int startPos, int endPos)
int skip_lines (int startPos, int nLines)
int rewind_lines (int startPos, int nLines)
int findchar_forward (int startPos, char searchChar, int *foundPos)
int findchar_backward (int startPos, char searchChar, int *foundPos)
int findchars_forward (int startPos, const char *searchChars, int *foundPos)
int findchars_backward (int startPos, const char *searchChars, int *foundPos)
int search_forward (int startPos, const char *searchString, int *foundPos, int matchCase=0)
int search_backward (int startPos, const char *searchString, int *foundPos, int matchCase=0)
Fl_Text_Selectionprimary_selection ()
Fl_Text_Selectionsecondary_selection ()
Fl_Text_Selectionhighlight_selection ()

Static Public Methods

int expand_character (char c, int indent, char *outStr, int tabDist)
int character_width (char c, int indent, int tabDist)

Protected Methods

void call_modify_callbacks (int pos, int nDeleted, int nInserted, int nRestyled, const char *deletedText)
void call_predelete_callbacks (int pos, int nDeleted)
int insert_ (int pos, const char *text, int text_len)
void remove_ (int start, int end)
void remove_rectangular_ (int start, int end, int rectStart, int rectEnd, int *replaceLen, int *endPos)
void insert_column_ (int column, int startPos, const char *insText, int *nDeleted, int *nInserted, int *endPos)
void overlay_rectangular_ (int startPos, int rectStart, int rectEnd, const char *insText, int *nDeleted, int *nInserted, int *endPos)
void redisplay_selection (Fl_Text_Selection *oldSelection, Fl_Text_Selection *newSelection)
void move_gap (int pos)
void reallocate_with_gap (int newGapStart, int newGapLen)
const char * selection_text_ (Fl_Text_Selection *sel)
void remove_selection_ (Fl_Text_Selection *sel)
void replace_selection_ (Fl_Text_Selection *sel, const char *text)
void rectangular_selection_boundaries (int lineStartPos, int rectStart, int rectEnd, int *selStart, int *selEnd)
void update_selections (int pos, int nDeleted, int nInserted)

Protected Attributes

Fl_UndoNode_Stack * undo_stack
Fl_Text_Selection mPrimary
Fl_Text_Selection mSecondary
Fl_Text_Selection mHighlight
int mLength
char * mBuf
int mGapStart
int mGapEnd
int mTabDist
int mUseTabs
int mNModifyProcs
Fl_Text_Modify_Cb * mNodifyProcs
void ** mCbArgs
int mNPredeleteProcs
Fl_Text_Predelete_Cb * mPredeleteProcs
void ** mPredeleteCbArgs
int mCursorPosHint


Detailed Description

Fl_Text_Buffer.

Definition at line 76 of file Fl_Text_Buffer.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 15:33:54 2003 for eFLTK by doxygen1.2.15