NAME
EZ_TextGetPosition, EZ_TextSetMarker, EZ_TextGotoPosition,
EZ_TextBackwardChar, EZ_TextBackwardWord, EZ_TextBegin-
ningOfBuffer, EZ_TextBeginningOfLine, EZ_TextClear,
EZ_TextDeleteNextChar, EZ_TextDeletePreviousChar, EZ_Tex-
tEndOfBuffer, EZ_TextEndOfLine, EZ_TextForwardChar,
EZ_TextForwardWord, EZ_TextInsertChar, EZ_TextInsertNew-
Line, EZ_TextInsertString, EZ_TextInsertStringWithProp-
erty, EZ_TextKillEndOfLine, EZ_TextKillRegion, EZ_Text-
LoadAnnotatedFile, EZ_TextLoadFile, EZ_TextNextLine,
EZ_TextNextPage, EZ_TextPasteSelection, EZ_TextPrevi-
ousLine, EZ_TextPreviousPage, EZ_TextReDisplay, EZ_TextRe-
placeRegionWithPixmap, EZ_TextSaveAnnotatedText,
EZ_TextSaveText, EZ_TextSetRegionBackground, EZ_TextSetRe-
gionFont, EZ_TextSetRegionForeground, EZ_TextSetRegion-
Property, EZ_TextSetRegionUnderline, EZ_TextGetRegion-
String - text widget editing functions
SYNOPSIS
#include <EZ.h>
int EZ_TextGetPosition(EZ_Widget *twidget)
int EZ_TextSetMarker(EZ_Widget *twidget)
char EZ_TextGetRegionString(EZ_Widget *twidget)
void EZ_TextGotoPosition(EZ_Widget *twidget, int pos)
void EZ_TextBackwardChar(EZ_Widget *twidget)
void EZ_TextBackwardWord(EZ_Widget *twidget)
void EZ_TextBeginningOfBuffer(EZ_Widget *twidget)
void EZ_TextBeginningOfLine(EZ_Widget *twidget)
void EZ_TextClear(EZ_Widget *twidget)
void EZ_TextDeleteNextChar(EZ_Widget *twidget)
void EZ_TextDeletePreviousChar(EZ_Widget *twidget)
void EZ_TextEndOfBuffer(EZ_Widget *twidget)
void EZ_TextEndOfLine(EZ_Widget *twidget)
void EZ_TextForwardChar(EZ_Widget *twidget)
void EZ_TextForwardWord(EZ_Widget *twidget)
void EZ_TextInsertChar(EZ_Widget *twidget, char c)
void EZ_TextInsertNewLine(EZ_Widget *twidget);
void EZ_TextInsertString(EZ_Widget *twidget, char *str)
void EZ_TextInsertStringWithProperty(EZ_Widget *twidget,
char * str, EZ_TextProperty *prop)
void EZ_TextKillEndOfLine(EZ_Widget *twidget)
void EZ_TextKillRegion(EZ_Widget *twidget)
void EZ_TextLoadAnnotatedFile (EZ_Widget *twidget, char *fname)
void EZ_TextLoadFile(EZ_Widget *twidget, char *fname)
void EZ_TextNextLine(EZ_Widget *twidget)
void EZ_TextNextPage(EZ_Widget *twidget)
void EZ_TextPasteSelection(EZ_Widget *twidget)
void EZ_TextPreviousLine (EZ_Widget *twidget)
void EZ_TextPreviousPage(EZ_Widget *twidget)
void EZ_TextReDisplay(EZ_Widget *twidget)
void EZ_TextReplaceRegionWithPixmap(EZ_Widget *twidget, char *fname)
void EZ_TextSaveAnnotatedText(EZ_Widget *twidget",char*"fname)
void EZ_TextSaveText(EZ_Widget *twidget, char *fname);
void EZ_TextSetRegionBackground(EZ_Widget *twidget, char *clr)
void EZ_TextSetRegionFont(EZ_Widget *twidget, char *fontname)
void EZ_TextSetRegionForeground(EZ_Widget *twidget, char *clr)
void EZ_TextSetRegionProperty(EZ_Widget *twidget, EZ_TextProperty *prop)
void EZ_TextSetRegionUnderline(EZ_Widget *twidget, int udl)
ARGUMENTS
twidget Specifies a text widget.
fname Specifies a file name.
clr Specifies a color name.
fontname Specifies a X11 fontname.
prop Specifies a text property.
DESCRIPTION
Most of these functions are self explanatory. They are the
basic edit commands for the EZ text widget.
EZ_TextGetPosition returns the position of the cursor. The
position encods the row and column number in the following
way:
position = (column & 0xffff) | (row << 16))
EZ_TextSetMarker marks the beginning of region. The region
is the portion of text between the marker and the cursor.
EZ_TextGotoPosition moves the cursor to the specified
position.
EZ_TextInsertStringWithProperty inserts a string at the
current cursor position with the specified property. prop
is a text property returned by EZ_GetTextProperty.
SEE ALSO
EZ_GetTextProperty(3), EZ_CreateWidget(3)