Class IconView

All Implemented Interfaces:
Accessible, Buildable, CellLayout, ConstraintTarget, Scrollable, Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class IconView extends Widget implements Accessible, Buildable, CellLayout, ConstraintTarget, Scrollable
Deprecated.
Use GridView instead

GtkIconView is a widget which displays data in a grid of icons.

An example GtkIconView

GtkIconView provides an alternative view on a GtkTreeModel. It displays the model as a grid of icons with labels. Like TreeView, it allows to select one or multiple items (depending on the selection mode, see setSelectionMode(SelectionMode)). 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.

  • Constructor Details

    • IconView

      public IconView(MemorySegment address)
      Deprecated.
      Create a IconView instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • IconView

      public IconView()
      Deprecated.
      Create a new IconView.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the IconView class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected IconView asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Widget
      Returns:
      the instance as if it were its parent type
    • withArea

      @Deprecated public static IconView withArea(CellArea area)
      Deprecated.
      Use GridView instead
      Creates a new GtkIconView widget using the specified area to layout cells inside the icons.
      Parameters:
      area - the GtkCellArea to use to layout cells
      Returns:
      A newly created GtkIconView widget
    • withModel

      @Deprecated public static IconView withModel(TreeModel model)
      Deprecated.
      Use GridView instead
      Creates a new GtkIconView widget with the model model.
      Parameters:
      model - The model.
      Returns:
      A newly created GtkIconView widget.
    • createDragIcon

      @Deprecated public @Nullable Paintable createDragIcon(TreePath path)
      Deprecated.
      Use GridView instead
      Creates a GdkPaintable representation of the item at path. This image is used for a drag icon.
      Parameters:
      path - a GtkTreePath in this IconView
      Returns:
      a newly-allocated GdkPaintable of the drag icon.
    • enableModelDragDest

      @Deprecated public void enableModelDragDest(ContentFormats formats, Set<DragAction> actions)
      Deprecated.
      Use GridView instead
      Turns this IconView into a drop destination for automatic DND. Calling this method sets GtkIconView:reorderable to false.
      Parameters:
      formats - the formats that the drag will support
      actions - the bitmask of possible actions for a drag to this widget
    • enableModelDragDest

      @Deprecated public void enableModelDragDest(ContentFormats formats, DragAction... actions)
      Deprecated.
      Use GridView instead
      Turns this IconView into a drop destination for automatic DND. Calling this method sets GtkIconView:reorderable to false.
      Parameters:
      formats - the formats that the drag will support
      actions - the bitmask of possible actions for a drag to this widget
    • enableModelDragSource

      @Deprecated public void enableModelDragSource(Set<ModifierType> startButtonMask, ContentFormats formats, Set<DragAction> actions)
      Deprecated.
      Use GridView instead
      Turns this IconView into a drag source for automatic DND. Calling this method sets GtkIconView:reorderable to false.
      Parameters:
      startButtonMask - Mask of allowed buttons to start drag
      formats - the formats that the drag will support
      actions - the bitmask of possible actions for a drag from this widget
    • enableModelDragSource

      @Deprecated public void enableModelDragSource(ModifierType startButtonMask, ContentFormats formats, DragAction... actions)
      Deprecated.
      Use GridView instead
      Turns this IconView into a drag source for automatic DND. Calling this method sets GtkIconView:reorderable to false.
      Parameters:
      startButtonMask - Mask of allowed buttons to start drag
      formats - the formats that the drag will support
      actions - the bitmask of possible actions for a drag from this widget
    • getActivateOnSingleClick

      @Deprecated public boolean getActivateOnSingleClick()
      Deprecated.
      Use GridView instead
      Gets the setting set by gtk_icon_view_set_activate_on_single_click().
      Returns:
      true if item-activated will be emitted on a single click
    • getCellRect

      @Deprecated public boolean getCellRect(TreePath path, @Nullable CellRenderer cell, Rectangle rect)
      Deprecated.
      Use GridView instead

      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 this IconView is realized.

      Parameters:
      path - a GtkTreePath
      cell - a GtkCellRenderer
      rect - rectangle to fill with cell rect
      Returns:
      false if there is no such item, true otherwise
    • getColumnSpacing

      @Deprecated public int getColumnSpacing()
      Deprecated.
      Use GridView instead
      Returns the value of the ::column-spacing property.
      Returns:
      the space between columns
    • getColumns

      @Deprecated public int getColumns()
      Deprecated.
      Use GridView instead
      Returns the value of the ::columns property.
      Returns:
      the number of columns, or -1
    • getCursor

      @Deprecated public boolean getCursor(@Nullable Out<TreePath> path, @Nullable Out<CellRenderer> cell)
      Deprecated.
      Use GridView instead

      Fills in path and cell with the current cursor path and cell. If the cursor isn’t currently set, then *path will be null. If no cell currently has focus, then *cell will be null.

      The returned GtkTreePath must be freed with gtk_tree_path_free().

      Parameters:
      path - Return location for the current cursor path
      cell - Return location the current focus cell
      Returns:
      true if the cursor is set.
    • getDestItemAtPos

      @Deprecated public boolean getDestItemAtPos(int dragX, int dragY, @Nullable Out<TreePath> path, @Nullable Out<IconViewDropPosition> pos)
      Deprecated.
      Use GridView instead
      Determines the destination item for a given position.
      Parameters:
      dragX - the position to determine the destination item for
      dragY - the position to determine the destination item for
      path - Return location for the path of the item
      pos - Return location for the drop position
      Returns:
      whether there is an item at the given position.
    • getDragDestItem

      @Deprecated public void getDragDestItem(@Nullable Out<TreePath> path, @Nullable Out<IconViewDropPosition> pos)
      Deprecated.
      Use GridView instead
      Gets information about the item that is highlighted for feedback.
      Parameters:
      path - Return location for the path of the highlighted item
      pos - Return location for the drop position
    • getItemAtPos

      @Deprecated public boolean getItemAtPos(int x, int y, @Nullable Out<TreePath> path, @Nullable Out<CellRenderer> cell)
      Deprecated.
      Use GridView instead
      Gets the path and cell for the icon at the given position.
      Parameters:
      x - The x position to be identified
      y - The y position to be identified
      path - Return location for the path
      cell - Return location for the renderer responsible for the cell at (x, y)
      Returns:
      true if an item exists at the specified position
    • getItemColumn

      @Deprecated public int getItemColumn(TreePath path)
      Deprecated.
      Use GridView instead
      Gets the column in which the item path is currently displayed. Column numbers start at 0.
      Parameters:
      path - the GtkTreePath of the item
      Returns:
      The column in which the item is displayed
    • getItemOrientation

      @Deprecated public Orientation getItemOrientation()
      Deprecated.
      Use GridView instead
      Returns the value of the ::item-orientation property which determines whether the labels are drawn beside the icons instead of below.
      Returns:
      the relative position of texts and icons
    • getItemPadding

      @Deprecated public int getItemPadding()
      Deprecated.
      Use GridView instead
      Returns the value of the ::item-padding property.
      Returns:
      the padding around items
    • getItemRow

      @Deprecated public int getItemRow(TreePath path)
      Deprecated.
      Use GridView instead
      Gets the row in which the item path is currently displayed. Row numbers start at 0.
      Parameters:
      path - the GtkTreePath of the item
      Returns:
      The row in which the item is displayed
    • getItemWidth

      @Deprecated public int getItemWidth()
      Deprecated.
      Use GridView instead
      Returns the value of the ::item-width property.
      Returns:
      the width of a single item, or -1
    • getMargin

      @Deprecated public int getMargin()
      Deprecated.
      Use GridView instead
      Returns the value of the ::margin property.
      Returns:
      the space at the borders
    • getMarkupColumn

      @Deprecated public int getMarkupColumn()
      Deprecated.
      Use GridView instead
      Returns the column with markup text for iconView.
      Returns:
      the markup column, or -1 if it’s unset.
    • getModel

      @Deprecated public @Nullable TreeModel getModel()
      Deprecated.
      Use GridView instead
      Returns the model the GtkIconView is based on. Returns null if the model is unset.
      Returns:
      The currently used GtkTreeModel
    • getPathAtPos

      @Deprecated public @Nullable TreePath getPathAtPos(int x, int y)
      Deprecated.
      Use GridView instead
      Gets the path for the icon at the given position.
      Parameters:
      x - The x position to be identified
      y - The y position to be identified
      Returns:
      The GtkTreePath corresponding to the icon or null if no icon exists at that position.
    • getPixbufColumn

      @Deprecated public int getPixbufColumn()
      Deprecated.
      Use GridView instead
      Returns the column with pixbufs for iconView.
      Returns:
      the pixbuf column, or -1 if it’s unset.
    • getReorderable

      @Deprecated public boolean getReorderable()
      Deprecated.
      Use GridView instead
      Retrieves whether the user can reorder the list via drag-and-drop. See gtk_icon_view_set_reorderable().
      Returns:
      true if the list can be reordered.
    • getRowSpacing

      @Deprecated public int getRowSpacing()
      Deprecated.
      Use GridView instead
      Returns the value of the ::row-spacing property.
      Returns:
      the space between rows
    • getSelectedItems

      @Deprecated public List<TreePath> getSelectedItems()
      Deprecated.
      Use GridView instead

      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:

      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);
      
      Returns:
      A GList containing a GtkTreePath for each selected row.
    • getSelectionMode

      @Deprecated public SelectionMode getSelectionMode()
      Deprecated.
      Use GridView instead
      Gets the selection mode of the iconView.
      Returns:
      the current selection mode
    • getSpacing

      @Deprecated public int getSpacing()
      Deprecated.
      Use GridView instead
      Returns the value of the ::spacing property.
      Returns:
      the space between cells
    • getTextColumn

      @Deprecated public int getTextColumn()
      Deprecated.
      Use GridView instead
      Returns the column with text for iconView.
      Returns:
      the text column, or -1 if it’s unset.
    • getTooltipColumn

      @Deprecated public int getTooltipColumn()
      Deprecated.
      Use GridView instead
      Returns the column of iconView’s model which is being used for displaying tooltips on iconView’s rows.
      Returns:
      the index of the tooltip column that is currently being used, or -1 if this is disabled.
    • getTooltipContext

      @Deprecated public boolean getTooltipContext(int x, int y, boolean keyboardTip, @Nullable Out<TreeModel> model, @Nullable Out<TreePath> path, @Nullable TreeIter iter)
      Deprecated.
      Use GridView instead

      This function is supposed to be used in a GtkWidget::query-tooltip signal handler for GtkIconView. The x, y and keyboardTip values which are received in the signal handler, should be passed to this function without modification.

      The return value indicates whether there is an icon view item at the given coordinates (true) or not (false) for mouse tooltips. For keyboard tooltips the item returned will be the cursor item. When true, then any of model, path and iter which have been provided will be set to point to that row and the corresponding model.

      Parameters:
      x - the x coordinate (relative to widget coordinates)
      y - the y coordinate (relative to widget coordinates)
      keyboardTip - whether this is a keyboard tooltip or not
      model - a pointer to receive a GtkTreeModel
      path - a pointer to receive a GtkTreePath
      iter - a pointer to receive a GtkTreeIter
      Returns:
      whether or not the given tooltip context points to an item
    • getVisibleRange

      @Deprecated public boolean getVisibleRange(@Nullable Out<TreePath> startPath, @Nullable Out<TreePath> endPath)
      Deprecated.
      Use GridView instead

      Sets startPath and endPath to be the first and last visible path. Note that there may be invisible paths in between.

      Both paths should be freed with gtk_tree_path_free() after use.

      Parameters:
      startPath - Return location for start of region
      endPath - Return location for end of region
      Returns:
      true, if valid paths were placed in startPath and endPath
    • itemActivated

      @Deprecated public void itemActivated(TreePath path)
      Deprecated.
      Use GridView instead
      Activates the item determined by path.
      Parameters:
      path - The GtkTreePath to be activated
    • pathIsSelected

      @Deprecated public boolean pathIsSelected(TreePath path)
      Deprecated.
      Use GridView instead
      Returns true if the icon pointed to by path is currently selected. If path does not point to a valid location, false is returned.
      Parameters:
      path - A GtkTreePath to check selection on.
      Returns:
      true if path is selected.
    • scrollToPath

      @Deprecated public void scrollToPath(TreePath path, boolean useAlign, float rowAlign, float colAlign)
      Deprecated.
      Use GridView instead

      Moves the alignments of this IconView to the position specified by path. rowAlign determines where the row is placed, and colAlign 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 useAlign 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 this IconView is realized, the centered path will be modified to reflect this change.

      Parameters:
      path - The path of the item to move to.
      useAlign - whether to use alignment arguments, or false.
      rowAlign - The vertical alignment of the item specified by path.
      colAlign - The horizontal alignment of the item specified by path.
    • selectAll

      @Deprecated public void selectAll()
      Deprecated.
      Use GridView instead
      Selects all the icons. this IconView must has its selection mode set to SelectionMode.MULTIPLE.
    • selectPath

      @Deprecated public void selectPath(TreePath path)
      Deprecated.
      Use GridView instead
      Selects the row at path.
      Parameters:
      path - The GtkTreePath to be selected.
    • selectedForeach

      @Deprecated public void selectedForeach(@Nullable IconViewForeachFunc func)
      Deprecated.
      Use GridView instead
      Calls a function for each selected icon. Note that the model or selection cannot be modified from within this function.
      Parameters:
      func - The function to call for each selected icon.
    • setActivateOnSingleClick

      @Deprecated public void setActivateOnSingleClick(boolean single)
      Deprecated.
      Use GridView instead
      Causes the GtkIconView::item-activated signal to be emitted on a single click instead of a double click.
      Parameters:
      single - true to emit item-activated on a single click
    • setColumnSpacing

      @Deprecated public void setColumnSpacing(int columnSpacing)
      Deprecated.
      Use GridView instead
      Sets the ::column-spacing property which specifies the space which is inserted between the columns of the icon view.
      Parameters:
      columnSpacing - the column spacing
    • setColumns

      @Deprecated public void setColumns(int columns)
      Deprecated.
      Use GridView instead
      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.
      Parameters:
      columns - the number of columns
    • setCursor

      @Deprecated public void setCursor(TreePath path, @Nullable CellRenderer cell, boolean startEditing)
      Deprecated.
      Use GridView instead

      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 startEditing 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.

      Parameters:
      path - A GtkTreePath
      cell - One of the cell renderers of this IconView
      startEditing - true if the specified cell should start being edited.
    • setDragDestItem

      @Deprecated public void setDragDestItem(@Nullable TreePath path, IconViewDropPosition pos)
      Deprecated.
      Use GridView instead
      Sets the item that is highlighted for feedback.
      Parameters:
      path - The path of the item to highlight
      pos - Specifies where to drop, relative to the item
    • setItemOrientation

      @Deprecated public void setItemOrientation(Orientation orientation)
      Deprecated.
      Use GridView instead
      Sets the ::item-orientation property which determines whether the labels are drawn beside the icons instead of below.
      Parameters:
      orientation - the relative position of texts and icons
    • setItemPadding

      @Deprecated public void setItemPadding(int itemPadding)
      Deprecated.
      Use GridView instead
      Sets the GtkIconView:item-padding property which specifies the padding around each of the icon view’s items.
      Parameters:
      itemPadding - the item padding
    • setItemWidth

      @Deprecated public void setItemWidth(int itemWidth)
      Deprecated.
      Use GridView instead
      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.
      Parameters:
      itemWidth - the width for each item
    • setMargin

      @Deprecated public void setMargin(int margin)
      Deprecated.
      Use GridView instead
      Sets the ::margin property which specifies the space which is inserted at the top, bottom, left and right of the icon view.
      Parameters:
      margin - the margin
    • setMarkupColumn

      @Deprecated public void setMarkupColumn(int column)
      Deprecated.
      Use GridView instead
      Sets the column with markup information for this IconView 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().
      Parameters:
      column - A column in the currently used model, or -1 to display no text
    • setModel

      @Deprecated public void setModel(@Nullable TreeModel model)
      Deprecated.
      Use GridView instead
      Sets the model for a GtkIconView. If the this IconView 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.
      Parameters:
      model - The model.
    • setPixbufColumn

      @Deprecated public void setPixbufColumn(int column)
      Deprecated.
      Use GridView instead
      Sets the column with pixbufs for this IconView to be column. The pixbuf column must be of type GDK_TYPE_PIXBUF
      Parameters:
      column - A column in the currently used model, or -1 to disable
    • setReorderable

      @Deprecated public void setReorderable(boolean reorderable)
      Deprecated.
      Use GridView instead

      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.

      Parameters:
      reorderable - true, if the list of items can be reordered.
    • setRowSpacing

      @Deprecated public void setRowSpacing(int rowSpacing)
      Deprecated.
      Use GridView instead
      Sets the ::row-spacing property which specifies the space which is inserted between the rows of the icon view.
      Parameters:
      rowSpacing - the row spacing
    • setSelectionMode

      @Deprecated public void setSelectionMode(SelectionMode mode)
      Deprecated.
      Use GridView instead
      Sets the selection mode of the iconView.
      Parameters:
      mode - The selection mode
    • setSpacing

      @Deprecated public void setSpacing(int spacing)
      Deprecated.
      Use GridView instead
      Sets the ::spacing property which specifies the space which is inserted between the cells (i.e. the icon and the text) of an item.
      Parameters:
      spacing - the spacing
    • setTextColumn

      @Deprecated public void setTextColumn(int column)
      Deprecated.
      Use GridView instead
      Sets the column with text for this IconView to be column. The text column must be of type G_TYPE_STRING.
      Parameters:
      column - A column in the currently used model, or -1 to display no text
    • setTooltipCell

      @Deprecated public void setTooltipCell(Tooltip tooltip, TreePath path, @Nullable CellRenderer cell)
      Deprecated.
      Use GridView instead

      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.

      Parameters:
      tooltip - a GtkTooltip
      path - a GtkTreePath
      cell - a GtkCellRenderer
    • setTooltipColumn

      @Deprecated public void setTooltipColumn(int column)
      Deprecated.
      Use GridView instead

      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 iconView’s model containing the tooltip texts, or -1 to disable this feature.

      When enabled, GtkWidget:has-tooltip will be set to true and this IconView 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.

      Parameters:
      column - an integer, which is a valid column number for iconView’s model
    • setTooltipItem

      @Deprecated public void setTooltipItem(Tooltip tooltip, TreePath path)
      Deprecated.
      Use GridView instead
      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().
      Parameters:
      tooltip - a GtkTooltip
      path - a GtkTreePath
    • unselectAll

      @Deprecated public void unselectAll()
      Deprecated.
      Use GridView instead
      Unselects all the icons.
    • unselectPath

      @Deprecated public void unselectPath(TreePath path)
      Deprecated.
      Use GridView instead
      Unselects the row at path.
      Parameters:
      path - The GtkTreePath to be unselected.
    • unsetModelDragDest

      @Deprecated public void unsetModelDragDest()
      Deprecated.
      Use GridView instead
      Undoes the effect of gtk_icon_view_enable_model_drag_dest(). Calling this method sets GtkIconView:reorderable to false.
    • unsetModelDragSource

      @Deprecated public void unsetModelDragSource()
      Deprecated.
      Use GridView instead
      Undoes the effect of gtk_icon_view_enable_model_drag_source(). Calling this method sets GtkIconView:reorderable to false.
    • onActivateCursorItem

      Deprecated.

      A Gtk.SignalAction which gets emitted when the user activates the currently focused item.

      Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control activation programmatically.

      The default bindings for this signal are Space, Return and Enter.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitActivateCursorItem

      public boolean emitActivateCursorItem()
      Deprecated.
      Emits the "activate-cursor-item" signal. See onActivateCursorItem(IconView.ActivateCursorItemCallback).
    • onItemActivated

      Deprecated.
      The ::item-activated signal is emitted when the method gtk_icon_view_item_activated() is called, when the user double clicks an item with the "activate-on-single-click" property set to false, or when the user single clicks an item when the "activate-on-single-click" property set to true. It is also emitted when a non-editable item is selected and one of the keys: Space, Return or Enter is pressed.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitItemActivated

      public void emitItemActivated(@Nullable TreePath path)
      Deprecated.
      Emits the "item-activated" signal. See onItemActivated(IconView.ItemActivatedCallback).
    • onMoveCursor

      Deprecated.

      The ::move-cursor signal is a Gtk.SignalAction which gets emitted when the user initiates a cursor movement.

      Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically.

      The default bindings for this signal include

      • Arrow keys which move by individual steps
      • Home/End keys which move to the first/last item
      • PageUp/PageDown which move by "pages" All of these will extend the selection when combined with the Shift modifier.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitMoveCursor

      public boolean emitMoveCursor(MovementStep step, int count, boolean extend, boolean modify)
      Deprecated.
      Emits the "move-cursor" signal. See onMoveCursor(IconView.MoveCursorCallback).
    • onSelectAll

      Deprecated.

      A Gtk.SignalAction which gets emitted when the user selects all items.

      Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically.

      The default binding for this signal is Ctrl-a.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitSelectAll

      public void emitSelectAll()
      Deprecated.
      Emits the "select-all" signal. See onSelectAll(IconView.SelectAllCallback).
    • onSelectCursorItem

      Deprecated.

      A Gtk.SignalAction which gets emitted when the user selects the item that is currently focused.

      Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically.

      There is no default binding for this signal.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitSelectCursorItem

      public void emitSelectCursorItem()
      Deprecated.
      Emits the "select-cursor-item" signal. See onSelectCursorItem(IconView.SelectCursorItemCallback).
    • onSelectionChanged

      Deprecated.
      The ::selection-changed signal is emitted when the selection (i.e. the set of selected items) changes.
      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitSelectionChanged

      public void emitSelectionChanged()
      Deprecated.
      Emits the "selection-changed" signal. See onSelectionChanged(IconView.SelectionChangedCallback).
    • onToggleCursorItem

      Deprecated.

      A Gtk.SignalAction which gets emitted when the user toggles whether the currently focused item is selected or not. The exact effect of this depend on the selection mode.

      Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically.

      There is no default binding for this signal is Ctrl-Space.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitToggleCursorItem

      public void emitToggleCursorItem()
      Deprecated.
      Emits the "toggle-cursor-item" signal. See onToggleCursorItem(IconView.ToggleCursorItemCallback).
    • onUnselectAll

      Deprecated.

      A Gtk.SignalAction which gets emitted when the user unselects all items.

      Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically.

      The default binding for this signal is Ctrl-Shift-a.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitUnselectAll

      public void emitUnselectAll()
      Deprecated.
      Emits the "unselect-all" signal. See onUnselectAll(IconView.UnselectAllCallback).
    • builder

      public static IconView.Builder<? extends IconView.Builder> builder()
      Deprecated.
      A IconView.Builder object constructs a IconView with the specified properties. Use the various set...() methods to set properties, and finish construction with IconView.Builder.build().
      Returns:
      the builder object