InfText.FixlineBuffer

g GObject.GInterface GObject.GInterface InfText.Buffer InfText.Buffer GObject.GInterface->InfText.Buffer Infinity.Buffer Infinity.Buffer GObject.GInterface->Infinity.Buffer GObject.Object GObject.Object InfText.FixlineBuffer InfText.FixlineBuffer GObject.Object->InfText.FixlineBuffer InfText.Buffer->InfText.FixlineBuffer Infinity.Buffer->InfText.FixlineBuffer

Subclasses:

None

Methods

Inherited:

GObject.Object (37), InfText.Buffer (18), Infinity.Buffer (2)

Structs:

GObject.ObjectClass (5)

class

new (io, buffer, n_lines)

Virtual Methods

Inherited:

GObject.Object (7), InfText.Buffer (17), Infinity.Buffer (2)

Properties

Inherited:

Infinity.Buffer (1)

Name

Type

Flags

Short Description

buffer

InfText.Buffer

r/w/co

The buffer for which to keep a fixed line count

io

Infinity.Io

r/w/co

The I/O object used to schedule line keeping

lines

int

r/w/co

The number of lines to keep in the underlying buffer

Signals

Inherited:

GObject.Object (1), InfText.Buffer (2)

Fields

Inherited:

GObject.Object (1), InfText.Buffer (2)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class InfText.FixlineBuffer(**kwargs)
Bases:

GObject.Object, InfText.Buffer, Infinity.Buffer

Abstract:

No

Structure:

InfText.FixlineBufferClass

InfText.FixlineBuffer is an opaque data type. You should only access it via the public API functions.

classmethod new(io, buffer, n_lines)
Parameters:
  • io (Infinity.Io) – A Infinity.Io object to schedule timeouts.

  • buffer (InfText.Buffer) – The underlying buffer for which to keep a fixed line count.

  • n_lines (int) – The number of lines to be kept fixed.

Returns:

A InfText.FixlineBuffer.

Return type:

InfText.FixlineBuffer

Creates a new InfText.FixlineBuffer which keeps the number of trailing lines of the given underlying buffer fixed to n_lines.

Property Details

InfText.FixlineBuffer.props.buffer
Name:

buffer

Type:

InfText.Buffer

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The buffer for which to keep a fixed line count

InfText.FixlineBuffer.props.io
Name:

io

Type:

Infinity.Io

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The I/O object used to schedule line keeping

InfText.FixlineBuffer.props.lines
Name:

lines

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The number of lines to keep in the underlying buffer