[18:7] extends: object
Renders text in a cell 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_CELL_RENDERER_MODE_EDITABLE, the
GtkCellRendererText allows to edit its text using an entry.
CellRendererText ()
Creates a new
GtkCellRendererText. Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set()). Also, withGtkTreeViewColumn, you can bind a property to a value in aGtkTreeModel. For example, you can bind the “text” property on the cell renderer to a string value in the model, thus rendering a different string in each row of theGtkTreeView.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asCellRenderer ()
Wraps this handle as
CellRenderer.
A CellRenderer object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnEdited (callback Fn, UserData = null)
This signal is emitted after @renderer has been edited. It is the responsibility of the application to update the model and store @new_text at the position indicated by @path.
Fn is the Aussom callback.Fn is called with (CellRendererText Self, string Path, string New_text).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setAlignset (bool Value)
Writes the
align-setproperty.
Value is the new property value.None.setAlignment (string Value)
Specifies how to align the lines of text with respect to each other. Note that this property describes how to align the lines of text in case there are several of them. The "xalign" property of
GtkCellRenderer, on the other hand, sets the horizontal alignment of the whole text.
Value is the new property value.None.setAttributes (object Value)
Writes the
attributesproperty.
Value is the new property value.None.setBackground (string Value)
Writes the
backgroundproperty.
Value is the new property value.None.setBackgroundset (bool Value)
Writes the
background-setproperty.
Value is the new property value.None.setEditable (bool Value)
Writes the
editableproperty.
Value is the new property value.None.setEditableset (bool Value)
Writes the
editable-setproperty.
Value is the new property value.None.setEllipsize (string Value)
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_ELLIPSIZE_NONE turns off ellipsizing. See the wrap-width property for another way of making the text fit into a given width.
Value is the new property value.None.setEllipsizeset (bool Value)
Writes the
ellipsize-setproperty.
Value is the new property value.None.setFamily (string Value)
Writes the
familyproperty.
Value is the new property value.None.setFamilyset (bool Value)
Writes the
family-setproperty.
Value is the new property value.None.setFont (string Value)
Writes the
fontproperty.
Value is the new property value.None.setFontdesc (object Value)
Writes the
font-descproperty.
Value is the new property value.None.setForeground (string Value)
Writes the
foregroundproperty.
Value is the new property value.None.setForegroundset (bool Value)
Writes the
foreground-setproperty.
Value is the new property value.None.setLanguage (string Value)
Writes the
languageproperty.
Value is the new property value.None.setLanguageset (bool Value)
Writes the
language-setproperty.
Value is the new property value.None.setMarkup (string Value)
Writes the
markupproperty.
Value is the new property value.None.setMaxwidthchars (int Value)
The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically. For cell renderers that ellipsize or wrap text; this property controls the maximum reported width of the cell. The cell should not receive any greater allocation unless it is set to expand in its
GtkCellLayoutand all of the cell's siblings have received their natural width.
Value is the new property value.None.setPlaceholdertext (string Value)
The text that will be displayed in the
GtkCellRendererifGtkCellRendererText:editableis %TRUE and the cell is empty.
Value is the new property value.None.setRise (int Value)
Writes the
riseproperty.
Value is the new property value.None.setRiseset (bool Value)
Writes the
rise-setproperty.
Value is the new property value.None.setScale (double Value)
Writes the
scaleproperty.
Value is the new property value.None.setScaleset (bool Value)
Writes the
scale-setproperty.
Value is the new property value.None.setSingleparagraphmode (bool Value)
Writes the
single-paragraph-modeproperty.
Value is the new property value.None.setSize (int Value)
Writes the
sizeproperty.
Value is the new property value.None.setSizepoints (double Value)
Writes the
size-pointsproperty.
Value is the new property value.None.setSizeset (bool Value)
Writes the
size-setproperty.
Value is the new property value.None.setStretch (string Value)
Writes the
stretchproperty.
Value is the new property value.None.setStretchset (bool Value)
Writes the
stretch-setproperty.
Value is the new property value.None.setStrikethrough (bool Value)
Writes the
strikethroughproperty.
Value is the new property value.None.setStrikethroughset (bool Value)
Writes the
strikethrough-setproperty.
Value is the new property value.None.setStyle (string Value)
Writes the
styleproperty.
Value is the new property value.None.setStyleset (bool Value)
Writes the
style-setproperty.
Value is the new property value.None.setText (string Value)
Writes the
textproperty.
Value is the new property value.None.setUnderline (string Value)
Writes the
underlineproperty.
Value is the new property value.None.setUnderlineset (bool Value)
Writes the
underline-setproperty.
Value is the new property value.None.setVariant (string Value)
Writes the
variantproperty.
Value is the new property value.None.setVariantset (bool Value)
Writes the
variant-setproperty.
Value is the new property value.None.setWeight (int Value)
Writes the
weightproperty.
Value is the new property value.None.setWeightset (bool Value)
Writes the
weight-setproperty.
Value is the new property value.None.setWidthchars (int Value)
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 characters or the property value, whichever is greater.
Value is the new property value.None.setWrapmode (string Value)
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 unless the wrap-width property is set.
Value is the new property value.None.setWrapwidth (int Value)
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 placed. Setting wrap-width to -1 turns wrapping off.
Value is the new property value.None.set_fixed_height_from_font (int number_of_rows)
Sets 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 accompanied by a subsequent call to this function. Using this function is inflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If @number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.
number_of_rows is Number of rows of text each cell renderer is allocated, or -1.None.[895:14] static extends: object
Generated metadata helpers for CellRendererText class surfaces.
properties ()
Returns property metadata for
CellRendererText.
A list.signals ()
Returns signal metadata for
CellRendererText.
A list.[825:7] extends: object
Generated low-level callback wrapper for GIR callback edited.
CellRendererTextEditedCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, path, new_text, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.