Class CellRendererText
- All Implemented Interfaces:
Proxy
- Direct Known Subclasses:
CellRendererAccel, CellRendererCombo, CellRendererSpin
Deprecated.
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 CellRendererMode.EDITABLE,
the GtkCellRendererText allows to edit its text using an entry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCellRendererText.Builder<B extends CellRendererText.Builder<B>>Deprecated.Inner class implementing a builder pattern to construct a GObject with properties.static classDeprecated.static interfaceDeprecated.Functional interface declaration of theEditedCallbackcallback.Nested classes/interfaces inherited from class CellRenderer
CellRenderer.CellRenderer$Impl, CellRenderer.CellRendererClass, CellRenderer.EditingCanceledCallback, CellRenderer.EditingStartedCallbackNested classes/interfaces inherited from class InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClassNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a new CellRendererText.CellRendererText(MemorySegment address) Deprecated.Create a CellRendererText instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected CellRendererTextasParent()Deprecated.Return this instance as if it were its parent type.static CellRendererText.Builder<? extends CellRendererText.Builder> builder()Deprecated.ACellRendererText.Builderobject constructs aCellRendererTextwith the specified properties.protected voidDeprecated.voidemitEdited(String path, String newText) Deprecated.Emits the "edited" signal.static MemoryLayoutDeprecated.The memory layout of the native struct.static @Nullable TypegetType()Deprecated.Get the GType of the CellRendererText class.onEdited(CellRendererText.EditedCallback handler) Deprecated.This signal is emitted afterrendererhas been edited.voidsetFixedHeightFromFont(int numberOfRows) Deprecated.Methods inherited from class CellRenderer
activate, activate, editingCanceled, editingStarted, emitEditingCanceled, emitEditingStarted, getAlignedArea, getAlignedArea, getAlignment, getFixedSize, getIsExpanded, getIsExpander, getPadding, getPreferredHeight, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getRequestMode, getSensitive, getState, getState, getVisible, isActivatable, onEditingCanceled, onEditingStarted, setAlignment, setFixedSize, setIsExpanded, setIsExpander, setPadding, setSensitive, setVisible, snapshot, snapshot, startEditing, startEditing, stopEditingMethods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
CellRendererText
Deprecated.Create a CellRendererText instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
CellRendererText
public CellRendererText()Deprecated.Create a new CellRendererText.
-
-
Method Details
-
getType
Deprecated.Get the GType of the CellRendererText class.- Returns:
- the GType
-
getMemoryLayout
Deprecated.The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Deprecated.Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Overrides:
asParentin classCellRenderer- Returns:
- the instance as if it were its parent type
-
setFixedHeightFromFont
Deprecated.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). IfnumberOfRowsis -1, then the fixed height is unset, and the height is determined by the properties again.- Parameters:
numberOfRows- Number of rows of text each cell renderer is allocated, or -1
-
edited
-
onEdited
public SignalConnection<CellRendererText.EditedCallback> onEdited(CellRendererText.EditedCallback handler) Deprecated.This signal is emitted after
rendererhas been edited.It is the responsibility of the application to update the model and store
newTextat the position indicated bypath.- Parameters:
handler- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitEdited
Deprecated.Emits the "edited" signal. SeeonEdited(CellRendererText.EditedCallback). -
builder
Deprecated.ACellRendererText.Builderobject constructs aCellRendererTextwith the specified properties. Use the variousset...()methods to set properties, and finish construction withCellRendererText.Builder.build().- Returns:
- the builder object
-
InscriptionorLabelinstead