gtk.cell_renderer_text
Module for [CellRendererText] class
Types 3
A #GtkCellRendererText 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 #GtkCellRendererText allows to edit its text using an entry.
Methods
CellRendererText self()Returns `this`, for use in `with` statements.CellRendererTextGidBuilder builder()Get builder for [gtk.cellrenderertext.CellRendererText] Returns: New builder objectbool alignSet() @propertyvoid alignSet(bool propval) @propertypango.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.pango.attr_list.AttrList attributes() @propertyvoid attributes(pango.attr_list.AttrList propval) @propertyvoid background(string propval) @propertygdk.color.Color backgroundGdk() @propertyGet `backgroundGdk` property. Returns: Background color as a #GdkColorvoid backgroundGdk(gdk.color.Color propval) @propertySet `backgroundGdk` property. Params: propval = Background color as a #GdkColorgdk.rgba.RGBA backgroundRgba() @propertyGet `backgroundRgba` property. Returns: Background color as a #GdkRGBAvoid backgroundRgba(gdk.rgba.RGBA propval) @propertySet `backgroundRgba` property. Params: propval = Background color as a #GdkRGBAbool backgroundSet() @propertyvoid backgroundSet(bool propval) @propertybool editable() @propertyvoid editable(bool propval) @propertybool editableSet() @propertyvoid editableSet(bool propval) @propertypango.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() @propertyvoid ellipsizeSet(bool propval) @propertystring family() @propertyvoid family(string propval) @propertybool familySet() @propertyvoid familySet(bool propval) @propertystring font() @propertyvoid font(string propval) @propertypango.font_description.FontDescription fontDesc() @propertyvoid fontDesc(pango.font_description.FontDescription propval) @propertyvoid foreground(string propval) @propertygdk.color.Color foregroundGdk() @propertyGet `foregroundGdk` property. Returns: Foreground color as a #GdkColorvoid foregroundGdk(gdk.color.Color propval) @propertySet `foregroundGdk` property. Params: propval = Foreground color as a #GdkColorgdk.rgba.RGBA foregroundRgba() @propertyGet `foregroundRgba` property. Returns: Foreground color as a #GdkRGBAvoid foregroundRgba(gdk.rgba.RGBA propval) @propertySet `foregroundRgba` property. Params: propval = Foreground color as a #GdkRGBAbool foregroundSet() @propertyvoid foregroundSet(bool propval) @propertystring language() @propertyvoid language(string propval) @propertybool languageSet() @propertyvoid languageSet(bool propval) @propertyvoid markup(string propval) @propertyint 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 #GtkCellRenderer 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 #GtkCellRenderer if #GtkCellRendererText:editable is true and the cell is empty.int rise() @propertyvoid rise(int propval) @propertybool riseSet() @propertyvoid riseSet(bool propval) @propertydouble scale() @propertyvoid scale(double propval) @propertybool scaleSet() @propertyvoid scaleSet(bool propval) @propertybool singleParagraphMode() @propertyvoid singleParagraphMode(bool propval) @propertyint size() @propertyvoid size(int propval) @propertydouble sizePoints() @propertyvoid sizePoints(double propval) @propertybool sizeSet() @propertyvoid sizeSet(bool propval) @propertypango.types.Stretch stretch() @propertyvoid stretch(pango.types.Stretch propval) @propertybool stretchSet() @propertyvoid stretchSet(bool propval) @propertybool strikethrough() @propertyvoid strikethrough(bool propval) @propertybool strikethroughSet() @propertyvoid strikethroughSet(bool propval) @propertypango.types.Style style() @propertyvoid style(pango.types.Style propval) @propertybool styleSet() @propertyvoid styleSet(bool propval) @propertystring text() @propertyvoid text(string propval) @propertypango.types.Underline underline() @propertyvoid underline(pango.types.Underline propval) @propertybool underlineSet() @propertyvoid underlineSet(bool propval) @propertypango.types.Variant variant() @propertyvoid variant(pango.types.Variant propval) @propertybool variantSet() @propertyvoid variantSet(bool propval) @propertyint weight() @propertyvoid weight(int propval) @propertybool weightSet() @propertyvoid weightSet(bool propval) @propertyint 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.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 attributes(pango.attr_list.AttrList propval)T background(string propval)T backgroundGdk(gdk.color.Color propval)Set `backgroundGdk` property. Params: propval = Background color as a #GdkColor Returns: Builder instance for fluent chainingT backgroundRgba(gdk.rgba.RGBA propval)Set `backgroundRgba` property. Params: propval = Background color as a #GdkRGBA Returns: Builder instance for fluent chainingT 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 fontDesc(pango.font_description.FontDescription propval)T foreground(string propval)T foregroundGdk(gdk.color.Color propval)Set `foregroundGdk` property. Params: propval = Foreground color as a #GdkColor Returns: Builder instance for fluent chainingT foregroundRgba(gdk.rgba.RGBA propval)Set `foregroundRgba` property. Params: propval = Foreground color as a #GdkRGBA Returns: Builder instance for fluent chainingT 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 #GtkCellRenderer if #GtkCellRendererText:editable is true and the cell is empty.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 stretch(pango.types.Stretch propval)T stretchSet(bool propval)T strikethrough(bool propval)T strikethroughSet(bool propval)T style(pango.types.Style propval)T styleSet(bool propval)T text(string propval)T underline(pango.types.Underline propval)T underlineSet(bool propval)T variant(pango.types.Variant 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]
Methods