CompletionCell

class CompletionCell(**properties: Any)

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

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 CompletionProvider should implement the display virtual function to control how to convert data from their CompletionProposal to content for the GtkSourceCompletionCell.

Methods

class CompletionCell
get_column() CompletionColumn
get_widget() Widget | None

Gets the child Widget, if any.

set_gicon(gicon: Icon) None
Parameters:

gicon

set_icon_name(icon_name: str) None
Parameters:

icon_name

set_markup(markup: str) None
Parameters:

markup

set_paintable(paintable: Paintable) None
Parameters:

paintable

set_text(text: str | None = None) None

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

Parameters:

text – the text to set or None

set_text_with_attributes(text: str, attrs: AttrList) None
Parameters:
  • text

  • attrs

set_widget(child: Widget) None
Parameters:

child

Properties

class CompletionCell
props.column: CompletionColumn
props.markup: str
props.paintable: Paintable
props.text: str
props.widget: Widget