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
GType _getGType() static nothrow
GType _gType() @property nothrow
CellRendererText self() nothrowReturns `this`, for use in `with` statements.
CellRendererTextGidBuilder builder() static nothrowGet builder for [gtk.cell_renderer_text.CellRendererText] Returns: New builder object
bool alignSet() @property nothrow
void alignSet(bool propval) @property nothrow
pango.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.
void attributes(pango.attr_list.AttrList propval) @property nothrow
void background(string propval) @property nothrow
gdk.color.Color backgroundGdk() @property nothrowGet `backgroundGdk` property. Returns: Background color as a #GdkColor
void backgroundGdk(gdk.color.Color propval) @property nothrowSet `backgroundGdk` property. Params: propval = Background color as a #GdkColor
gdk.rgba.RGBA backgroundRgba() @property nothrowGet `backgroundRgba` property. Returns: Background color as a #GdkRGBA
void backgroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `backgroundRgba` property. Params: propval = Background color as a #GdkRGBA
bool backgroundSet() @property nothrow
void backgroundSet(bool propval) @property nothrow
bool editable() @property nothrow
void editable(bool propval) @property nothrow
bool editableSet() @property nothrow
void editableSet(bool propval) @property nothrow
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....
bool ellipsizeSet() @property nothrow
void ellipsizeSet(bool propval) @property nothrow
string family() @property nothrow
void family(string propval) @property nothrow
bool familySet() @property nothrow
void familySet(bool propval) @property nothrow
string font() @property nothrow
void font(string propval) @property nothrow
void fontDesc(pango.font_description.FontDescription propval) @property nothrow
void foreground(string propval) @property nothrow
gdk.color.Color foregroundGdk() @property nothrowGet `foregroundGdk` property. Returns: Foreground color as a #GdkColor
void foregroundGdk(gdk.color.Color propval) @property nothrowSet `foregroundGdk` property. Params: propval = Foreground color as a #GdkColor
gdk.rgba.RGBA foregroundRgba() @property nothrowGet `foregroundRgba` property. Returns: Foreground color as a #GdkRGBA
void foregroundRgba(gdk.rgba.RGBA propval) @property nothrowSet `foregroundRgba` property. Params: propval = Foreground color as a #GdkRGBA
bool foregroundSet() @property nothrow
void foregroundSet(bool propval) @property nothrow
string language() @property nothrow
void language(string propval) @property nothrow
bool languageSet() @property nothrow
void languageSet(bool propval) @property nothrow
void markup(string propval) @property nothrow
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 #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 rise() @property nothrow
void rise(int propval) @property nothrow
bool riseSet() @property nothrow
void riseSet(bool propval) @property nothrow
double scale() @property nothrow
void scale(double propval) @property nothrow
bool scaleSet() @property nothrow
void scaleSet(bool propval) @property nothrow
bool singleParagraphMode() @property nothrow
void singleParagraphMode(bool propval) @property nothrow
int size() @property nothrow
void size(int propval) @property nothrow
double sizePoints() @property nothrow
void sizePoints(double propval) @property nothrow
bool sizeSet() @property nothrow
void sizeSet(bool propval) @property nothrow
pango.types.Stretch stretch() @property nothrow
void stretch(pango.types.Stretch propval) @property nothrow
bool stretchSet() @property nothrow
void stretchSet(bool propval) @property nothrow
bool strikethrough() @property nothrow
void strikethrough(bool propval) @property nothrow
bool strikethroughSet() @property nothrow
void strikethroughSet(bool propval) @property nothrow
pango.types.Style style() @property nothrow
void style(pango.types.Style propval) @property nothrow
bool styleSet() @property nothrow
void styleSet(bool propval) @property nothrow
string text() @property nothrow
void text(string propval) @property nothrow
pango.types.Underline underline() @property nothrow
void underline(pango.types.Underline propval) @property nothrow
bool underlineSet() @property nothrow
void underlineSet(bool propval) @property nothrow
pango.types.Variant variant() @property nothrow
void variant(pango.types.Variant propval) @property nothrow
bool variantSet() @property nothrow
void variantSet(bool propval) @property nothrow
int weight() @property nothrow
void weight(int propval) @property nothrow
bool weightSet() @property nothrow
void weightSet(bool propval) @property nothrow
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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GtkCellRendererText. Adjust how text is drawn using object properties. Object properties can be set globally (with [gobject.object.ObjectWrap.set]). Also, with #GtkTreeViewColumn, yo...

Fluent builder implementation template for gtk.cell_renderer_text.CellRendererText

Methods
T alignSet(bool propval) nothrow
T alignment(pango.types.Alignment propval) nothrowSet `alignment` property. Params: propval = Specifies how to align the lines of text with respect to each other.
T background(string propval) nothrow
T backgroundGdk(gdk.color.Color propval) nothrowSet `backgroundGdk` property. Params: propval = Background color as a #GdkColor Returns: Builder instance for fluent chaining
T backgroundRgba(gdk.rgba.RGBA propval) nothrowSet `backgroundRgba` property. Params: propval = Background color as a #GdkRGBA Returns: Builder instance for fluent chaining
T backgroundSet(bool propval) nothrow
T editable(bool propval) nothrow
T editableSet(bool propval) nothrow
T 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) nothrow
T family(string propval) nothrow
T familySet(bool propval) nothrow
T font(string propval) nothrow
T foreground(string propval) nothrow
T foregroundGdk(gdk.color.Color propval) nothrowSet `foregroundGdk` property. Params: propval = Foreground color as a #GdkColor Returns: Builder instance for fluent chaining
T foregroundRgba(gdk.rgba.RGBA propval) nothrowSet `foregroundRgba` property. Params: propval = Foreground color as a #GdkRGBA Returns: Builder instance for fluent chaining
T foregroundSet(bool propval) nothrow
T language(string propval) nothrow
T languageSet(bool propval) nothrow
T markup(string propval) nothrow
T 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) nothrow
T riseSet(bool propval) nothrow
T scale(double propval) nothrow
T scaleSet(bool propval) nothrow
T singleParagraphMode(bool propval) nothrow
T size(int propval) nothrow
T sizePoints(double propval) nothrow
T sizeSet(bool propval) nothrow
T stretch(pango.types.Stretch propval) nothrow
T stretchSet(bool propval) nothrow
T strikethrough(bool propval) nothrow
T strikethroughSet(bool propval) nothrow
T style(pango.types.Style propval) nothrow
T styleSet(bool propval) nothrow
T text(string propval) nothrow
T underline(pango.types.Underline propval) nothrow
T underlineSet(bool propval) nothrow
T variant(pango.types.Variant propval) nothrow
T variantSet(bool propval) nothrow
T weight(int propval) nothrow
T weightSet(bool propval) nothrow
T 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...