You should use gtk.inscription.Inscription or gtk.label.Label instead
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.
Methods
CellRendererTextGidBuilder builder() static nothrowGet builder for [gtk.cell_renderer_text.CellRendererText] Returns: New builder objectpango.types.Alignment alignment() @property nothrowGet `alignment` property. Returns: Specifies how to align the lines of text with respect to each other.void alignment(pango.types.Alignment propval) @property nothrowSet `alignment` property. Params: propval = Specifies how to align the lines of text with respect to each other.gdk.rgba.RGBA backgroundRgba() @property nothrowGet `backgroundRgba` property. Returns: Background color as a [gdk.rgba.RGBA]void backgroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `backgroundRgba` property. Params: propval = Background color as a [gdk.rgba.RGBA]pango.types.EllipsizeMode ellipsize() @property nothrowGet `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) @property nothrowSet `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....gdk.rgba.RGBA foregroundRgba() @property nothrowGet `foregroundRgba` property. Returns: Foreground color as a [gdk.rgba.RGBA]void foregroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `foregroundRgba` property. Params: propval = Foreground color as a [gdk.rgba.RGBA]int maxWidthChars() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `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) @property nothrowSet `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 widthChars() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `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) @property nothrowSet `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) nothrowSets the height of a renderer to explicitly be determined by the “font” and “y_pad” property set on it. Further changes in these properties do not affect the height, so they must be accomp...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) nothrowConnect to `Edited` signal.Fluent builder implementation template for gtk.cell_renderer_text.CellRendererText
Methods
T alignSet(bool propval) nothrowT alignment(pango.types.Alignment propval) nothrowSet `alignment` property. Params: propval = Specifies how to align the lines of text with respect to each other.T attributes(pango.attr_list.AttrList propval) nothrowT background(string propval) nothrowT backgroundRgba(gdk.rgba.RGBA propval) nothrowSet `backgroundRgba` property. Params: propval = Background color as a [gdk.rgba.RGBA] Returns: Builder instance for fluent chainingT backgroundSet(bool propval) nothrowT editable(bool propval) nothrowT editableSet(bool propval) nothrowT ellipsize(pango.types.EllipsizeMode propval) nothrowSet `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) nothrowT family(string propval) nothrowT familySet(bool propval) nothrowT font(string propval) nothrowT fontDesc(pango.font_description.FontDescription propval) nothrowT foreground(string propval) nothrowT foregroundRgba(gdk.rgba.RGBA propval) nothrowSet `foregroundRgba` property. Params: propval = Foreground color as a [gdk.rgba.RGBA] Returns: Builder instance for fluent chainingT foregroundSet(bool propval) nothrowT language(string propval) nothrowT languageSet(bool propval) nothrowT markup(string propval) nothrowT maxWidthChars(int propval) nothrowSet `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) nothrowSet `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) nothrowT riseSet(bool propval) nothrowT scale(double propval) nothrowT scaleSet(bool propval) nothrowT singleParagraphMode(bool propval) nothrowT size(int propval) nothrowT sizePoints(double propval) nothrowT sizeSet(bool propval) nothrowT stretch(pango.types.Stretch propval) nothrowT stretchSet(bool propval) nothrowT strikethrough(bool propval) nothrowT strikethroughSet(bool propval) nothrowT style(pango.types.Style propval) nothrowT styleSet(bool propval) nothrowT text(string propval) nothrowT underline(pango.types.Underline propval) nothrowT underlineSet(bool propval) nothrowT variant(pango.types.Variant propval) nothrowT variantSet(bool propval) nothrowT weight(int propval) nothrowT weightSet(bool propval) nothrowT widthChars(int propval) nothrowSet `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) nothrowSet `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) nothrowSet `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