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
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.color.Color backgroundGdk() @property nothrowGet `backgroundGdk` property. Returns: Background color as a #GdkColorvoid backgroundGdk(gdk.color.Color propval) @property nothrowSet `backgroundGdk` property. Params: propval = Background color as a #GdkColorgdk.rgba.RGBA backgroundRgba() @property nothrowGet `backgroundRgba` property. Returns: Background color as a #GdkRGBAvoid backgroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `backgroundRgba` property. Params: propval = Background color as a #GdkRGBApango.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.color.Color foregroundGdk() @property nothrowGet `foregroundGdk` property. Returns: Foreground color as a #GdkColorvoid foregroundGdk(gdk.color.Color propval) @property nothrowSet `foregroundGdk` property. Params: propval = Foreground color as a #GdkColorgdk.rgba.RGBA foregroundRgba() @property nothrowGet `foregroundRgba` property. Returns: Foreground color as a #GdkRGBAvoid foregroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `foregroundRgba` property. Params: propval = Foreground color as a #GdkRGBAint 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 #GtkCellRenderer 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 #GtkCellRenderer 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 backgroundGdk(gdk.color.Color propval) nothrowSet `backgroundGdk` property. Params: propval = Background color as a #GdkColor Returns: Builder instance for fluent chainingT backgroundRgba(gdk.rgba.RGBA propval) nothrowSet `backgroundRgba` property. Params: propval = Background color as a #GdkRGBA 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 foregroundGdk(gdk.color.Color propval) nothrowSet `foregroundGdk` property. Params: propval = Foreground color as a #GdkColor Returns: Builder instance for fluent chainingT foregroundRgba(gdk.rgba.RGBA propval) nothrowSet `foregroundRgba` property. Params: propval = Foreground color as a #GdkRGBA 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 #GtkCellRenderer if #GtkCellRendererText:editable is true and the cell is empty.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