Package ch.bailu.gtk.gtk
Klasse IconView
- Alle implementierten Schnittstellen:
PointerInterface
`GtkIconView` is a widget which displays data in a grid of icons.
<picture>
<source srcset="icon-view-dark.png" media="(prefers-color-scheme: dark)">
<img alt="An example GtkIconView" src="icon-view.png">
</picture>
`GtkIconView` provides an alternative view on a `GtkTreeModel`.
It displays the model as a grid of icons with labels. Like
[class@Gtk.TreeView], it allows to select one or multiple items
(depending on the selection mode, see [method@Gtk.IconView.set_selection_mode]).
In addition to selection with the arrow keys, `GtkIconView` supports
rubberband selection, which is controlled by dragging the pointer.
Note that if the tree model is backed by an actual tree store (as
opposed to a flat list where the mapping to icons is obvious),
`GtkIconView` will only display the first level of the tree and
ignore the tree’s branches.
## CSS nodes
```
iconview.view
╰── [rubberband]
```
`GtkIconView` has a single CSS node with name iconview and style class .view.
For rubberband selection, a subnode with name rubberband is used.
<picture>
<source srcset="icon-view-dark.png" media="(prefers-color-scheme: dark)">
<img alt="An example GtkIconView" src="icon-view.png">
</picture>
`GtkIconView` provides an alternative view on a `GtkTreeModel`.
It displays the model as a grid of icons with labels. Like
[class@Gtk.TreeView], it allows to select one or multiple items
(depending on the selection mode, see [method@Gtk.IconView.set_selection_mode]).
In addition to selection with the arrow keys, `GtkIconView` supports
rubberband selection, which is controlled by dragging the pointer.
Note that if the tree model is backed by an actual tree store (as
opposed to a flat list where the mapping to icons is obvious),
`GtkIconView` will only display the first level of the tree and
ignore the tree’s branches.
## CSS nodes
```
iconview.view
╰── [rubberband]
```
`GtkIconView` has a single CSS node with name iconview and style class .view.
For rubberband selection, a subnode with name rubberband is used.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceVon Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gtk.Widget
Widget.OnDestroy, Widget.OnDestroyNotify, 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.OnUnrealizeVon Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringVon Klasse geerbte Felder 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_UNREALIZEVon Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceAccessible.Implements interfaceBuildable.Implements interfaceCellLayout.Implements interfaceConstraintTarget.Implements interfaceScrollable.createDragIcon(TreePath path) Veraltet.voidenableModelDragDest(ContentFormats formats, int actions) Veraltet.voidenableModelDragSource(int start_button_mask, ContentFormats formats, int actions) Veraltet.booleanVeraltet.booleangetCellRect(TreePath path, CellRenderer cell, Rectangle rect) Veraltet.static ClassHandlerintVeraltet.intVeraltet.static intintgetItemColumn(TreePath path) Veraltet.intVeraltet.intVeraltet.intgetItemRow(TreePath path) Veraltet.intVeraltet.intVeraltet.intVeraltet.getModel()Veraltet.static longstatic TypeSystem.TypeSizegetPathAtPos(int x, int y) Veraltet.intVeraltet.booleanVeraltet.intVeraltet.Veraltet.intVeraltet.intVeraltet.intVeraltet.intVeraltet.static longstatic TypeSystem.TypeSizevoiditemActivated(TreePath path) Veraltet.static IconViewnewWithAreaIconView(CellArea area) Veraltet.static IconViewnewWithModelIconView(TreeModel model) Veraltet.Connect to signal "activate-cursor-item".Connect to signal "item-activated".onMoveCursor(IconView.OnMoveCursor signal) Connect to signal "move-cursor".onSelectAll(IconView.OnSelectAll signal) Connect to signal "select-all".Connect to signal "select-cursor-item".Connect to signal "selection-changed".Connect to signal "toggle-cursor-item".onUnselectAll(IconView.OnUnselectAll signal) Connect to signal "unselect-all".booleanpathIsSelected(TreePath path) Veraltet.voidscrollToPath(TreePath path, boolean use_align, float row_align, float col_align) Veraltet.voidVeraltet.voidselectedForeach(IconView.OnIconViewForeachFunc func, Pointer data) Veraltet.voidselectPath(TreePath path) Veraltet.voidsetActivateOnSingleClick(boolean single) Veraltet.voidsetColumns(int columns) Veraltet.voidsetColumnSpacing(int column_spacing) Veraltet.voidsetCursor(TreePath path, CellRenderer cell, boolean start_editing) Veraltet.voidsetDragDestItem(TreePath path, int pos) Veraltet.voidsetItemOrientation(int orientation) Veraltet.voidsetItemPadding(int item_padding) Veraltet.voidsetItemWidth(int item_width) Veraltet.voidsetMargin(int margin) Veraltet.voidsetMarkupColumn(int column) Veraltet.voidVeraltet.voidsetPixbufColumn(int column) Veraltet.voidsetReorderable(boolean reorderable) Veraltet.voidsetRowSpacing(int row_spacing) Veraltet.voidsetSelectionMode(int mode) Veraltet.voidsetSpacing(int spacing) Veraltet.voidsetTextColumn(int column) Veraltet.voidsetTooltipCell(Tooltip tooltip, TreePath path, CellRenderer cell) Veraltet.voidsetTooltipColumn(int column) Veraltet.voidsetTooltipItem(Tooltip tooltip, TreePath path) Veraltet.voidVeraltet.voidunselectPath(TreePath path) Veraltet.voidVeraltet.voidVeraltet.Von Klasse geerbte Methoden 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, getBaseline, getCanFocus, getCanTarget, getChildVisible, getClipboard, getColor, getCssClasses, getCssName, getCursor, getDefaultDirection, getDirection, getDisplay, getFirstChild, getFocusable, getFocusChild, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getLimitEvents, 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, setLimitEvents, 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, unsetStateFlagsVon Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon Klasse geerbte Methoden 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, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_ACTIVATE_CURSOR_ITEM
- Siehe auch:
-
SIGNAL_ON_ITEM_ACTIVATED
- Siehe auch:
-
SIGNAL_ON_MOVE_CURSOR
- Siehe auch:
-
SIGNAL_ON_SELECT_ALL
- Siehe auch:
-
SIGNAL_ON_SELECT_CURSOR_ITEM
- Siehe auch:
-
SIGNAL_ON_SELECTION_CHANGED
- Siehe auch:
-
SIGNAL_ON_TOGGLE_CURSOR_ITEM
- Siehe auch:
-
SIGNAL_ON_UNSELECT_ALL
- Siehe auch:
-
-
Konstruktordetails
-
IconView
-
IconView
Veraltet.Creates a new `GtkIconView` widget
-
-
Methodendetails
-
getClassHandler
-
newWithAreaIconView
Veraltet.Creates a new `GtkIconView` widget using the
specified @area to layout cells inside the icons.- Parameter:
area- the `GtkCellArea` to use to layout cells- Gibt zurück:
- A newly created `GtkIconView` widget
-
newWithModelIconView
Veraltet.Creates a new `GtkIconView` widget with the model @model.- Parameter:
model- The model.- Gibt zurück:
- A newly created `GtkIconView` widget.
-
createDragIcon
Veraltet.Creates a `GdkPaintable` representation of the item at @path.
This image is used for a drag icon.- Parameter:
path- a `GtkTreePath` in @icon_view- Gibt zurück:
- a newly-allocated `GdkPaintable` of the drag icon.
-
enableModelDragDest
Veraltet.Turns @icon_view into a drop destination for automatic DND. Calling this
method sets `GtkIconView`:reorderable to %FALSE.- Parameter:
formats- the formats that the drag will supportactions- the bitmask of possible actions for a drag to this widget
-
enableModelDragSource
@Deprecated public void enableModelDragSource(int start_button_mask, @Nonnull ContentFormats formats, int actions) Veraltet.Turns @icon_view into a drag source for automatic DND. Calling this
method sets `GtkIconView`:reorderable to %FALSE.- Parameter:
start_button_mask- Mask of allowed buttons to start dragformats- the formats that the drag will supportactions- the bitmask of possible actions for a drag from this widget
-
getActivateOnSingleClick
Veraltet.Gets the setting set by gtk_icon_view_set_activate_on_single_click().- Gibt zurück:
- %TRUE if item-activated will be emitted on a single click
-
getCellRect
@Deprecated public boolean getCellRect(@Nonnull TreePath path, @Nullable CellRenderer cell, @Nonnull Rectangle rect) Veraltet.Fills the bounding rectangle in widget coordinates for the cell specified by
@path and @cell. If @cell is %NULL the main cell area is used.
This function is only valid if @icon_view is realized.- Parameter:
path- a `GtkTreePath`cell- a `GtkCellRenderer`rect- rectangle to fill with cell rect- Gibt zurück:
- %FALSE if there is no such item, %TRUE otherwise
-
getColumnSpacing
Veraltet.Returns the value of the ::column-spacing property.- Gibt zurück:
- the space between columns
-
getColumns
Veraltet.Returns the value of the ::columns property.- Gibt zurück:
- the number of columns, or -1
-
getItemColumn
Veraltet.Gets the column in which the item @path is currently
displayed. Column numbers start at 0.- Parameter:
path- the `GtkTreePath` of the item- Gibt zurück:
- The column in which the item is displayed
-
getItemOrientation
Veraltet.Returns the value of the ::item-orientation property which determines
whether the labels are drawn beside the icons instead of below.- Gibt zurück:
- the relative position of texts and icons
-
getItemPadding
Veraltet.Returns the value of the ::item-padding property.- Gibt zurück:
- the padding around items
-
getItemRow
Veraltet.Gets the row in which the item @path is currently
displayed. Row numbers start at 0.- Parameter:
path- the `GtkTreePath` of the item- Gibt zurück:
- The row in which the item is displayed
-
getItemWidth
Veraltet.Returns the value of the ::item-width property.- Gibt zurück:
- the width of a single item, or -1
-
getMargin
Veraltet.Returns the value of the ::margin property.- Gibt zurück:
- the space at the borders
-
getMarkupColumn
Veraltet.Returns the column with markup text for @icon_view.- Gibt zurück:
- the markup column, or -1 if it’s unset.
-
getModel
Veraltet.Returns the model the `GtkIconView` is based on. Returns %NULL if the
model is unset.- Gibt zurück:
- The currently used `GtkTreeModel`
-
getPathAtPos
Veraltet.Gets the path for the icon at the given position.- Parameter:
x- The x position to be identifiedy- The y position to be identified- Gibt zurück:
- The `GtkTreePath` corresponding to the icon or %NULL if no icon exists at that position.
-
getPixbufColumn
Veraltet.Returns the column with pixbufs for @icon_view.- Gibt zurück:
- the pixbuf column, or -1 if it’s unset.
-
getReorderable
Veraltet.Retrieves whether the user can reorder the list via drag-and-drop.
See gtk_icon_view_set_reorderable().- Gibt zurück:
- %TRUE if the list can be reordered.
-
getRowSpacing
Veraltet.Returns the value of the ::row-spacing property.- Gibt zurück:
- the space between rows
-
getSelectedItems
Veraltet.Creates a list of paths of all selected items. Additionally, if you are
planning on modifying the model after calling this function, you may
want to convert the returned list into a list of `GtkTreeRowReferences`.
To do this, you can use gtk_tree_row_reference_new().
To free the return value, use `g_list_free_full`:<!-- language="C" --> GtkWidget *icon_view = gtk_icon_view_new (); // Use icon_view GList *list = gtk_icon_view_get_selected_items (GTK_ICON_VIEW (icon_view)); // use list g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
- Gibt zurück:
- A `GList` containing a `GtkTreePath` for each selected row.
-
getSelectionMode
Veraltet.Gets the selection mode of the @icon_view.- Gibt zurück:
- the current selection mode
-
getSpacing
Veraltet.Returns the value of the ::spacing property.- Gibt zurück:
- the space between cells
-
getTextColumn
Veraltet.Returns the column with text for @icon_view.- Gibt zurück:
- the text column, or -1 if it’s unset.
-
getTooltipColumn
Veraltet.Returns the column of @icon_view’s model which is being used for
displaying tooltips on @icon_view’s rows.- Gibt zurück:
- the index of the tooltip column that is currently being used, or -1 if this is disabled.
-
itemActivated
Veraltet.Activates the item determined by @path.- Parameter:
path- The `GtkTreePath` to be activated
-
pathIsSelected
Veraltet.Returns %TRUE if the icon pointed to by @path is currently
selected. If @path does not point to a valid location, %FALSE is returned.- Parameter:
path- A `GtkTreePath` to check selection on.- Gibt zurück:
- %TRUE if @path is selected.
-
scrollToPath
@Deprecated public void scrollToPath(@Nonnull TreePath path, boolean use_align, float row_align, float col_align) Veraltet.Moves the alignments of @icon_view to the position specified by @path.
@row_align determines where the row is placed, and @col_align determines
where @column is placed. Both are expected to be between 0.0 and 1.0.
0.0 means left/top alignment, 1.0 means right/bottom alignment, 0.5 means
center.
If @use_align is %FALSE, then the alignment arguments are ignored, and the
tree does the minimum amount of work to scroll the item onto the screen.
This means that the item will be scrolled to the edge closest to its current
position. If the item is currently visible on the screen, nothing is done.
This function only works if the model is set, and @path is a valid row on
the model. If the model changes before the @icon_view is realized, the
centered path will be modified to reflect this change.- Parameter:
path- The path of the item to move to.use_align- whether to use alignment arguments, or %FALSE.row_align- The vertical alignment of the item specified by @path.col_align- The horizontal alignment of the item specified by @path.
-
selectAll
Veraltet.Selects all the icons. @icon_view must has its selection mode set
to %GTK_SELECTION_MULTIPLE. -
selectPath
Veraltet.Selects the row at @path.- Parameter:
path- The `GtkTreePath` to be selected.
-
selectedForeach
@Deprecated public void selectedForeach(IconView.OnIconViewForeachFunc func, @Nullable Pointer data) Veraltet.Calls a function for each selected icon. Note that the model or
selection cannot be modified from within this function.- Parameter:
func- The function to call for each selected icon.data- User data to pass to the function.
-
setActivateOnSingleClick
Veraltet.Causes the `GtkIconView`::item-activated signal to be emitted on
a single click instead of a double click.- Parameter:
single- %TRUE to emit item-activated on a single click
-
setColumnSpacing
Veraltet.Sets the ::column-spacing property which specifies the space
which is inserted between the columns of the icon view.- Parameter:
column_spacing- the column spacing
-
setColumns
Veraltet.Sets the ::columns property which determines in how
many columns the icons are arranged. If @columns is
-1, the number of columns will be chosen automatically
to fill the available area.- Parameter:
columns- the number of columns
-
setCursor
@Deprecated public void setCursor(@Nonnull TreePath path, @Nullable CellRenderer cell, boolean start_editing) Veraltet.Sets the current keyboard focus to be at @path, and selects it. This is
useful when you want to focus the user’s attention on a particular item.
If @cell is not %NULL, then focus is given to the cell specified by
it. Additionally, if @start_editing is %TRUE, then editing should be
started in the specified cell.
This function is often followed by `gtk_widget_grab_focus
(icon_view)` in order to give keyboard focus to the widget.
Please note that editing can only happen when the widget is realized.- Parameter:
path- A `GtkTreePath`cell- One of the cell renderers of @icon_viewstart_editing- %TRUE if the specified cell should start being edited.
-
setDragDestItem
Veraltet.Sets the item that is highlighted for feedback.- Parameter:
path- The path of the item to highlightpos- Specifies where to drop, relative to the item
-
setItemOrientation
Veraltet.Sets the ::item-orientation property which determines whether the labels
are drawn beside the icons instead of below.- Parameter:
orientation- the relative position of texts and icons
-
setItemPadding
Veraltet.Sets the `GtkIconView`:item-padding property which specifies the padding
around each of the icon view’s items.- Parameter:
item_padding- the item padding
-
setItemWidth
Veraltet.Sets the ::item-width property which specifies the width
to use for each item. If it is set to -1, the icon view will
automatically determine a suitable item size.- Parameter:
item_width- the width for each item
-
setMargin
Veraltet.Sets the ::margin property which specifies the space
which is inserted at the top, bottom, left and right
of the icon view.- Parameter:
margin- the margin
-
setMarkupColumn
Veraltet.Sets the column with markup information for @icon_view to be
@column. The markup column must be of type `G_TYPE_STRING`.
If the markup column is set to something, it overrides
the text column set by gtk_icon_view_set_text_column().- Parameter:
column- A column in the currently used model, or -1 to display no text
-
setModel
Veraltet.Sets the model for a `GtkIconView`.
If the @icon_view already has a model set, it will remove
it before setting the new model. If @model is %NULL, then
it will unset the old model.- Parameter:
model- The model.
-
setPixbufColumn
Veraltet.Sets the column with pixbufs for @icon_view to be @column. The pixbuf
column must be of type `GDK_TYPE_PIXBUF`- Parameter:
column- A column in the currently used model, or -1 to disable
-
setReorderable
Veraltet.This function is a convenience function to allow you to reorder models that
support the `GtkTreeDragSourceIface` and the `GtkTreeDragDestIface`. Both
`GtkTreeStore` and `GtkListStore` support these. If @reorderable is %TRUE, then
the user can reorder the model by dragging and dropping rows. The
developer can listen to these changes by connecting to the model's
row_inserted and row_deleted signals. The reordering is implemented by setting up
the icon view as a drag source and destination. Therefore, drag and
drop can not be used in a reorderable view for any other purpose.
This function does not give you any degree of control over the order -- any
reordering is allowed. If more control is needed, you should probably
handle drag and drop manually.- Parameter:
reorderable- %TRUE, if the list of items can be reordered.
-
setRowSpacing
Veraltet.Sets the ::row-spacing property which specifies the space
which is inserted between the rows of the icon view.- Parameter:
row_spacing- the row spacing
-
setSelectionMode
Veraltet.Sets the selection mode of the @icon_view.- Parameter:
mode- The selection mode
-
setSpacing
Veraltet.Sets the ::spacing property which specifies the space
which is inserted between the cells (i.e. the icon and
the text) of an item.- Parameter:
spacing- the spacing
-
setTextColumn
Veraltet.Sets the column with text for @icon_view to be @column. The text
column must be of type `G_TYPE_STRING`.- Parameter:
column- A column in the currently used model, or -1 to display no text
-
setTooltipCell
@Deprecated public void setTooltipCell(@Nonnull Tooltip tooltip, @Nonnull TreePath path, @Nullable CellRenderer cell) Veraltet.Sets the tip area of @tooltip to the area which @cell occupies in
the item pointed to by @path. See also gtk_tooltip_set_tip_area().
See also gtk_icon_view_set_tooltip_column() for a simpler alternative.- Parameter:
tooltip- a `GtkTooltip`path- a `GtkTreePath`cell- a `GtkCellRenderer`
-
setTooltipColumn
Veraltet.If you only plan to have simple (text-only) tooltips on full items, you
can use this function to have `GtkIconView` handle these automatically
for you. @column should be set to the column in @icon_view’s model
containing the tooltip texts, or -1 to disable this feature.
When enabled, `GtkWidget:has-tooltip` will be set to %TRUE and
@icon_view will connect a `GtkWidget::query-tooltip` signal handler.
Note that the signal handler sets the text with gtk_tooltip_set_markup(),
so &, <, etc have to be escaped in the text.- Parameter:
column- an integer, which is a valid column number for @icon_view’s model
-
setTooltipItem
Veraltet.Sets the tip area of @tooltip to be the area covered by the item at @path.
See also gtk_icon_view_set_tooltip_column() for a simpler alternative.
See also gtk_tooltip_set_tip_area().- Parameter:
tooltip- a `GtkTooltip`path- a `GtkTreePath`
-
unselectAll
Veraltet.Unselects all the icons. -
unselectPath
Veraltet.Unselects the row at @path.- Parameter:
path- The `GtkTreePath` to be unselected.
-
unsetModelDragDest
Veraltet.Undoes the effect of gtk_icon_view_enable_model_drag_dest(). Calling this
method sets `GtkIconView`:reorderable to %FALSE. -
unsetModelDragSource
Veraltet.Undoes the effect of gtk_icon_view_enable_model_drag_source(). Calling this
method sets `GtkIconView`:reorderable to %FALSE. -
onActivateCursorItem
Connect to signal "activate-cursor-item".
SeeIconView.OnActivateCursorItem.onActivateCursorItem()for signal description.
FieldSIGNAL_ON_ACTIVATE_CURSOR_ITEMcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onItemActivated
Connect to signal "item-activated".
SeeIconView.OnItemActivated.onItemActivated(ch.bailu.gtk.gtk.TreePath)for signal description.
FieldSIGNAL_ON_ITEM_ACTIVATEDcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onMoveCursor
Connect to signal "move-cursor".
SeeIconView.OnMoveCursor.onMoveCursor(int, int, boolean, boolean)for signal description.
FieldSIGNAL_ON_MOVE_CURSORcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onSelectAll
Connect to signal "select-all".
SeeIconView.OnSelectAll.onSelectAll()for signal description.
FieldSIGNAL_ON_SELECT_ALLcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onSelectCursorItem
Connect to signal "select-cursor-item".
SeeIconView.OnSelectCursorItem.onSelectCursorItem()for signal description.
FieldSIGNAL_ON_SELECT_CURSOR_ITEMcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onSelectionChanged
Connect to signal "selection-changed".
SeeIconView.OnSelectionChanged.onSelectionChanged()for signal description.
FieldSIGNAL_ON_SELECTION_CHANGEDcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onToggleCursorItem
Connect to signal "toggle-cursor-item".
SeeIconView.OnToggleCursorItem.onToggleCursorItem()for signal description.
FieldSIGNAL_ON_TOGGLE_CURSOR_ITEMcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onUnselectAll
Connect to signal "unselect-all".
SeeIconView.OnUnselectAll.onUnselectAll()for signal description.
FieldSIGNAL_ON_UNSELECT_ALLcontains original signal name and can be used as resource reference.- Parameter:
signal- callback function (lambda).- Gibt zurück:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
asAccessible
Implements interfaceAccessible. Call this to get access to interface functions.- Setzt außer Kraft:
asAccessiblein KlasseWidget- Gibt zurück:
Accessible
-
asBuildable
Implements interfaceBuildable. Call this to get access to interface functions.- Setzt außer Kraft:
asBuildablein KlasseWidget- Gibt zurück:
Buildable
-
asCellLayout
Implements interfaceCellLayout. Call this to get access to interface functions.- Gibt zurück:
CellLayout
-
asConstraintTarget
Implements interfaceConstraintTarget. Call this to get access to interface functions.- Setzt außer Kraft:
asConstraintTargetin KlasseWidget- Gibt zurück:
ConstraintTarget
-
asScrollable
Implements interfaceScrollable. Call this to get access to interface functions.- Gibt zurück:
Scrollable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-