|
|
The TextLine represents a line of text. A text line that contains the text, an attribute for each character, an attribute for the free space behind the last character and a context number for the syntax highlight. The attribute stores the index to a table that contains fonts and colors and also if a character is selected.
|
Creates an empty text line with given attribute and syntax highlight context
int |
[const]
Returns the length
void |
Universal text manipulation method. It can be used to insert, delete or replace text.
void |
Appends a string of length l to the textline
void |
Wraps the text from the given position to the end to the next line
void |
Wraps the text of given length from the beginning of the next line to this line at the given position
void |
Truncates the textline to the new length
int |
[const]
Returns the position of the first character which is not a white space
int |
[const]
Returns the position of the last character which is not a white space
void |
Removes trailing spaces
QChar |
[const]
Gets the char at the given position
const QChar * |
[const]
Gets the text. WARNING: it is not null terminated
const QChar * |
Gets a C-like null terminated string
int |
[const]
Returns the x position of the cursor at the given position, which depends on the number of tab characters
void |
Sets the attributes from start to end -1
void |
Sets the attribute for the free space behind the last character
int |
[const]
Gets the attribute at the given position
int |
[const]
Gets the attribute for the free space behind the last character
int |
[const]
Gets the attribute, including the select state, at the given position
int |
[const]
Gets the attribute, including the select state, for the free space behind the last character
void |
Sets the syntax highlight context number
int |
[const]
Gets the syntax highlight context number
void |
Sets the select state from start to end -1
void |
Sets the select state from the given position to the end, including the free space behind the last character
void |
Toggles the select state from start to end -1
void |
Toggles the select state from the given position to the end, including the free space behind the last character
int |
[const]
Returns the number of selected characters
bool |
[const]
Returns if the character at the given position is selected
bool |
[const]
Returns true if the free space behind the last character is selected
int |
[const]
Finds the next selected character, starting at the given position
int |
[const]
Finds the next unselected character, starting at the given position
int |
[const]
Finds the previous selected character, starting at the given position
int |
[const]
Finds the previous unselected character, starting at the given position
void |
Marks the text from the given position and length as found
void |
Removes the found marks
int |
[protected]
Length of the text line
int |
[protected]
Memory Size of the text line
QChar * |
[protected]
The text
uchar * |
[protected]
The attributes
uchar |
[protected]
The attribute of the free space behind the end
int |
[protected]
The syntax highlight context
Generated by: root@porky.devel.redhat.com on Wed May 10 08:57:16 2000, using kdoc 2.0a35. |