vdk 2.4.0
|
Provides a gtk+ gtktextbuffer wrapper. More...
#include <vdktextview.h>
Provides a gtk+ gtktextbuffer wrapper.
Default constructor
VDKTextBuffer::VDKTextBuffer | ( | char * | filename | ) |
Default constructor
filename | builds a text buffer loading file <filename> |
VDKTextBuffer::~VDKTextBuffer | ( | ) | [virtual] |
Destructor
void VDKTextBuffer::BackwardDelete | ( | int | nchars | ) |
Backward delete chars from insertion point
GtkTextBuffer* VDKTextBuffer::Buffer | ( | void | ) | [inline] |
Returns underlying GtkTextBuffer
void VDKTextBuffer::Clear | ( | ) |
Clears text buffer deleting all text.
void VDKTextBuffer::ForwardDelete | ( | int | nchars | ) |
Forward delete chars from insertion point
gchar * VDKTextBuffer::GetChars | ( | int | start, |
int | end = -1 |
||
) |
Returns a text segment
start | starting position |
end | ending position, if -1 all text buffer from start to end will be returned. |
int VDKTextBuffer::GetLineAtOffset | ( | int | offset | ) |
Gets line number at a buffer position
offset | buffer offset position (counting from 0) on error returns -1 |
bool VDKTextBuffer::LoadFromFile | ( | const char * | filename | ) |
Load text buffer with a file
filename | to load |
bool VDKTextBuffer::SaveToFile | ( | const char * | filename | ) |
Save buffer to file
void VDKTextBuffer::TextInsert | ( | const char * | txt, |
int | nchar = -1 |
||
) |
Inserts text at cursor position.
txt | null terminating string to be inserted |
nchars | how many chars have to be inserted (-1 means all) |
void VDKTextBuffer::Undo | ( | void | ) | [inline] |
Undoes last operation
VDKReadWriteValueProp<VDKTextBuffer,bool> VDKTextBuffer::Changed |
Sets/gets modified flag
VDKReadWriteValueProp<VDKTextBuffer,int> VDKTextBuffer::Column |
Sets/gets text insertion position expressed in column offset
VDKReadWriteValueProp<VDKTextBuffer,int> VDKTextBuffer::Line |
Sets/gets text insertion position expressed in lines
VDKReadWriteValueProp<VDKTextBuffer,int> VDKTextBuffer::Pointer |
Sets/gets text insertion position expressed in chars from text beginning. (counting from 0, gets -1 on failure)