Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXText.h>
Inheritance diagram for FX::FXText:
Public Types | |
enum | { STYLE_UNDERLINE = 0x0001, STYLE_STRIKEOUT = 0x0002, STYLE_BOLD = 0x0004 } |
Public Member Functions | |
FXText (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=3, FXint pr=3, FXint pt=2, FXint pb=2) | |
virtual void | create () |
virtual void | detach () |
virtual void | layout () |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
virtual void | enable () |
virtual void | disable () |
virtual void | recalc () |
virtual void | resize (FXint w, FXint h) |
virtual void | position (FXint x, FXint y, FXint w, FXint h) |
virtual FXint | getContentWidth () |
virtual FXint | getContentHeight () |
virtual FXbool | canFocus () const |
virtual void | setFocus () |
virtual void | killFocus () |
void | setMarginTop (FXint pt) |
FXint | getMarginTop () const |
void | setMarginBottom (FXint pb) |
FXint | getMarginBottom () const |
void | setMarginLeft (FXint pl) |
FXint | getMarginLeft () const |
void | setMarginRight (FXint pr) |
FXint | getMarginRight () const |
FXint | getWrapColumns () const |
void | setWrapColumns (FXint cols) |
FXint | getTabColumns () const |
void | setTabColumns (FXint cols) |
FXint | getBarColumns () const |
void | setBarColumns (FXint cols) |
FXbool | isModified () const |
void | setModified (FXbool mod=TRUE) |
FXbool | isEditable () const |
void | setEditable (FXbool edit=TRUE) |
void | setStyled (FXbool styled=TRUE) |
FXbool | isStyled () const |
void | setDelimiters (const FXchar *delims=textDelimiters) |
const FXchar * | getDelimiters () const |
void | setFont (FXFont *fnt) |
FXFont * | getFont () const |
void | setTextColor (FXColor clr) |
FXColor | getTextColor () const |
void | setSelBackColor (FXColor clr) |
FXColor | getSelBackColor () const |
void | setSelTextColor (FXColor clr) |
FXColor | getSelTextColor () const |
void | setHiliteTextColor (FXColor clr) |
FXColor | getHiliteTextColor () const |
void | setHiliteBackColor (FXColor clr) |
FXColor | getHiliteBackColor () const |
void | setActiveBackColor (FXColor clr) |
FXColor | getActiveBackColor () const |
void | setCursorColor (FXColor clr) |
FXColor | getCursorColor () const |
void | setNumberColor (FXColor clr) |
FXColor | getNumberColor () const |
void | setBarColor (FXColor clr) |
FXColor | getBarColor () const |
void | setHelpText (const FXString &text) |
FXString | getHelpText () const |
void | setTipText (const FXString &text) |
FXString | getTipText () const |
FXint | getChar (FXint pos) const |
FXint | getStyle (FXint pos) const |
void | extractText (FXchar *text, FXint pos, FXint n) const |
void | extractStyle (FXchar *style, FXint pos, FXint n) const |
void | replaceText (FXint pos, FXint m, const FXchar *text, FXint n, FXbool notify=FALSE) |
void | replaceStyledText (FXint pos, FXint m, const FXchar *text, FXint n, FXint style=0, FXbool notify=FALSE) |
void | appendText (const FXchar *text, FXint n, FXbool notify=FALSE) |
void | appendStyledText (const FXchar *text, FXint n, FXint style=0, FXbool notify=FALSE) |
void | insertText (FXint pos, const FXchar *text, FXint n, FXbool notify=FALSE) |
void | insertStyledText (FXint pos, const FXchar *text, FXint n, FXint style=0, FXbool notify=FALSE) |
void | removeText (FXint pos, FXint n, FXbool notify=FALSE) |
void | changeStyle (FXint pos, FXint n, FXint style) |
void | changeStyle (FXint pos, FXint n, const FXchar *style) |
void | setText (const FXchar *text, FXint n, FXbool notify=FALSE) |
void | setStyledText (const FXchar *text, FXint n, FXint style=0, FXbool notify=FALSE) |
void | getText (FXchar *text, FXint n) const |
void | setText (const FXString &text, FXbool notify=FALSE) |
void | setStyledText (const FXString &text, FXint style=0, FXbool notify=FALSE) |
FXString | getText () const |
FXint | getLength () const |
FXint | shiftText (FXint start, FXint end, FXint amount, FXbool notify=FALSE) |
FXbool | findText (const FXString &string, FXint *beg=NULL, FXint *end=NULL, FXint start=0, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT, FXint npar=1) |
FXbool | isPosSelected (FXint pos) const |
FXbool | isPosVisible (FXint pos) const |
FXint | getPosAt (FXint x, FXint y) const |
FXint | countRows (FXint start, FXint end) const |
FXint | countCols (FXint start, FXint end) const |
FXint | countLines (FXint start, FXint end) const |
FXint | lineStart (FXint pos) const |
FXint | lineEnd (FXint pos) const |
FXint | nextLine (FXint pos, FXint nl=1) const |
FXint | prevLine (FXint pos, FXint nl=1) const |
FXint | rowStart (FXint pos) const |
FXint | rowEnd (FXint pos) const |
FXint | nextRow (FXint pos, FXint nr=1) const |
FXint | prevRow (FXint pos, FXint nr=1) const |
FXint | leftWord (FXint pos) const |
FXint | rightWord (FXint pos) const |
FXint | wordStart (FXint pos) const |
FXint | wordEnd (FXint pos) const |
FXint | validPos (FXint pos) const |
void | setTopLine (FXint pos) |
FXint | getTopLine () const |
void | setBottomLine (FXint pos) |
FXint | getBottomLine () const |
void | setCenterLine (FXint pos) |
void | setAnchorPos (FXint pos) |
FXint | getAnchorPos () const |
virtual void | setCursorPos (FXint pos, FXbool notify=FALSE) |
void | setCursorRow (FXint row, FXbool notify=FALSE) |
FXint | getCursorRow () const |
void | setCursorColumn (FXint col, FXbool notify=FALSE) |
FXint | getCursorColumn () const |
FXint | getCursorPos () const |
FXint | getSelStartPos () const |
FXint | getSelEndPos () const |
FXbool | selectAll (FXbool notify=FALSE) |
virtual FXbool | extendSelection (FXint pos, FXTextSelectionMode select=SELECT_CHARS, FXbool notify=FALSE) |
FXbool | setSelection (FXint pos, FXint len, FXbool notify=FALSE) |
virtual FXbool | killSelection (FXbool notify=FALSE) |
FXbool | setHighlight (FXint start, FXint len) |
FXbool | killHighlight () |
void | makePositionVisible (FXint pos) |
void | setTextStyle (FXuint style) |
FXuint | getTextStyle () const |
void | setVisibleRows (FXint rows) |
FXint | getVisibleRows () const |
void | setVisibleColumns (FXint cols) |
FXint | getVisibleColumns () const |
void | setHiliteMatchTime (FXuint t) |
FXuint | getHiliteMatchTime () const |
void | setHiliteStyles (const FXHiliteStyle *styles) |
const FXHiliteStyle * | getHiliteStyles () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXText () |
Static Public Attributes | |
const FXchar | textDelimiters [] |
See also:
|
|
|
Construct multi-line text widget.
|
|
Destructor.
|
|
Create server-side resources.
Reimplemented from FX::FXComposite. |
|
Detach server-side resources.
Reimplemented from FX::FXComposite. |
|
Perform layout.
Reimplemented from FX::FXScrollArea. |
|
Return default width.
Reimplemented from FX::FXScrollArea. |
|
Return default height.
Reimplemented from FX::FXScrollArea. |
|
Enable the text widget.
Reimplemented from FX::FXWindow. |
|
Disable the text widget.
Reimplemented from FX::FXWindow. |
|
Need to recalculate size.
Reimplemented from FX::FXWindow. |
|
Resize this window to the specified width and height.
Reimplemented from FX::FXWindow. |
|
Move and resize this window in the parent's coordinates.
Reimplemented from FX::FXWindow. |
|
Get default width.
Reimplemented from FX::FXScrollArea. |
|
Get default height.
Reimplemented from FX::FXScrollArea. |
|
Returns true because a text widget can receive focus.
Reimplemented from FX::FXWindow. |
|
Move the focus to this window.
Reimplemented from FX::FXWindow. |
|
Remove the focus from this window.
Reimplemented from FX::FXWindow. |
|
Change top margin.
|
|
Return top margin.
|
|
Change bottom margin.
|
|
Return bottom margin.
|
|
Change left margin.
|
|
Return left margin.
|
|
Change right margin.
|
|
Return right margin.
|
|
Return wrap columns.
|
|
Set wrap columns.
|
|
Return tab columns.
|
|
Change tab columns.
|
|
Return number of columns used for line numbers.
|
|
Change number of columns used for line numbers.
|
|
Return TRUE if text was modified.
|
|
Set modified flag.
|
|
Return TRUE if text is editable.
|
|
Set editable flag.
|
|
Set styled text mode.
|
|
Return TRUE if style buffer.
|
|
Change delimiters of words.
|
|
Return word delimiters.
|
|
Change text font.
|
|
Return text font.
|
|
Change text color.
|
|
Return text color.
|
|
Change selected background color.
|
|
Return selected background color.
|
|
Change selected text color.
|
|
Return selected text color.
|
|
Change highlighted text color.
|
|
Return highlighted text color.
|
|
Change highlighted background color.
|
|
Return highlighted background color.
|
|
Change active background color.
|
|
Return active background color.
|
|
Change cursor color.
|
|
Return cursor color.
|
|
Change line number color.
|
|
Return line number color.
|
|
Change bar color.
|
|
Return bar color.
|
|
Set help text.
|
|
Return help text.
|
|
Set the tool tip message for this text widget.
|
|
Get the tool tip message for this text widget.
|
|
Get character at position in text buffer.
|
|
Get style at position in style buffer.
|
|
Extract n characters of text from position pos.
|
|
Extract n characters of style info from position pos.
|
|
Replace m characters at pos by n characters.
|
|
Replace m characters at pos by n characters.
|
|
Append n characters of text at the end of the buffer.
|
|
Append n characters of text at the end of the buffer.
|
|
Insert n characters of text at position pos into the buffer.
|
|
Insert n characters of text at position pos into the buffer.
|
|
Remove n characters of text at position pos from the buffer.
|
|
Change style of text range.
|
|
Change style of text range from style-array.
|
|
Change the text in the buffer to new text.
|
|
Change the text in the buffer to new text.
|
|
Retrieve text into buffer.
|
|
Change the text.
|
|
Change the text.
|
|
Return text in the widget.
|
|
Return length of buffer.
|
|
Shift block of lines from position start up to end by given amount.
|
|
Search for string in text buffer, returning the extent of the string in beg and end. The search starts from the given starting position, scans forward (SEARCH_FORWARD) or backward (SEARCH_BACKWARD), and wraps around if SEARCH_WRAP has been specified. The search type is either a plain search (SEARCH_EXACT), case insensitive search (SEARCH_IGNORECASE), or regular expression search (SEARCH_REGEX). For regular expression searches, capturing parentheses are used if npar is greater than 1; in this case, the number of entries in the beg[], end[] arrays must be npar also. If either beg or end or both are NULL, internal arrays are used. [This API is still subject to change!!] |
|
Return TRUE if position pos is selected.
|
|
Return TRUE if position is fully visible.
|
|
Return text position at given visible x,y coordinate.
|
|
Count number of rows; start should be on a row start.
|
|
Count number of columns; start should be on a row start.
|
|
Count number of newlines.
|
|
Return position of begin of line containing position pos.
|
|
Return position of end of line containing position pos.
|
|
Return start of next line.
|
|
Return start of previous line.
|
|
Return row start.
|
|
Return row end.
|
|
Return start of next row.
|
|
Return start of previous row.
|
|
Return end of previous word.
|
|
Return begin of next word.
|
|
Return begin of word.
|
|
Return end of word.
|
|
Return validated position.
|
|
Make line containing pos the top line.
|
|
Return position of top line.
|
|
Make line containing pos the bottom line.
|
|
Return the position of the bottom line.
|
|
Make line containing pos the center line.
|
|
Set the anchor position.
|
|
Return the anchor position.
|
|
Set the cursor position.
|
|
Set cursor row.
|
|
Return cursor row.
|
|
Set cursor column.
|
|
Return cursor row, i.e. indent position.
|
|
Return the cursor position.
|
|
Return selstartpos.
|
|
Return selendpos.
|
|
Select all text.
|
|
Extend the selection from the anchor to the given position.
|
|
Select len characters starting at given position pos.
|
|
Unselect the text.
|
|
Highlight len characters starting at given position pos.
|
|
Unhighlight the text.
|
|
Scroll text to make the given position visible.
|
|
Change text widget style.
|
|
Return text widget style.
|
|
Change number of visible rows.
|
|
Return number of visible rows.
|
|
Change number of visible columns.
|
|
Return number of visible columns.
|
|
Change brace and parenthesis match highlighting time, in ms. A match highlight time of 0 disables brace matching. |
|
Return brace and parenthesis match highlighting time, in ms.
|
|
Set highlight styles.
|
|
Get highlight styles.
|
|
Save to a stream.
Reimplemented from FX::FXWindow. |
|
Load from a stream.
Reimplemented from FX::FXWindow. |
Copyright © 1997-2005 Jeroen van der Zijp |