![]() |
ROOT
6.06/09
Reference Guide
|
Public Member Functions | |
| TGTextLine () | |
| TGTextLine (TGTextLine *line) | |
| Initialize line of text with other line of text (not copy ctor). More... | |
| TGTextLine (const char *string) | |
| Initialize line of text with a const char*. More... | |
| virtual | ~TGTextLine () |
| Delete a line of text. More... | |
| void | Clear () |
| Clear a line of text. More... | |
| ULong_t | GetLineLength () |
| void | DelText (ULong_t pos, ULong_t length) |
| Delete length chars from line starting at position pos. More... | |
| void | InsText (ULong_t pos, const char *text) |
| Insert text in line starting at position pos. More... | |
| char * | GetText (ULong_t pos, ULong_t length) |
| Get length characters from line starting at pos. More... | |
| char * | GetText () const |
| char * | GetWord (ULong_t pos) |
| Get word at position. Returned string must be deleted. More... | |
| void | DelChar (ULong_t pos) |
| Delete a character from the line. More... | |
| void | InsChar (ULong_t pos, char character) |
| Insert a character at the specified position. More... | |
| char | GetChar (ULong_t pos) |
| Get a character at the specified position from the line. More... | |
Protected Member Functions | |
| TGTextLine (const TGTextLine &) | |
| copy constructor More... | |
| TGTextLine & | operator= (const TGTextLine &) |
| assignment operator More... | |
Protected Attributes | |
| char * | fString |
| ULong_t | fLength |
| TGTextLine * | fPrev |
| TGTextLine * | fNext |
Friends | |
| class | TGText |
#include <TGText.h>
Collaboration diagram for TGTextLine:
|
protected |
copy constructor
Definition at line 84 of file TGText.cxx.
| TGTextLine::TGTextLine | ( | ) |
| TGTextLine::TGTextLine | ( | TGTextLine * | line | ) |
Initialize line of text with other line of text (not copy ctor).
Definition at line 55 of file TGText.cxx.
| TGTextLine::TGTextLine | ( | const char * | string | ) |
Initialize line of text with a const char*.
Definition at line 67 of file TGText.cxx.
|
virtual |
Delete a line of text.
Definition at line 115 of file TGText.cxx.
| void TGTextLine::Clear | ( | ) |
Delete a character from the line.
Definition at line 262 of file TGText.cxx.
Referenced by TGText::DelChar().
Delete length chars from line starting at position pos.
Definition at line 135 of file TGText.cxx.
Referenced by TGText::BreakLine(), TGText::DelText(), and TGText::InsText().
| char TGTextLine::GetChar | ( | ULong_t | pos | ) |
Get a character at the specified position from the line.
Returns -1 if pos is out of range.
Definition at line 302 of file TGText.cxx.
Referenced by TGText::GetChar().
|
inline |
Definition at line 55 of file TGText.h.
Referenced by TGText::DelText(), TGText::GetLineLength(), TGTextEdit::HandleDoubleClick(), and TGTextLine().
Get length characters from line starting at pos.
Returns 0 in case pos and length are out of range. The returned string must be freed by the user.
Definition at line 183 of file TGText.cxx.
Referenced by TGText::AsString(), TGText::BreakLine(), TGText::DelText(), TGText::GetLine(), TGTextEdit::HandleDoubleClick(), TGText::InsText(), and TGTextLine().
| char * TGTextLine::GetWord | ( | ULong_t | pos | ) |
Get word at position. Returned string must be deleted.
Definition at line 203 of file TGText.cxx.
Referenced by TGTextEdit::HandleButton().
Insert a character at the specified position.
Definition at line 281 of file TGText.cxx.
Referenced by TGText::InsChar().
Insert text in line starting at position pos.
Definition at line 160 of file TGText.cxx.
Referenced by TGText::DelText(), and TGText::InsText().
|
protected |
assignment operator
Definition at line 98 of file TGText.cxx.
|
protected |
Definition at line 41 of file TGText.h.
Referenced by TGText::Append(), TGText::AsString(), TGText::BreakLine(), Clear(), DelChar(), DelText(), TGText::DelText(), GetChar(), GetLineLength(), GetText(), GetWord(), InsChar(), InsText(), TGText::InsText(), TGText::Load(), TGText::LoadBuffer(), TGText::LongestLine(), operator=(), TGText::ReTab(), TGText::Save(), TGText::Search(), and TGTextLine().
|
protected |
Definition at line 43 of file TGText.h.
Referenced by TGText::Append(), TGText::AsString(), TGText::BreakLine(), TGText::Clear(), TGText::DelLine(), TGText::DelText(), TGText::InsLine(), TGText::InsText(), TGText::Load(), TGText::LoadBuffer(), TGText::LongestLine(), operator=(), TGText::Save(), TGText::SetCurrentRow(), and TGTextLine().
|
protected |
Definition at line 42 of file TGText.h.
Referenced by TGText::BreakLine(), TGText::DelLine(), TGText::InsLine(), TGText::InsText(), TGText::Load(), TGText::LoadBuffer(), operator=(), TGText::SetCurrentRow(), and TGTextLine().
|
protected |
Definition at line 40 of file TGText.h.
Referenced by TGText::Append(), Clear(), DelChar(), DelText(), TGText::DelText(), GetChar(), GetText(), GetWord(), InsChar(), InsText(), TGText::Load(), TGText::LoadBuffer(), operator=(), TGText::ReTab(), TGText::Save(), TGText::Search(), TGTextLine(), and ~TGTextLine().