Top | ![]() |
![]() |
![]() |
![]() |
This class is a wrapper around another InfTextBuffer. It makes sure that the number of trailing empty lines in the underlying buffer is always fixed to a given number while it itself keeps track of the missing or additional lines. This can be used for example to keep the number of empty lines fixed on the client side even if lines are added and removed within a text session.
InfTextFixlineBuffer * inf_text_fixline_buffer_new (InfIo *io
,InfTextBuffer *buffer
,guint n_lines
);
Creates a new InfTextFixlineBuffer which keeps the number of trailing
lines of the given underlying buffer fixed to n_lines
.
[constructor]
io |
A InfIo object to schedule timeouts. |
|
buffer |
The underlying buffer for which to keep a fixed line count. |
|
n_lines |
The number of lines to be kept fixed. |
struct InfTextFixlineBuffer;
InfTextFixlineBuffer is an opaque data type. You should only access it via the public API functions.
“buffer”
property“buffer” InfTextBuffer *
The buffer for which to keep a fixed line count.
Flags: Read / Write / Construct Only
“io”
property“io” InfIo *
The I/O object used to schedule line keeping.
Flags: Read / Write / Construct Only
“lines”
property“lines” guint
The number of lines to keep in the underlying buffer.
Flags: Read / Write / Construct Only
Default value: 0