gtksource.completion_cell
Module for CompletionCell class
Types 3
Widget for single cell of completion proposal.
The gtksource.completion_cell.CompletionCell 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 gtksource.completion_provider.CompletionProvider should implement the vfunc@CompletionProvider.display virtual function to control how to convert data from their gtksource.completion_proposal.CompletionProposal to content for the gtksource.completion_cell.CompletionCell.
CompletionCell self()Returns `this`, for use in `with` statements.CompletionCellGidBuilder builder()Get builder for [gtksource.completion_cell.CompletionCell] Returns: New builder objectgtksource.types.CompletionColumn column() @propertystring markup() @propertyvoid markup(string propval) @propertygdk.paintable.Paintable paintable() @propertyvoid paintable(gdk.paintable.Paintable propval) @propertystring text() @propertyvoid text(string propval) @propertygtk.widget.Widget widget() @propertyvoid widget(gtk.widget.Widget propval) @propertygtk.widget.Widget getWidget()Gets the child #GtkWidget, if any. Returns: a #GtkWidget or nullvoid setGicon(gio.icon.Icon gicon)void setIconName(string iconName)void setMarkup(string markup)void setPaintable(gdk.paintable.Paintable paintable)void setText(string text = null)Sets the text for the column cell. Use null to unset.void setTextWithAttributes(string text, pango.attr_list.AttrList attrs)void setWidget(gtk.widget.Widget child)Fluent builder implementation template for gtksource.completion_cell.CompletionCell
T column(gtksource.types.CompletionColumn propval)T markup(string propval)T paintable(gdk.paintable.Paintable propval)T text(string propval)T widget(gtk.widget.Widget propval)Fluent builder for gtksource.completion_cell.CompletionCell
CompletionCell build()Create object from builder. Returns: New object