Package ch.bailu.gtk.gtk
Class CellAreaBox
- All Implemented Interfaces:
PointerInterface
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 %GTK_ORIENTATION_VERTICAL
orientation, the start is defined as the top of the box and the end is
defined as the bottom. In the %GTK_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().
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 %GTK_ORIENTATION_VERTICAL
orientation, the start is defined as the top of the box and the end is
defined as the bottom. In the %GTK_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
Nested classes/interfaces inherited from class ch.bailu.gtk.gtk.CellArea
CellArea.OnAddEditable, CellArea.OnApplyAttributes, CellArea.OnCellAllocCallback, CellArea.OnCellCallback, CellArea.OnFocusChanged, CellArea.OnRemoveEditable
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gtk.CellArea
SIGNAL_ON_ADD_EDITABLE, SIGNAL_ON_APPLY_ATTRIBUTES, SIGNAL_ON_FOCUS_CHANGED, SIGNAL_ON_REMOVE_EDITABLE
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionImplements interfaceBuildable
.Implements interfaceCellLayout
.Implements interfaceOrientable
.static ClassHandler
static int
static long
static TypeSystem.TypeSize
int
Gets the spacing added between cell renderers.static long
static TypeSystem.TypeSize
void
packEnd
(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Adds @renderer to @box, packed with reference to the end of @box.void
packStart
(CellRenderer renderer, boolean expand, boolean align, boolean fixed) Adds @renderer to @box, packed with reference to the start of @box.void
setSpacing
(int spacing) Sets the spacing to add between cell renderers in @box.Methods inherited from class ch.bailu.gtk.gtk.CellArea
activate, activateCell, add, addFocusSibling, addWithProperties, addWithProperties, applyAttributes, attributeConnect, attributeConnect, attributeDisconnect, attributeDisconnect, attributeGetColumn, attributeGetColumn, cellGet, cellGet, cellGetProperty, cellGetProperty, cellSet, cellSet, cellSetProperty, cellSetProperty, copyContext, createContext, event, focus, foreach, foreachAlloc, getCellAllocation, getCellAtPosition, getCurrentPathString, getEditedCell, getEditWidget, getFocusCell, getFocusFromSibling, getFocusSiblings, getPreferredHeight, getPreferredHeightForWidth, getPreferredWidth, getPreferredWidthForHeight, getRequestMode, hasRenderer, innerCellArea, isActivatable, isFocusSibling, onAddEditable, onApplyAttributes, onFocusChanged, onRemoveEditable, remove, removeFocusSibling, requestRenderer, setFocusCell, snapshot, stopEditing
Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
CellAreaBox
-
CellAreaBox
public CellAreaBox()Creates a new `GtkCellAreaBox`.
-
-
Method Details
-
getClassHandler
-
getSpacing
public int getSpacing()Gets the spacing added between cell renderers.- Returns:
- the space added between cell renderers in @box.
-
packEnd
Adds @renderer to @box, packed with reference to the end of @box.
The @renderer is packed after (away from end of) any other
`GtkCellRenderer` packed with reference to the end of @box.- Parameters:
renderer
- the `GtkCellRenderer` to addexpand
- whether @renderer should receive extra space when the area receives more than its natural sizealign
- whether @renderer should be aligned in adjacent rowsfixed
- whether @renderer should have the same size in all rows
-
packStart
Adds @renderer to @box, packed with reference to the start of @box.
The @renderer is packed after any other `GtkCellRenderer` packed
with reference to the start of @box.- Parameters:
renderer
- the `GtkCellRenderer` to addexpand
- whether @renderer should receive extra space when the area receives more than its natural sizealign
- whether @renderer should be aligned in adjacent rowsfixed
- whether @renderer should have the same size in all rows
-
setSpacing
public void setSpacing(int spacing) Sets the spacing to add between cell renderers in @box.- Parameters:
spacing
- the space to add between `GtkCellRenderer`s
-
asBuildable
Implements interfaceBuildable
. Call this to get access to interface functions.- Overrides:
asBuildable
in classCellArea
- Returns:
Buildable
-
asCellLayout
Implements interfaceCellLayout
. Call this to get access to interface functions.- Overrides:
asCellLayout
in classCellArea
- Returns:
CellLayout
-
asOrientable
Implements interfaceOrientable
. Call this to get access to interface functions.- Returns:
Orientable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-