Class CellAreaBox
- All Implemented Interfaces:
Buildable, CellLayout, Orientable, Proxy
A cell area that renders GtkCellRenderers into a row or a column
The GtkCellAreaBox renders cell renderers into a row or a column
depending on its GtkOrientation.
GtkCellAreaBox uses a notion of packing. Packing
refers to adding cell renderers with reference to a particular position
in a GtkCellAreaBox. There are two reference positions: the
start and the end of the box.
When the GtkCellAreaBox is oriented in the Orientation.VERTICAL
orientation, the start is defined as the top of the box and the end is
defined as the bottom. In the Orientation.HORIZONTAL orientation
start is defined as the left side and the end is defined as the right
side.
Alignments of GtkCellRenderers rendered in adjacent rows can be
configured by configuring the GtkCellAreaBox align child cell property
with gtk_cell_area_cell_set_property() or by specifying the "align"
argument to gtk_cell_area_box_pack_start() and gtk_cell_area_box_pack_end().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCellAreaBox.Builder<B extends CellAreaBox.Builder<B>>Deprecated.Inner class implementing a builder pattern to construct a GObject with properties.Nested classes/interfaces inherited from class CellArea
CellArea.AddEditableCallback, CellArea.ApplyAttributesCallback, CellArea.CellArea$Impl, CellArea.CellAreaClass, CellArea.FocusChangedCallback, CellArea.RemoveEditableCallbackNested classes/interfaces inherited from class InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClassNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClassNested classes/interfaces inherited from interface Buildable
Buildable.Buildable$Impl, Buildable.BuildableIfaceNested classes/interfaces inherited from interface CellLayout
CellLayout.CellLayout$Impl, CellLayout.CellLayoutIfaceNested classes/interfaces inherited from interface Orientable
Orientable.Orientable$Impl, Orientable.OrientableIface -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a new CellAreaBox.CellAreaBox(MemorySegment address) Deprecated.Create a CellAreaBox instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected CellAreaBoxasParent()Deprecated.Return this instance as if it were its parent type.static CellAreaBox.Builder<? extends CellAreaBox.Builder> builder()Deprecated.ACellAreaBox.Builderobject constructs aCellAreaBoxwith the specified properties.static MemoryLayoutDeprecated.The memory layout of the native struct.intDeprecated.static @Nullable TypegetType()Deprecated.Get the GType of the CellAreaBox class.voidpackEnd(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Deprecated.voidpackStart(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Deprecated.voidsetSpacing(int spacing) Deprecated.Methods inherited from class CellArea
activate, activate, activateCell, activateCell, add, addFocusSibling, addWithProperties, applyAttributes, attributeConnect, attributeDisconnect, attributeGetColumn, cellGet, cellGetProperty, cellSet, cellSetProperty, copyContext, createContext, emitAddEditable, emitApplyAttributes, emitFocusChanged, emitRemoveEditable, event, event, focus, foreach, foreachAlloc, getCellAllocation, getCellAtPosition, getCellProperty, getCurrentPathString, getEditedCell, getEditWidget, getFocusCell, getFocusFromSibling, getFocusSiblings, getPreferredHeight, getPreferredHeightForWidth, getPreferredWidth, getPreferredWidthForHeight, getRequestMode, hasRenderer, innerCellArea, isActivatable, isFocusSibling, onAddEditable, onApplyAttributes, onFocusChanged, onRemoveEditable, remove, removeFocusSibling, requestRenderer, setCellProperty, setFocusCell, snapshot, snapshot, 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, hashCodeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Buildable
getBuildableIdMethods inherited from interface CellLayout
addAttribute, clear, clearAttributes, getArea, getCells, packEnd, packStart, reorder, setAttributes, setCellDataFuncMethods inherited from interface Orientable
getOrientation, setOrientation
-
Constructor Details
-
CellAreaBox
Deprecated.Create a CellAreaBox instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
CellAreaBox
public CellAreaBox()Deprecated.Create a new CellAreaBox.
-
-
Method Details
-
getType
Deprecated.Get the GType of the CellAreaBox 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. -
getSpacing
Deprecated.Gets the spacing added between cell renderers.- Returns:
- the space added between cell renderers in
box.
-
packEnd
@Deprecated public void packEnd(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Deprecated.Adds
renderertobox,packed with reference to the end ofbox.The
rendereris packed after (away from end of) any otherGtkCellRendererpacked with reference to the end ofbox.- Parameters:
renderer- theGtkCellRendererto addexpand- whetherrenderershould receive extra space when the area receives more than its natural sizealign- whetherrenderershould be aligned in adjacent rowsfixed- whetherrenderershould have the same size in all rows
-
packStart
@Deprecated public void packStart(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Deprecated.Adds
renderertobox,packed with reference to the start ofbox.The
rendereris packed after any otherGtkCellRendererpacked with reference to the start ofbox.- Parameters:
renderer- theGtkCellRendererto addexpand- whetherrenderershould receive extra space when the area receives more than its natural sizealign- whetherrenderershould be aligned in adjacent rowsfixed- whetherrenderershould have the same size in all rows
-
setSpacing
Deprecated.Sets the spacing to add between cell renderers inbox.- Parameters:
spacing- the space to add betweenGtkCellRenderers
-
builder
Deprecated.ACellAreaBox.Builderobject constructs aCellAreaBoxwith the specified properties. Use the variousset...()methods to set properties, and finish construction withCellAreaBox.Builder.build().- Returns:
- the builder object
-