GtkSource.GutterRendererText

g GObject.InitiallyUnowned GObject.InitiallyUnowned GtkSource.GutterRenderer GtkSource.GutterRenderer GObject.InitiallyUnowned->GtkSource.GutterRenderer GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GtkSource.GutterRendererText GtkSource.GutterRendererText GtkSource.GutterRenderer->GtkSource.GutterRendererText

Subclasses:

None

Methods

Inherited:

GtkSource.GutterRenderer (22), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

measure (text)

measure_markup (markup)

set_markup (markup, length)

set_text (text, length)

Virtual Methods

Inherited:

GtkSource.GutterRenderer (10), GObject.Object (7)

Properties

Inherited:

GtkSource.GutterRenderer (11)

Name

Type

Flags

Short Description

markup

str

r/w/c

The markup

text

str

r/w/c

The text

Signals

Inherited:

GtkSource.GutterRenderer (5), GObject.Object (1)

Fields

Inherited:

GtkSource.GutterRenderer (5), GObject.Object (1)

Name

Type

Access

Description

parent

GtkSource.GutterRenderer

r

Class Details

class GtkSource.GutterRendererText(**kwargs)
Bases:

GtkSource.GutterRenderer

Abstract:

No

Structure:

GtkSource.GutterRendererTextClass

classmethod new()
Returns:

A GtkSource.GutterRenderer

Return type:

GtkSource.GutterRenderer

Create a new GtkSource.GutterRendererText.

measure(text)
Parameters:

text (str) – the text to measure.

Returns:

width:

location to store the width of the text in pixels, or None.

height:

location to store the height of the text in pixels, or None.

Return type:

(width: int, height: int)

Measures the text provided using the pango layout used by the GtkSource.GutterRendererText.

measure_markup(markup)
Parameters:

markup (str) – the pango markup to measure.

Returns:

width:

location to store the width of the text in pixels, or None.

height:

location to store the height of the text in pixels, or None.

Return type:

(width: int, height: int)

Measures the pango markup provided using the pango layout used by the GtkSource.GutterRendererText.

set_markup(markup, length)
Parameters:
  • markup (str) –

  • length (int) –

set_text(text, length)
Parameters:
  • text (str) –

  • length (int) –

Property Details

GtkSource.GutterRendererText.props.markup
Name:

markup

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The markup

GtkSource.GutterRendererText.props.text
Name:

text

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The text