gtk.cell_renderer_text

Module for [CellRendererText] class

Types 3

Renders text in a cell

A [gtk.cell_renderer_text.CellRendererText] renders a given text in its cell, using the font, color and style information provided by its properties. The text will be ellipsized if it is too long and the GtkCellRendererText:ellipsize property allows it.

If the GtkCellRenderer:mode is [gtk.types.CellRendererMode.Editable], the [gtk.cell_renderer_text.CellRendererText] allows to edit its text using an entry.

Deprecated

List views use widgets to display their contents.

You should use [gtk.inscription.Inscription] or [gtk.label.Label] instead

Methods
GType _gType() @property
CellRendererText self()Returns `this`, for use in `with` statements.
CellRendererTextGidBuilder builder()Get builder for [gtk.cellrenderertext.CellRendererText] Returns: New builder object
bool alignSet() @property
void alignSet(bool propval) @property
pango.types.Alignment alignment() @propertyGet `alignment` property. Returns: Specifies how to align the lines of text with respect to each other.
void alignment(pango.types.Alignment propval) @propertySet `alignment` property. Params: propval = Specifies how to align the lines of text with respect to each other.
void attributes(pango.attr_list.AttrList propval) @property
void background(string propval) @property
gdk.rgba.RGBA backgroundRgba() @propertyGet `backgroundRgba` property. Returns: Background color as a [gdk.rgba.RGBA]
void backgroundRgba(gdk.rgba.RGBA propval) @propertySet `backgroundRgba` property. Params: propval = Background color as a [gdk.rgba.RGBA]
bool backgroundSet() @property
void backgroundSet(bool propval) @property
bool editable() @property
void editable(bool propval) @property
bool editableSet() @property
void editableSet(bool propval) @property
pango.types.EllipsizeMode ellipsize() @propertyGet `ellipsize` property. Returns: Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. Setting it to [pango.types.Ell...
void ellipsize(pango.types.EllipsizeMode propval) @propertySet `ellipsize` property. Params: propval = Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. Setting it to [pango....
bool ellipsizeSet() @property
void ellipsizeSet(bool propval) @property
string family() @property
void family(string propval) @property
bool familySet() @property
void familySet(bool propval) @property
string font() @property
void font(string propval) @property
void foreground(string propval) @property
gdk.rgba.RGBA foregroundRgba() @propertyGet `foregroundRgba` property. Returns: Foreground color as a [gdk.rgba.RGBA]
void foregroundRgba(gdk.rgba.RGBA propval) @propertySet `foregroundRgba` property. Params: propval = Foreground color as a [gdk.rgba.RGBA]
bool foregroundSet() @property
void foregroundSet(bool propval) @property
string language() @property
void language(string propval) @property
bool languageSet() @property
void languageSet(bool propval) @property
void markup(string propval) @property
int maxWidthChars() @propertyGet `maxWidthChars` property. Returns: The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.
void maxWidthChars(int propval) @propertySet `maxWidthChars` property. Params: propval = The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.
string placeholderText() @propertyGet `placeholderText` property. Returns: The text that will be displayed in the [gtk.cell_renderer.CellRenderer] if `GtkCellRendererText:editable` is true and the cell is empty.
void placeholderText(string propval) @propertySet `placeholderText` property. Params: propval = The text that will be displayed in the [gtk.cell_renderer.CellRenderer] if `GtkCellRendererText:editable` is true and the cell is empty.
int rise() @property
void rise(int propval) @property
bool riseSet() @property
void riseSet(bool propval) @property
double scale() @property
void scale(double propval) @property
bool scaleSet() @property
void scaleSet(bool propval) @property
bool singleParagraphMode() @property
void singleParagraphMode(bool propval) @property
int size() @property
void size(int propval) @property
double sizePoints() @property
void sizePoints(double propval) @property
bool sizeSet() @property
void sizeSet(bool propval) @property
void stretch(pango.types.Stretch propval) @property
bool stretchSet() @property
void stretchSet(bool propval) @property
bool strikethrough() @property
void strikethrough(bool propval) @property
bool strikethroughSet() @property
void strikethroughSet(bool propval) @property
void style(pango.types.Style propval) @property
bool styleSet() @property
void styleSet(bool propval) @property
string text() @property
void text(string propval) @property
void underline(pango.types.Underline propval) @property
bool underlineSet() @property
void underlineSet(bool propval) @property
void variant(pango.types.Variant propval) @property
bool variantSet() @property
void variantSet(bool propval) @property
int weight() @property
void weight(int propval) @property
bool weightSet() @property
void weightSet(bool propval) @property
int widthChars() @propertyGet `widthChars` property. Returns: The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request either 3...
void widthChars(int propval) @propertySet `widthChars` property. Params: propval = The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request...
pango.types.WrapMode wrapMode() @propertyGet `wrapMode` property. Returns: Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unl...
void wrapMode(pango.types.WrapMode propval) @propertySet `wrapMode` property. Params: propval = Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no e...
int wrapWidth() @propertyGet `wrapWidth` property. Returns: Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be place...
void wrapWidth(int propval) @propertySet `wrapWidth` property. Params: propval = Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can...
void setFixedHeightFromFont(int numberOfRows)Sets the height of a renderer to explicitly be determined by the “font” and “ypad” property set on it. Further changes in these properties do not affect the height, so they must be accompa...
gulong connectEdited(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == string))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.cell_renderer_text.CellRendererText))) && Parameters!T.length < 4)Connect to `Edited` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.cellrenderertext.CellRendererText]. Adjust how text is drawn using object properties. Object properties can be set globally (with [gobject.object.ObjectWrap.set]). Also, with [gt...
Methods
T alignSet(bool propval)
T alignment(pango.types.Alignment propval)Set `alignment` property. Params: propval = Specifies how to align the lines of text with respect to each other.
T background(string propval)
T backgroundRgba(gdk.rgba.RGBA propval)Set `backgroundRgba` property. Params: propval = Background color as a [gdk.rgba.RGBA] Returns: Builder instance for fluent chaining
T backgroundSet(bool propval)
T editable(bool propval)
T editableSet(bool propval)
T ellipsize(pango.types.EllipsizeMode propval)Set `ellipsize` property. Params: propval = Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. Setting it to [pango....
T ellipsizeSet(bool propval)
T family(string propval)
T familySet(bool propval)
T font(string propval)
T foreground(string propval)
T foregroundRgba(gdk.rgba.RGBA propval)Set `foregroundRgba` property. Params: propval = Foreground color as a [gdk.rgba.RGBA] Returns: Builder instance for fluent chaining
T foregroundSet(bool propval)
T language(string propval)
T languageSet(bool propval)
T markup(string propval)
T maxWidthChars(int propval)Set `maxWidthChars` property. Params: propval = The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.
T placeholderText(string propval)Set `placeholderText` property. Params: propval = The text that will be displayed in the [gtk.cell_renderer.CellRenderer] if `GtkCellRendererText:editable` is true and the cell is empty. Returns: B...
T rise(int propval)
T riseSet(bool propval)
T scale(double propval)
T scaleSet(bool propval)
T singleParagraphMode(bool propval)
T size(int propval)
T sizePoints(double propval)
T sizeSet(bool propval)
T stretchSet(bool propval)
T strikethrough(bool propval)
T strikethroughSet(bool propval)
T styleSet(bool propval)
T text(string propval)
T underlineSet(bool propval)
T variantSet(bool propval)
T weight(int propval)
T weightSet(bool propval)
T widthChars(int propval)Set `widthChars` property. Params: propval = The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request...
T wrapMode(pango.types.WrapMode propval)Set `wrapMode` property. Params: propval = Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no e...
T wrapWidth(int propval)Set `wrapWidth` property. Params: propval = Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can...

Fluent builder for [gtk.cell_renderer_text.CellRendererText]