InfText.DefaultInsertOperation

g GObject.GInterface GObject.GInterface InfText.InsertOperation InfText.InsertOperation GObject.GInterface->InfText.InsertOperation Infinity.AdoptedOperation Infinity.AdoptedOperation GObject.GInterface->Infinity.AdoptedOperation GObject.Object GObject.Object InfText.DefaultInsertOperation InfText.DefaultInsertOperation GObject.Object->InfText.DefaultInsertOperation InfText.InsertOperation->InfText.DefaultInsertOperation Infinity.AdoptedOperation->InfText.DefaultInsertOperation

Subclasses:

None

Methods

Inherited:

GObject.Object (37), InfText.InsertOperation (5), Infinity.AdoptedOperation (8)

Structs:

GObject.ObjectClass (5)

class

new (pos, chunk)

get_chunk ()

Virtual Methods

Inherited:

GObject.Object (7), InfText.InsertOperation (2), Infinity.AdoptedOperation (7)

Properties

Name

Type

Flags

Short Description

chunk

InfText.Chunk

r/w/co

The text to insert

position

int

r/w/co

Insertion position

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class InfText.DefaultInsertOperation(**kwargs)
Bases:

GObject.Object, InfText.InsertOperation, Infinity.AdoptedOperation

Abstract:

No

Structure:

InfText.DefaultInsertOperationClass

classmethod new(pos, chunk)
Parameters:
  • pos (int) – The position at which to insert text.

  • chunk (InfText.Chunk) – The text to insert.

Returns:

A new InfText.DefaultInsertOperation.

Return type:

InfText.DefaultInsertOperation

Creates a new insert operation that, when applied, inserts chunk at pos.

get_chunk()
Returns:

A InfText.Chunk, owned by the operation.

Return type:

InfText.Chunk

Returns the text inserted by self.

Property Details

InfText.DefaultInsertOperation.props.chunk
Name:

chunk

Type:

InfText.Chunk

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The text to insert

InfText.DefaultInsertOperation.props.position
Name:

position

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Insertion position