GtkSource.CompletionCell

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget GtkSource.CompletionCell GtkSource.CompletionCell Gtk.Widget->GtkSource.CompletionCell

Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

get_column ()

get_widget ()

set_gicon (gicon)

set_icon_name (icon_name)

set_markup (markup)

set_paintable (paintable)

set_text (text)

set_text_with_attributes (text, attrs)

set_widget (child)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

column

GtkSource.CompletionColumn

r/w/co

Column

markup

str

r/w

Markup

paintable

Gdk.Paintable

r/w

Paintable

text

str

r/w

Text

widget

Gtk.Widget

r/w

Widget

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class GtkSource.CompletionCell(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

GtkSource.CompletionCellClass

Widget for single cell of completion proposal.

The GtkSourceCompletionCell widget provides a container to display various types of information with the completion display.

Each proposal may consist of multiple cells depending on the complexity of the proposal. For example, programming language proposals may contain a cell for the “left-hand-side” of an operation along with the “typed-text” for a function name and “parameters”. They may also optionally set an icon to signify the kind of result.

A [iface`CompletionProvider`] should implement the [vfunc`CompletionProvider`.display] virtual function to control how to convert data from their [iface`CompletionProposal`] to content for the GtkSourceCompletionCell.

get_column()
Return type:

GtkSource.CompletionColumn

get_widget()
Returns:

a Gtk.Widget or None

Return type:

Gtk.Widget or None

Gets the child Gtk.Widget, if any.

set_gicon(gicon)
Parameters:

gicon (Gio.Icon) –

set_icon_name(icon_name)
Parameters:

icon_name (str) –

set_markup(markup)
Parameters:

markup (str) –

set_paintable(paintable)
Parameters:

paintable (Gdk.Paintable) –

set_text(text)
Parameters:

text (str or None) – the text to set or None

Sets the text for the column cell. Use None to unset.

set_text_with_attributes(text, attrs)
Parameters:
set_widget(child)
Parameters:

child (Gtk.Widget) –

Property Details

GtkSource.CompletionCell.props.column
Name:

column

Type:

GtkSource.CompletionColumn

Default Value:

GtkSource.CompletionColumn.TYPED_TEXT

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Column

GtkSource.CompletionCell.props.markup
Name:

markup

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Markup

GtkSource.CompletionCell.props.paintable
Name:

paintable

Type:

Gdk.Paintable

Default Value:

None

Flags:

READABLE, WRITABLE

Paintable

GtkSource.CompletionCell.props.text
Name:

text

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Text

GtkSource.CompletionCell.props.widget
Name:

widget

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE

Widget