Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: IconView

[26:7] extends: object

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

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • IconView (area = null)

    Creates a new GtkIconView widget

    • @p area is the GtkCellArea to use to layout cells.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asWidget ()

    Wraps this handle as Widget.

    • @r A Widget object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asCellLayout ()

    Wraps this handle as CellLayout.

    • @r A CellLayout object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r A ConstraintTarget object.
  • asScrollable ()

    Wraps this handle as Scrollable.

    • @r A Scrollable object.
  • connectSignal (string Name, CallbackObj)

    Connects one generated callback wrapper to a named signal.

    • @p Name is the signal name.
    • @p CallbackObj is the generated callback wrapper to connect.
    • @r The connected handler id.
  • disconnectSignalHandler (int HandlerId)

    Disconnects one retained signal handler id.

    • @p HandlerId is the signal handler id to disconnect.
    • @r None.
  • setOnActivatecursoritem (callback Fn, UserData = null)

    A [keybinding signal][class@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.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (IconView Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnItemactivated (callback Fn, UserData = null)

    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.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (IconView Self, TreePath Path).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnMovecursor (callback Fn, UserData = null)

    The ::move-cursor signal is a [keybinding signal][class@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.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (IconView Self, string Step, int Count, bool Extend, bool Modify).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnSelectall (callback Fn, UserData = null)

    A [keybinding signal][class@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.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (IconView Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnSelectcursoritem (callback Fn, UserData = null)

    A [keybinding signal][class@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.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (IconView Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnSelectionchanged (callback Fn, UserData = null)

    The ::selection-changed signal is emitted when the selection (i.e. the set of selected items) changes.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (IconView Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnTogglecursoritem (callback Fn, UserData = null)

    A [keybinding signal][class@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.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (IconView Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnUnselectall (callback Fn, UserData = null)

    A [keybinding signal][class@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.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (IconView Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setActivateonsingleclick (bool Value)

    The activate-on-single-click property specifies whether the "item-activated" signal will be emitted after a single click.

    • @p Value is the new property value.
    • @r None.
  • setColumnspacing (int Value)

    The column-spacing property specifies the space which is inserted between the columns of the icon view.

    • @p Value is the new property value.
    • @r None.
  • setColumns (int Value)

    The columns property contains the number of the columns in which the items should be displayed. If it is -1, the number of columns will be chosen automatically to fill the available area.

    • @p Value is the new property value.
    • @r None.
  • setItemorientation (string Value)

    The item-orientation property specifies how the cells (i.e. the icon and the text) of the item are positioned relative to each other.

    • @p Value is the new property value.
    • @r None.
  • setItempadding (int Value)

    The item-padding property specifies the padding around each of the icon view's item.

    • @p Value is the new property value.
    • @r None.
  • setItemwidth (int Value)

    The item-width property specifies the width to use for each item. If it is set to -1, the icon view will automatically determine a suitable item size.

    • @p Value is the new property value.
    • @r None.
  • setMargin (int Value)

    The margin property specifies the space which is inserted at the edges of the icon view.

    • @p Value is the new property value.
    • @r None.
  • setMarkupcolumn (int Value)

    The ::markup-column property contains the number of the model column containing markup information to be displayed. The markup column must be of type G_TYPE_STRING. If this property and the :text-column property are both set to column numbers, it overrides the text column. If both are set to -1, no texts are displayed.

    • @p Value is the new property value.
    • @r None.
  • setModel (object Value)

    The model of the icon view.

    • @p Value is the new property value.
    • @r None.
  • setPixbufcolumn (int Value)

    The ::pixbuf-column property contains the number of the model column containing the pixbufs which are displayed. The pixbuf column must be of type GDK_TYPE_PIXBUF. Setting this property to -1 turns off the display of pixbufs.

    • @p Value is the new property value.
    • @r None.
  • setReorderable (bool Value)

    The reorderable property specifies if the items can be reordered by DND.

    • @p Value is the new property value.
    • @r None.
  • setRowspacing (int Value)

    The row-spacing property specifies the space which is inserted between the rows of the icon view.

    • @p Value is the new property value.
    • @r None.
  • setSelectionmode (string Value)

    The ::selection-mode property specifies the selection mode of icon view. If the mode is %GTK_SELECTION_MULTIPLE, rubberband selection is enabled, for the other modes, only keyboard selection is possible.

    • @p Value is the new property value.
    • @r None.
  • setSpacing (int Value)

    The spacing property specifies the space which is inserted between the cells (i.e. the icon and the text) of an item.

    • @p Value is the new property value.
    • @r None.
  • setTextcolumn (int Value)

    The ::text-column property contains the number of the model column containing the texts which are displayed. The text column must be of type G_TYPE_STRING. If this property and the :markup-column property are both set to -1, no texts are displayed.

    • @p Value is the new property value.
    • @r None.
  • setTooltipcolumn (int Value)

    The column of the icon view model which is being used for displaying tooltips on it's rows.

    • @p Value is the new property value.
    • @r None.
  • create_drag_icon (object path)

    Creates a GdkPaintable representation of the item at @path. This image is used for a drag icon.

    • @p path is a GtkTreePath in @icon_view.
  • enable_model_drag_dest (object formats, string actions)

    Turns @icon_view into a drop destination for automatic DND. Calling this method sets GtkIconView:reorderable to %FALSE.

    • @p formats is the formats that the drag will support.
    • @p actions is the bitmask of possible actions for a drag to this widget.
    • @r None.
  • enable_model_drag_source (string start_button_mask, object formats, string actions)

    Turns @icon_view into a drag source for automatic DND. Calling this method sets GtkIconView:reorderable to %FALSE.

    • @p start_button_mask is Mask of allowed buttons to start drag.
    • @p formats is the formats that the drag will support.
    • @p actions is the bitmask of possible actions for a drag from this widget.
    • @r None.
  • get_activate_on_single_click ()

    Gets the setting set by gtk_icon_view_set_activate_on_single_click().

  • get_column_spacing ()

    Returns the value of the ::column-spacing property.

  • get_columns ()

    Returns the value of the ::columns property.

  • get_item_column (object path)

    Gets the column in which the item @path is currently displayed. Column numbers start at 0.

    • @p path is the GtkTreePath of the item.
  • get_item_orientation ()

    Returns the value of the ::item-orientation property which determines whether the labels are drawn beside the icons instead of below.

  • get_item_padding ()

    Returns the value of the ::item-padding property.

  • get_item_row (object path)

    Gets the row in which the item @path is currently displayed. Row numbers start at 0.

    • @p path is the GtkTreePath of the item.
  • get_item_width ()

    Returns the value of the ::item-width property.

  • get_margin ()

    Returns the value of the ::margin property.

  • get_markup_column ()

    Returns the column with markup text for @icon_view.

  • get_model ()

    Returns the model the GtkIconView is based on. Returns %NULL if the model is unset.

  • get_path_at_pos (int x, int y)

    Gets the path for the icon at the given position.

    • @p x is The x position to be identified.
    • @p y is The y position to be identified.
  • get_pixbuf_column ()

    Returns the column with pixbufs for @icon_view.

  • get_reorderable ()

    Retrieves whether the user can reorder the list via drag-and-drop. See gtk_icon_view_set_reorderable().

  • get_row_spacing ()

    Returns the value of the ::row-spacing property.

  • get_selected_items ()

    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: 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);

  • get_selection_mode ()

    Gets the selection mode of the @icon_view.

  • get_spacing ()

    Returns the value of the ::spacing property.

  • get_text_column ()

    Returns the column with text for @icon_view.

  • get_tooltip_column ()

    Returns the column of @icon_view’s model which is being used for displaying tooltips on @icon_view’s rows.

  • item_activated (object path)

    Activates the item determined by @path.

    • @p path is The GtkTreePath to be activated.
    • @r None.
  • path_is_selected (object path)

    Returns %TRUE if the icon pointed to by @path is currently selected. If

    • @path does not point to a valid location, %FALSE is returned.
    • @p path is A GtkTreePath to check selection on..
  • scroll_to_path (object path, bool use_align, double row_align, double col_align)

    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.
    • @p path is The path of the item to move to..
    • @p use_align is whether to use alignment arguments, or %FALSE..
    • @p row_align is The vertical alignment of the item specified by @path..
    • @p col_align is The horizontal alignment of the item specified by @path..
    • @r None.
  • select_all ()

    Selects all the icons. @icon_view must has its selection mode set to %GTK_SELECTION_MULTIPLE.

    • @r None.
  • select_path (object path)

    Selects the row at @path.

    • @p path is The GtkTreePath to be selected..
    • @r None.
  • set_activate_on_single_click (bool single)

    Causes the GtkIconView::item-activated signal to be emitted on a single click instead of a double click.

    • @p single is %TRUE to emit item-activated on a single click.
    • @r None.
  • set_column_spacing (int column_spacing)

    Sets the ::column-spacing property which specifies the space which is inserted between the columns of the icon view.

    • @p column_spacing is the column spacing.
    • @r None.
  • set_columns (int columns)

    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.

    • @p columns is the number of columns.
    • @r None.
  • set_cursor (object path, object cell, bool start_editing)

    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.

    • @p path is A GtkTreePath.
    • @p cell is One of the cell renderers of @icon_view.
    • @p start_editing is %TRUE if the specified cell should start being edited..
    • @r None.
  • set_drag_dest_item (object path, string pos)

    Sets the item that is highlighted for feedback.

    • @p path is The path of the item to highlight.
    • @p pos is Specifies where to drop, relative to the item.
    • @r None.
  • set_item_orientation (string orientation)

    Sets the ::item-orientation property which determines whether the labels are drawn beside the icons instead of below.

    • @p orientation is the relative position of texts and icons.
    • @r None.
  • set_item_padding (int item_padding)

    Sets the GtkIconView:item-padding property which specifies the padding around each of the icon view’s items.

    • @p item_padding is the item padding.
    • @r None.
  • set_item_width (int item_width)

    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.

    • @p item_width is the width for each item.
    • @r None.
  • set_margin (int margin)

    Sets the ::margin property which specifies the space which is inserted at the top, bottom, left and right of the icon view.

    • @p margin is the margin.
    • @r None.
  • set_markup_column (int column)

    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().

    • @p column is A column in the currently used model, or -1 to display no text.
    • @r None.
  • set_model (object model)

    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.

    • @p model is The model..
    • @r None.
  • set_pixbuf_column (int column)

    Sets the column with pixbufs for @icon_view to be @column. The pixbuf column must be of type GDK_TYPE_PIXBUF

    • @p column is A column in the currently used model, or -1 to disable.
    • @r None.
  • set_reorderable (bool reorderable)

    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.

    • @p reorderable is %TRUE, if the list of items can be reordered..
    • @r None.
  • set_row_spacing (int row_spacing)

    Sets the ::row-spacing property which specifies the space which is inserted between the rows of the icon view.

    • @p row_spacing is the row spacing.
    • @r None.
  • set_selection_mode (string mode)

    Sets the selection mode of the @icon_view.

    • @p mode is The selection mode.
    • @r None.
  • set_spacing (int spacing)

    Sets the ::spacing property which specifies the space which is inserted between the cells (i.e. the icon and the text) of an item.

    • @p spacing is the spacing.
    • @r None.
  • set_text_column (int column)

    Sets the column with text for @icon_view to be @column. The text column must be of type G_TYPE_STRING.

    • @p column is A column in the currently used model, or -1 to display no text.
    • @r None.
  • set_tooltip_cell (object tooltip, object path, object cell)

    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.

    • @p tooltip is a GtkTooltip.
    • @p path is a GtkTreePath.
    • @p cell is a GtkCellRenderer.
    • @r None.
  • set_tooltip_column (int column)

    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.

    • @p column is an integer, which is a valid column number for @icon_view’s model.
    • @r None.
  • set_tooltip_item (object tooltip, object path)

    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().
    • @p tooltip is a GtkTooltip.
    • @p path is a GtkTreePath.
    • @r None.
  • unselect_all ()

    Unselects all the icons.

    • @r None.
  • unselect_path (object path)

    Unselects the row at @path.

    • @p path is The GtkTreePath to be unselected..
    • @r None.
  • unset_model_drag_dest ()

    Undoes the effect of gtk_icon_view_enable_model_drag_dest(). Calling this method sets GtkIconView:reorderable to %FALSE.

    • @r None.
  • unset_model_drag_source ()

    Undoes the effect of gtk_icon_view_enable_model_drag_source(). Calling this method sets GtkIconView:reorderable to %FALSE.

    • @r None.
  • selected_items ()

    Returns get_selected_items as an Aussom list of wrapper objects. This companion method materializes the full collection up front; use get_selected_items() when lazy or change-notify access is required.

    • @r An Aussom list of elements.

class: IconViewItemactivatedCallback

[1345:7] extends: object

Generated low-level callback wrapper for GIR callback item-activated.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • IconViewItemactivatedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, path, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: IconViewUnselectallCallback

[1769:7] extends: object

Generated low-level callback wrapper for GIR callback unselect-all.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • IconViewUnselectallCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: IconViewSelectionchangedCallback

[1629:7] extends: object

Generated low-level callback wrapper for GIR callback selection-changed.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • IconViewSelectionchangedCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: IconViewSelectcursoritemCallback

[1559:7] extends: object

Generated low-level callback wrapper for GIR callback select-cursor-item.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • IconViewSelectcursoritemCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: IconViewCtors

[1258:14] static extends: object

Alternate constructors for IconView. Usage: IconViewCtors.<name>(...). The primary constructor lives directly on IconView.

Methods

  • newWithModel (object model)

    Creates a new GtkIconView widget with the model @model.

    • @p model is The model..
    • @r A new IconView.

class: IconViewActivatecursoritemCallback

[1275:7] extends: object

Generated low-level callback wrapper for GIR callback activate-cursor-item.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • IconViewActivatecursoritemCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: IconViewSelectallCallback

[1489:7] extends: object

Generated low-level callback wrapper for GIR callback select-all.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • IconViewSelectallCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: IconViewMovecursorCallback

[1416:7] extends: object

Generated low-level callback wrapper for GIR callback move-cursor.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • IconViewMovecursorCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, step, count, extend, modify, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: IconViewTogglecursoritemCallback

[1699:7] extends: object

Generated low-level callback wrapper for GIR callback toggle-cursor-item.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • IconViewTogglecursoritemCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: IconViewMeta

[1839:14] static extends: object

Generated metadata helpers for IconView class surfaces.

Methods

  • properties ()

    Returns property metadata for IconView.

    • @r A list.
  • signals ()

    Returns signal metadata for IconView.

    • @r A list.