Package ch.bailu.gtk.gtk
Class FlowBox
- All Implemented Interfaces:
PointerInterface
A `GtkFlowBox` puts child widgets in reflowing grid.
For instance, with the horizontal orientation, the widgets will be
arranged from left to right, starting a new row under the previous
row when necessary. Reducing the width in this case will require more
rows, so a larger height will be requested.
Likewise, with the vertical orientation, the widgets will be arranged
from top to bottom, starting a new column to the right when necessary.
Reducing the height will require more columns, so a larger width will
be requested.
The size request of a `GtkFlowBox` alone may not be what you expect;
if you need to be able to shrink it along both axes and dynamically
reflow its children, you may have to wrap it in a `GtkScrolledWindow`
to enable that.
The children of a `GtkFlowBox` can be dynamically sorted and filtered.
Although a `GtkFlowBox` must have only `GtkFlowBoxChild` children, you
can add any kind of widget to it via [method@Gtk.FlowBox.insert], and a
`GtkFlowBoxChild` widget will automatically be inserted between the box
and the widget.
Also see [class@Gtk.ListBox].
# CSS nodes
```
flowbox
├── flowboxchild
│ ╰── <child>
├── flowboxchild
│ ╰── <child>
┊
╰── [rubberband]
```
`GtkFlowBox` uses a single CSS node with name flowbox. `GtkFlowBoxChild`
uses a single CSS node with name flowboxchild. For rubberband selection,
a subnode with name rubberband is used.
# Accessibility
`GtkFlowBox` uses the %GTK_ACCESSIBLE_ROLE_GRID role, and `GtkFlowBoxChild`
uses the %GTK_ACCESSIBLE_ROLE_GRID_CELL role.
For instance, with the horizontal orientation, the widgets will be
arranged from left to right, starting a new row under the previous
row when necessary. Reducing the width in this case will require more
rows, so a larger height will be requested.
Likewise, with the vertical orientation, the widgets will be arranged
from top to bottom, starting a new column to the right when necessary.
Reducing the height will require more columns, so a larger width will
be requested.
The size request of a `GtkFlowBox` alone may not be what you expect;
if you need to be able to shrink it along both axes and dynamically
reflow its children, you may have to wrap it in a `GtkScrolledWindow`
to enable that.
The children of a `GtkFlowBox` can be dynamically sorted and filtered.
Although a `GtkFlowBox` must have only `GtkFlowBoxChild` children, you
can add any kind of widget to it via [method@Gtk.FlowBox.insert], and a
`GtkFlowBoxChild` widget will automatically be inserted between the box
and the widget.
Also see [class@Gtk.ListBox].
# CSS nodes
```
flowbox
├── flowboxchild
│ ╰── <child>
├── flowboxchild
│ ╰── <child>
┊
╰── [rubberband]
```
`GtkFlowBox` uses a single CSS node with name flowbox. `GtkFlowBoxChild`
uses a single CSS node with name flowboxchild. For rubberband selection,
a subnode with name rubberband is used.
# Accessibility
`GtkFlowBox` uses the %GTK_ACCESSIBLE_ROLE_GRID role, and `GtkFlowBoxChild`
uses the %GTK_ACCESSIBLE_ROLE_GRID_CELL role.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Nested classes/interfaces inherited from class ch.bailu.gtk.gtk.Widget
Widget.OnDestroy, Widget.OnDirectionChanged, Widget.OnHide, Widget.OnKeynavFailed, Widget.OnMap, Widget.OnMnemonicActivate, Widget.OnMoveFocus, Widget.OnQueryTooltip, Widget.OnRealize, Widget.OnShow, Widget.OnStateFlagsChanged, Widget.OnTickCallback, Widget.OnUnmap, Widget.OnUnrealize
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class ch.bailu.gtk.gtk.Widget
SIGNAL_ON_DESTROY, SIGNAL_ON_DIRECTION_CHANGED, SIGNAL_ON_HIDE, SIGNAL_ON_KEYNAV_FAILED, SIGNAL_ON_MAP, SIGNAL_ON_MNEMONIC_ACTIVATE, SIGNAL_ON_MOVE_FOCUS, SIGNAL_ON_QUERY_TOOLTIP, SIGNAL_ON_REALIZE, SIGNAL_ON_SHOW, SIGNAL_ON_STATE_FLAGS_CHANGED, SIGNAL_ON_UNMAP, SIGNAL_ON_UNREALIZE
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds @child to the end of @self.Implements interfaceAccessible
.Implements interfaceBuildable
.Implements interfaceConstraintTarget
.Implements interfaceOrientable
.void
bindModel
(ListModel model, FlowBox.OnFlowBoxCreateWidgetFunc create_widget_func, Pointer user_data, FlowBox.OnDestroyNotify user_data_free_func) Binds @model to @box.boolean
Returns whether children activate on single clicks.getChildAtIndex
(int idx) Gets the nth child in the @box.getChildAtPos
(int x, int y) Gets the child in the (@x, @y) position.static ClassHandler
int
Gets the horizontal spacing.boolean
Returns whether the box is homogeneous.static int
int
Gets the maximum number of children per line.int
Gets the minimum number of children per line.static long
static TypeSystem.TypeSize
int
Gets the vertical spacing.Creates a list of all selected children.int
Gets the selection mode of @box.static long
static TypeSystem.TypeSize
void
Inserts the @widget into @box at @position.void
Updates the filtering for all children.void
Updates the sorting for all children.Connect to signal "activate-cursor-child".Connect to signal "child-activated".onMoveCursor
(FlowBox.OnMoveCursor signal) Connect to signal "move-cursor".onSelectAll
(FlowBox.OnSelectAll signal) Connect to signal "select-all".Connect to signal "selected-children-changed".Connect to signal "toggle-cursor-child".onUnselectAll
(FlowBox.OnUnselectAll signal) Connect to signal "unselect-all".void
Adds @child to the start of @self.void
Removes a child from @box.void
Select all children of @box, if the selection
mode allows it.void
selectChild
(FlowBoxChild child) Selects a single child of @box, if the selection
mode allows it.void
selectedForeach
(FlowBox.OnFlowBoxForeachFunc func, Pointer data) Calls a function for each selected child.void
setActivateOnSingleClick
(boolean single) If @single is %TRUE, children will be activated when you click
on them, otherwise you need to double-click.void
setColumnSpacing
(int spacing) Sets the horizontal space to add between children.void
setFilterFunc
(FlowBox.OnFlowBoxFilterFunc filter_func, Pointer user_data, FlowBox.OnDestroyNotify destroy) By setting a filter function on the @box one can decide dynamically
which of the children to show.void
setHadjustment
(Adjustment adjustment) Hooks up an adjustment to focus handling in @box.void
setHomogeneous
(boolean homogeneous) Sets whether or not all children of @box are given
equal space in the box.void
setMaxChildrenPerLine
(int n_children) Sets the maximum number of children to request and
allocate space for in @box’s orientation.void
setMinChildrenPerLine
(int n_children) Sets the minimum number of children to line up
in @box’s orientation before flowing.void
setRowSpacing
(int spacing) Sets the vertical space to add between children.void
setSelectionMode
(int mode) Sets how selection works in @box.void
setSortFunc
(FlowBox.OnFlowBoxSortFunc sort_func, Pointer user_data, FlowBox.OnDestroyNotify destroy) By setting a sort function on the @box, one can dynamically
reorder the children of the box, based on the contents of
the children.void
setVadjustment
(Adjustment adjustment) Hooks up an adjustment to focus handling in @box.void
Unselect all children of @box, if the selection
mode allows it.void
unselectChild
(FlowBoxChild child) Unselects a single child of @box, if the selection
mode allows it.Methods inherited from class ch.bailu.gtk.gtk.Widget
actionSetEnabled, actionSetEnabled, activate, activateAction, activateAction, activateActionVariant, activateActionVariant, activateDefault, addController, addCssClass, addCssClass, addMnemonicLabel, addTickCallback, allocate, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, createPangoLayout, disposeTemplate, dragCheckThreshold, errorBell, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getCanFocus, getCanTarget, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getDefaultDirection, getDirection, getDisplay, getFirstChild, getFocusable, getFocusChild, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth, grabFocus, hasCssClass, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, observeChildren, observeControllers, onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, pick, queueAllocate, queueDraw, queueResize, realize, removeController, removeCssClass, removeCssClass, removeMnemonicLabel, removeTickCallback, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setCursorFromName, setDefaultDirection, setDirection, setFocusable, setFocusChild, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setName, setOpacity, setOverflow, setParent, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipMarkup, setTooltipText, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, shouldLayout, show, sizeAllocate, snapshotChild, triggerTooltipQuery, unmap, unparent, unrealize, unsetStateFlags
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
-
Field Details
-
SIGNAL_ON_ACTIVATE_CURSOR_CHILD
- See Also:
-
SIGNAL_ON_CHILD_ACTIVATED
- See Also:
-
SIGNAL_ON_MOVE_CURSOR
- See Also:
-
SIGNAL_ON_SELECT_ALL
- See Also:
-
SIGNAL_ON_SELECTED_CHILDREN_CHANGED
- See Also:
-
SIGNAL_ON_TOGGLE_CURSOR_CHILD
- See Also:
-
SIGNAL_ON_UNSELECT_ALL
- See Also:
-
-
Constructor Details
-
FlowBox
-
FlowBox
public FlowBox()Creates a `GtkFlowBox`.
-
-
Method Details
-
getClassHandler
-
append
Adds @child to the end of @self.
If a sort function is set, the widget will
actually be inserted at the calculated position.
See also: [method@Gtk.FlowBox.insert].- Parameters:
child
- the `GtkWidget` to add
-
bindModel
public void bindModel(@Nullable ListModel model, FlowBox.OnFlowBoxCreateWidgetFunc create_widget_func, @Nullable Pointer user_data, FlowBox.OnDestroyNotify user_data_free_func) Binds @model to @box.
If @box was already bound to a model, that previous binding is
destroyed.
The contents of @box are cleared and then filled with widgets that
represent items from @model. @box is updated whenever @model changes.
If @model is %NULL, @box is left empty.
It is undefined to add or remove widgets directly (for example, with
[method@Gtk.FlowBox.insert]) while @box is bound to a model.
Note that using a model is incompatible with the filtering and sorting
functionality in `GtkFlowBox`. When using a model, filtering and sorting
should be implemented by the model.- Parameters:
model
- the `GListModel` to be bound to @boxcreate_widget_func
- a function that creates widgets for itemsuser_data
- user data passed to @create_widget_funcuser_data_free_func
- function for freeing @user_data
-
getActivateOnSingleClick
public boolean getActivateOnSingleClick()Returns whether children activate on single clicks.- Returns:
- %TRUE if children are activated on single click, %FALSE otherwise
-
getChildAtIndex
Gets the nth child in the @box.- Parameters:
idx
- the position of the child- Returns:
- the child widget, which will always be a `GtkFlowBoxChild` or %NULL in case no child widget with the given index exists.
-
getChildAtPos
Gets the child in the (@x, @y) position.
Both @x and @y are assumed to be relative to the origin of @box.- Parameters:
x
- the x coordinate of the childy
- the y coordinate of the child- Returns:
- the child widget, which will always be a `GtkFlowBoxChild` or %NULL in case no child widget exists for the given x and y coordinates.
-
getColumnSpacing
public int getColumnSpacing()Gets the horizontal spacing.- Returns:
- the horizontal spacing
-
getHomogeneous
public boolean getHomogeneous()Returns whether the box is homogeneous.- Returns:
- %TRUE if the box is homogeneous.
-
getMaxChildrenPerLine
public int getMaxChildrenPerLine()Gets the maximum number of children per line.- Returns:
- the maximum number of children per line
-
getMinChildrenPerLine
public int getMinChildrenPerLine()Gets the minimum number of children per line.- Returns:
- the minimum number of children per line
-
getRowSpacing
public int getRowSpacing()Gets the vertical spacing.- Returns:
- the vertical spacing
-
getSelectedChildren
Creates a list of all selected children.- Returns:
- A `GList` containing the `GtkWidget` for each selected child. Free with g_list_free() when done.
-
getSelectionMode
public int getSelectionMode()Gets the selection mode of @box.- Returns:
- the `GtkSelectionMode`
-
insert
Inserts the @widget into @box at @position.
If a sort function is set, the widget will actually be inserted
at the calculated position.
If @position is -1, or larger than the total number of children
in the @box, then the @widget will be appended to the end.- Parameters:
widget
- the `GtkWidget` to addposition
- the position to insert @child in
-
invalidateFilter
public void invalidateFilter()Updates the filtering for all children.
Call this function when the result of the filter
function on the @box is changed due ot an external
factor. For instance, this would be used if the
filter function just looked for a specific search
term, and the entry with the string has changed. -
invalidateSort
public void invalidateSort()Updates the sorting for all children.
Call this when the result of the sort function on
@box is changed due to an external factor. -
prepend
Adds @child to the start of @self.
If a sort function is set, the widget will
actually be inserted at the calculated position.
See also: [method@Gtk.FlowBox.insert].- Parameters:
child
- the `GtkWidget` to add
-
remove
Removes a child from @box.- Parameters:
widget
- the child widget to remove
-
selectAll
public void selectAll()Select all children of @box, if the selection
mode allows it. -
selectChild
Selects a single child of @box, if the selection
mode allows it.- Parameters:
child
- a child of @box
-
selectedForeach
Calls a function for each selected child.
Note that the selection cannot be modified from within
this function.- Parameters:
func
- the function to call for each selected childdata
- user data to pass to the function
-
setActivateOnSingleClick
public void setActivateOnSingleClick(boolean single) If @single is %TRUE, children will be activated when you click
on them, otherwise you need to double-click.- Parameters:
single
- %TRUE to emit child-activated on a single click
-
setColumnSpacing
public void setColumnSpacing(int spacing) Sets the horizontal space to add between children.- Parameters:
spacing
- the spacing to use
-
setFilterFunc
public void setFilterFunc(FlowBox.OnFlowBoxFilterFunc filter_func, @Nullable Pointer user_data, FlowBox.OnDestroyNotify destroy) By setting a filter function on the @box one can decide dynamically
which of the children to show.
For instance, to implement a search function that only shows the
children matching the search terms.
The @filter_func will be called for each child after the call, and
it will continue to be called each time a child changes (via
[method@Gtk.FlowBoxChild.changed]) or when
[method@Gtk.FlowBox.invalidate_filter] is called.
Note that using a filter function is incompatible with using a model
(see [method@Gtk.FlowBox.bind_model]).- Parameters:
filter_func
- callback that lets you filter which children to showuser_data
- user data passed to @filter_funcdestroy
- destroy notifier for @user_data
-
setHadjustment
Hooks up an adjustment to focus handling in @box.
The adjustment is also used for autoscrolling during
rubberband selection. See [method@Gtk.ScrolledWindow.get_hadjustment]
for a typical way of obtaining the adjustment, and
[method@Gtk.FlowBox.set_vadjustment] for setting the vertical
adjustment.
The adjustments have to be in pixel units and in the same
coordinate system as the allocation for immediate children
of the box.- Parameters:
adjustment
- an adjustment which should be adjusted when the focus is moved among the descendents of @container
-
setHomogeneous
public void setHomogeneous(boolean homogeneous) Sets whether or not all children of @box are given
equal space in the box.- Parameters:
homogeneous
- %TRUE to create equal allotments, %FALSE for variable allotments
-
setMaxChildrenPerLine
public void setMaxChildrenPerLine(int n_children) Sets the maximum number of children to request and
allocate space for in @box’s orientation.
Setting the maximum number of children per line
limits the overall natural size request to be no more
than @n_children children long in the given orientation.- Parameters:
n_children
- the maximum number of children per line
-
setMinChildrenPerLine
public void setMinChildrenPerLine(int n_children) Sets the minimum number of children to line up
in @box’s orientation before flowing.- Parameters:
n_children
- the minimum number of children per line
-
setRowSpacing
public void setRowSpacing(int spacing) Sets the vertical space to add between children.- Parameters:
spacing
- the spacing to use
-
setSelectionMode
public void setSelectionMode(int mode) Sets how selection works in @box.- Parameters:
mode
- the new selection mode
-
setSortFunc
public void setSortFunc(FlowBox.OnFlowBoxSortFunc sort_func, @Nullable Pointer user_data, FlowBox.OnDestroyNotify destroy) By setting a sort function on the @box, one can dynamically
reorder the children of the box, based on the contents of
the children.
The @sort_func will be called for each child after the call,
and will continue to be called each time a child changes (via
[method@Gtk.FlowBoxChild.changed]) and when
[method@Gtk.FlowBox.invalidate_sort] is called.
Note that using a sort function is incompatible with using a model
(see [method@Gtk.FlowBox.bind_model]).- Parameters:
sort_func
- the sort functionuser_data
- user data passed to @sort_funcdestroy
- destroy notifier for @user_data
-
setVadjustment
Hooks up an adjustment to focus handling in @box.
The adjustment is also used for autoscrolling during
rubberband selection. See [method@Gtk.ScrolledWindow.get_vadjustment]
for a typical way of obtaining the adjustment, and
[method@Gtk.FlowBox.set_hadjustment] for setting the horizontal
adjustment.
The adjustments have to be in pixel units and in the same
coordinate system as the allocation for immediate children
of the box.- Parameters:
adjustment
- an adjustment which should be adjusted when the focus is moved among the descendents of @container
-
unselectAll
public void unselectAll()Unselect all children of @box, if the selection
mode allows it. -
unselectChild
Unselects a single child of @box, if the selection
mode allows it.- Parameters:
child
- a child of @box
-
onActivateCursorChild
Connect to signal "activate-cursor-child".
SeeFlowBox.OnActivateCursorChild.onActivateCursorChild()
for signal description.
FieldSIGNAL_ON_ACTIVATE_CURSOR_CHILD
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onChildActivated
Connect to signal "child-activated".
SeeFlowBox.OnChildActivated.onChildActivated(ch.bailu.gtk.gtk.FlowBoxChild)
for signal description.
FieldSIGNAL_ON_CHILD_ACTIVATED
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMoveCursor
Connect to signal "move-cursor".
SeeFlowBox.OnMoveCursor.onMoveCursor(int, int, boolean, boolean)
for signal description.
FieldSIGNAL_ON_MOVE_CURSOR
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onSelectAll
Connect to signal "select-all".
SeeFlowBox.OnSelectAll.onSelectAll()
for signal description.
FieldSIGNAL_ON_SELECT_ALL
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onSelectedChildrenChanged
Connect to signal "selected-children-changed".
SeeFlowBox.OnSelectedChildrenChanged.onSelectedChildrenChanged()
for signal description.
FieldSIGNAL_ON_SELECTED_CHILDREN_CHANGED
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onToggleCursorChild
Connect to signal "toggle-cursor-child".
SeeFlowBox.OnToggleCursorChild.onToggleCursorChild()
for signal description.
FieldSIGNAL_ON_TOGGLE_CURSOR_CHILD
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onUnselectAll
Connect to signal "unselect-all".
SeeFlowBox.OnUnselectAll.onUnselectAll()
for signal description.
FieldSIGNAL_ON_UNSELECT_ALL
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
asAccessible
Implements interfaceAccessible
. Call this to get access to interface functions.- Overrides:
asAccessible
in classWidget
- Returns:
Accessible
-
asBuildable
Implements interfaceBuildable
. Call this to get access to interface functions.- Overrides:
asBuildable
in classWidget
- Returns:
Buildable
-
asConstraintTarget
Implements interfaceConstraintTarget
. Call this to get access to interface functions.- Overrides:
asConstraintTarget
in classWidget
- Returns:
ConstraintTarget
-
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()
-