Class CellAreaBox
- All Implemented Interfaces:
Proxy
,Buildable
,CellLayout
,Orientable
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 GtkCellRenderer
s 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
Modifier and TypeClassDescriptionstatic class
CellAreaBox.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 org.gnome.gtk.CellArea
CellArea.AddEditableCallback, CellArea.ApplyAttributesCallback, CellArea.CellAreaClass, CellArea.CellAreaImpl, CellArea.FocusChangedCallback, CellArea.RemoveEditableCallback
Nested classes/interfaces inherited from class org.gnome.gobject.InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClass
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
Nested classes/interfaces inherited from interface org.gnome.gtk.Buildable
Buildable.BuildableIface, Buildable.BuildableImpl
Nested classes/interfaces inherited from interface org.gnome.gtk.CellLayout
CellLayout.CellLayoutIface, CellLayout.CellLayoutImpl
Nested classes/interfaces inherited from interface org.gnome.gtk.Orientable
Orientable.OrientableIface, Orientable.OrientableImpl
-
Constructor Summary
ConstructorDescriptionDeprecated.CellAreaBox
(MemorySegment address) Deprecated.Create a CellAreaBox proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected CellAreaBox
asParent()
Deprecated.Returns this instance as if it were its parent type.static CellAreaBox.Builder
<? extends CellAreaBox.Builder> builder()
Deprecated.ACellAreaBox.Builder
object constructs aCellAreaBox
with the specified properties.int
Deprecated.static Type
getType()
Deprecated.Get the GType of the CellAreaBox classvoid
packEnd
(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Deprecated.void
packStart
(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Deprecated.void
setSpacing
(int spacing) Deprecated.Methods inherited from class org.gnome.gtk.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, getMemoryLayout, getPreferredHeight, getPreferredHeightForWidth, getPreferredWidth, getPreferredWidthForHeight, getRequestMode, hasRenderer, innerCellArea, isActivatable, isFocusSibling, onAddEditable, onApplyAttributes, onFocusChanged, onRemoveEditable, remove, removeFocusSibling, requestRenderer, setCellProperty, setFocusCell, snapshot, snapshot, stopEditing
Methods inherited from class org.gnome.gobject.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, 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, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Buildable
getBuildableId
Methods inherited from interface org.gnome.gtk.CellLayout
addAttribute, clear, clearAttributes, getArea, getCells, packEnd, packStart, reorder, setAttributes, setCellDataFunc
Methods inherited from interface org.gnome.gtk.Orientable
getOrientation, setOrientation
-
Constructor Details
-
CellAreaBox
Deprecated.Create a CellAreaBox proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
CellAreaBox
-
-
Method Details
-
getType
-
asParent
Deprecated.Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type. -
getSpacing
Deprecated.Gets the spacing added between cell renderers.- Returns:
- the space added between cell renderers in this CellAreaBox.
-
packEnd
@Deprecated public void packEnd(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Deprecated.Addsrenderer
to this CellAreaBox, packed with reference to the end of this CellAreaBox.The
renderer
is packed after (away from end of) any otherGtkCellRenderer
packed with reference to the end of this CellAreaBox.- Parameters:
renderer
- theGtkCellRenderer
to addexpand
- whetherrenderer
should receive extra space when the area receives more than its natural sizealign
- whetherrenderer
should be aligned in adjacent rowsfixed
- whetherrenderer
should have the same size in all rows
-
packStart
@Deprecated public void packStart(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Deprecated.Addsrenderer
to this CellAreaBox, packed with reference to the start of this CellAreaBox.The
renderer
is packed after any otherGtkCellRenderer
packed with reference to the start of this CellAreaBox.- Parameters:
renderer
- theGtkCellRenderer
to addexpand
- whetherrenderer
should receive extra space when the area receives more than its natural sizealign
- whetherrenderer
should be aligned in adjacent rowsfixed
- whetherrenderer
should have the same size in all rows
-
setSpacing
Deprecated.Sets the spacing to add between cell renderers in this CellAreaBox.- Parameters:
spacing
- the space to add betweenGtkCellRenderer
s
-
builder
Deprecated.ACellAreaBox.Builder
object constructs aCellAreaBox
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withCellAreaBox.Builder.build()
.
-