IconView

open class IconView(pointer: <Error class: unknown class><<Error class: unknown class>>) : Widget, CellLayout, Scrollable

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

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.

Skipped during bindings generation

  • parameter path: path: Out parameter is not supported

  • parameter path: path: Out parameter is not supported

  • parameter path: path: Out parameter is not supported

  • parameter path: path: Out parameter is not supported

  • parameter model: model: Out parameter is not supported

  • parameter start_path: start_path: Out parameter is not supported

  • method cell-area: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor()

Creates a new GtkIconView widget

constructor(area: CellArea)

Creates a new GtkIconView widget using the specified @area to layout cells inside the icons.

constructor(model: TreeModel)

Creates a new GtkIconView widget with the model @model.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The accessible role of the given GtkAccessible implementation.

Link copied to clipboard

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

Link copied to clipboard
open var canFocus: Boolean

Whether the widget or any of its descendents can accept the input focus.

Link copied to clipboard
open var canTarget: Boolean

Whether the widget can receive pointer events.

Link copied to clipboard
open var columns: Int

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.

Link copied to clipboard
open var columnSpacing: Int

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

Link copied to clipboard

A list of css classes applied to this widget.

Link copied to clipboard
open val cssName: String

The name of this widget in the CSS tree.

Link copied to clipboard
open var cursor: <Error class: unknown class>?

The cursor used by @widget.

Link copied to clipboard
open var focusable: Boolean

Whether this widget itself will accept the input focus.

Link copied to clipboard

Whether the widget should grab focus when it is clicked with the mouse.

Link copied to clipboard
open override val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkCellLayoutPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkIconViewPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkScrollablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkWidgetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Horizontal GtkAdjustment of the scrollable widget.

Link copied to clipboard
open var halign: Align

How to distribute horizontal space if widget gets extra space.

Link copied to clipboard

Enables or disables the emission of the ::query-tooltip signal on @widget.

Link copied to clipboard
open var hexpand: Boolean

Whether to expand horizontally.

Link copied to clipboard

Whether to use the hexpand property.

Link copied to clipboard

Determines when horizontal scrolling should start.

Link copied to clipboard

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

Link copied to clipboard
open var itemPadding: Int

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

Link copied to clipboard
open var itemWidth: Int

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.

Link copied to clipboard

The GtkLayoutManager instance to use to compute the preferred size of the widget, and allocate its children.

Link copied to clipboard
open var margin: Int

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

Link copied to clipboard
open var marginBottom: Int

Margin on bottom side of widget.

Link copied to clipboard
open var marginEnd: Int

Margin on end of widget, horizontally.

Link copied to clipboard
open var marginStart: Int

Margin on start of widget, horizontally.

Link copied to clipboard
open var marginTop: Int

Margin on top side of widget.

Link copied to clipboard
open var markupColumn: Int

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.

Link copied to clipboard
open var model: TreeModel?
Link copied to clipboard
open var name: String

The name of the widget.

Link copied to clipboard
open var opacity: Double

The requested opacity of the widget.

Link copied to clipboard
open var overflow: Overflow

How content outside the widget's content area is treated.

Link copied to clipboard
open val parent: Widget?

The parent widget of this widget.

Link copied to clipboard
open var pixbufColumn: Int

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.

Link copied to clipboard

Whether the widget will receive the default action when it is focused.

Link copied to clipboard

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

Link copied to clipboard
open val root: Root?

The GtkRoot widget of the widget tree containing this widget.

Link copied to clipboard
open var rowSpacing: Int

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

Link copied to clipboard
open val scaleFactor: Int

The scale factor of the widget.

Link copied to clipboard

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.

Link copied to clipboard
open var sensitive: Boolean

Whether the widget responds to input.

Link copied to clipboard
open var spacing: Int

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

Link copied to clipboard
open var textColumn: Int

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.

Link copied to clipboard
open var tooltipColumn: Int
Link copied to clipboard

Sets the text of tooltip to be the given string, which is marked up with Pango markup.

Link copied to clipboard
open var tooltipText: String?

Sets the text of tooltip to be the given string.

Link copied to clipboard

Vertical GtkAdjustment of the scrollable widget.

Link copied to clipboard
open var valign: Align

How to distribute vertical space if widget gets extra space.

Link copied to clipboard
open var vexpand: Boolean

Whether to expand vertically.

Link copied to clipboard

Whether to use the vexpand property.

Link copied to clipboard
open var visible: Boolean

Whether the widget is visible.

Link copied to clipboard

Determines when vertical scrolling should start.

Functions

Link copied to clipboard
open fun actionSetEnabled(actionName: String, enabled: Boolean)

Enable or disable an action installed with gtk_widget_class_install_action().

Link copied to clipboard
open fun activate(): Boolean

For widgets that can be “activated” (buttons, menu items, etc.), this function activates them.

Link copied to clipboard
open fun activateAction(name: String, args: <Error class: unknown class>? = null): Boolean

Looks up the action in the action groups associated with

Link copied to clipboard
open fun activateDefault()

Activates the default.activate action from @widget.

Link copied to clipboard
open fun addAttribute(cell: CellRenderer, attribute: String, column: Int)

Adds an attribute mapping to the list in @cell_layout.

Link copied to clipboard
open fun addController(controller: EventController)

Adds @controller to @widget so that it will receive events.

Link copied to clipboard
open fun addCssClass(cssClass: String)

Adds a style class to @widget.

Link copied to clipboard
open fun addMnemonicLabel(label: Widget)

Adds a widget to the list of mnemonic labels for this widget.

Link copied to clipboard
open fun addTickCallback(callback: TickCallback): <Error class: unknown class>

Queues an animation frame update and adds a callback to be called before each frame.

Link copied to clipboard
open fun allocate(width: Int, height: Int, baseline: Int, transform: <Error class: unknown class>? = null)

This function is only used by GtkWidget subclasses, to assign a size, position and (optionally) baseline to their child widgets.

Link copied to clipboard
open fun childFocus(direction: DirectionType): Boolean

Called by widgets as the user moves around the window using keyboard shortcuts.

Link copied to clipboard
open fun clear()

Unsets all the mappings on all renderers on @cell_layout and removes all renderers from @cell_layout.

Link copied to clipboard

Clears all existing attributes previously set with gtk_cell_layout_set_attributes().

Link copied to clipboard
open fun computeBounds(target: Widget, outBounds: <Error class: unknown class>): Boolean

Computes the bounds for @widget in the coordinate space of @target.

Link copied to clipboard
open fun computeExpand(orientation: Orientation): Boolean

Computes whether a container should give this widget extra space when possible.

Link copied to clipboard
open fun computePoint(target: Widget, point: <Error class: unknown class>, outPoint: <Error class: unknown class>): Boolean

Translates the given @point in @widget's coordinates to coordinates relative to @target’s coordinate system.

Link copied to clipboard
open fun computeTransform(target: Widget, outTransform: <Error class: unknown class>): Boolean

Computes a matrix suitable to describe a transformation from

Link copied to clipboard
fun connectActivateCursorItem(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun connectDestroy(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Signals that all holders of a reference to the widget should release the reference that they hold.

Link copied to clipboard
fun connectDirectionChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (previousDirection: TextDirection) -> Unit): <Error class: unknown class>

Emitted when the text direction of a widget changes.

Link copied to clipboard
fun connectHide(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when @widget is hidden.

Link copied to clipboard
fun connectItemActivated(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (path: TreePath) -> Unit): <Error class: unknown class>

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.

Link copied to clipboard
fun connectKeynavFailed(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (direction: DirectionType) -> Boolean): <Error class: unknown class>

Emitted if keyboard navigation fails.

Link copied to clipboard
fun connectMap(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when @widget is going to be mapped.

Link copied to clipboard
fun connectMnemonicActivate(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (groupCycling: Boolean) -> Boolean): <Error class: unknown class>

Emitted when a widget is activated via a mnemonic.

Link copied to clipboard
fun connectMoveCursor(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (step: MovementStep, count: Int, extend: Boolean, modify: Boolean) -> Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun connectMoveFocus(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (direction: DirectionType) -> Unit): <Error class: unknown class>

Emitted when the focus is moved.

Link copied to clipboard
fun connectQueryTooltip(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (x: Int, y: Int, keyboardMode: Boolean, tooltip: Tooltip) -> Boolean): <Error class: unknown class>

Emitted when the widgets tooltip is about to be shown.

Link copied to clipboard
fun connectRealize(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when @widget is associated with a GdkSurface.

Link copied to clipboard
fun connectSelectAll(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun connectSelectCursorItem(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun connectSelectionChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun connectShow(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when @widget is shown.

Link copied to clipboard
fun connectStateFlagsChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (flags: StateFlags) -> Unit): <Error class: unknown class>

Emitted when the widget state changes.

Link copied to clipboard
fun connectToggleCursorItem(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun connectUnmap(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when @widget is going to be unmapped.

Link copied to clipboard
fun connectUnrealize(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the GdkSurface associated with @widget is destroyed.

Link copied to clipboard
fun connectUnselectAll(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
open fun contains(x: Double, y: Double): Boolean

Tests if the point at (@x, @y) is contained in @widget.

Link copied to clipboard
open fun createDragIcon(path: TreePath): <Error class: unknown class>?

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

Link copied to clipboard
open fun createPangoLayout(text: String? = null): <Error class: unknown class>

Creates a new PangoLayout with the appropriate font map, font description, and base direction for drawing text for this widget.

Link copied to clipboard
open fun dragCheckThreshold(startX: Int, startY: Int, currentX: Int, currentY: Int): Boolean

Checks to see if a drag movement has passed the GTK drag threshold.

Link copied to clipboard
open fun enableModelDragDest(formats: <Error class: unknown class>, actions: <Error class: unknown class>)

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

Link copied to clipboard
open fun enableModelDragSource(startButtonMask: <Error class: unknown class>, formats: <Error class: unknown class>, actions: <Error class: unknown class>)

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

Link copied to clipboard
open fun errorBell()

Notifies the user about an input-related error on this widget.

Link copied to clipboard

Retrieves the GtkAccessibleRole for the given GtkAccessible.

Link copied to clipboard

Gets the setting set by gtk_icon_view_set_activate_on_single_click().

Link copied to clipboard

Returns the baseline that has currently been allocated to @widget.

Link copied to clipboard

Returns the height that has currently been allocated to @widget.

Link copied to clipboard

Returns the width that has currently been allocated to @widget.

Link copied to clipboard
open fun getAncestor(widgetType: <Error class: unknown class>): Widget?

Gets the first ancestor of @widget with type @widget_type.

Link copied to clipboard
open fun getArea(): CellArea?

Returns the underlying GtkCellArea which might be @cell_layout if called on a GtkCellArea or might be null if no GtkCellArea is used by @cell_layout.

Link copied to clipboard
open fun getBorder(border: Border): Boolean

Returns the size of a non-scrolling border around the outside of the scrollable.

Link copied to clipboard
open fun getBuildableId(): String?

Gets the ID of the @buildable object.

Link copied to clipboard
open fun getCanFocus(): Boolean

Determines whether the input focus can enter @widget or any of its children.

Link copied to clipboard
open fun getCanTarget(): Boolean

Queries whether @widget can be the target of pointer events.

Link copied to clipboard
open fun getCellRect(path: TreePath, cell: CellRenderer? = null, rect: <Error class: unknown class>): Boolean

Fills the bounding rectangle in widget coordinates for the cell specified by

Link copied to clipboard
open fun getCells(): <Error class: unknown class>

Returns the cell renderers which have been added to @cell_layout.

Link copied to clipboard

Gets the value set with gtk_widget_set_child_visible().

Link copied to clipboard
open fun getClipboard(): <Error class: unknown class>

Gets the clipboard object for @widget.

Link copied to clipboard
open fun getColumns(): Int

Returns the value of the ::columns property.

Link copied to clipboard
open fun getColumnSpacing(): Int

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

Link copied to clipboard

Returns the list of style classes applied to @widget.

Link copied to clipboard
open fun getCssName(): String

Returns the CSS name that is used for @self.

Link copied to clipboard
open fun getCursor(): <Error class: unknown class>?

Queries the cursor set on @widget.

Link copied to clipboard

Gets the reading direction for a particular widget.

Link copied to clipboard
open fun getDisplay(): <Error class: unknown class>

Get the GdkDisplay for the toplevel window associated with this widget.

Link copied to clipboard
open fun getFirstChild(): Widget?

Returns the widgets first child.

Link copied to clipboard
open fun getFocusable(): Boolean

Determines whether @widget can own the input focus.

Link copied to clipboard
open fun getFocusChild(): Widget?

Returns the current focus child of @widget.

Link copied to clipboard

Returns whether the widget should grab focus when it is clicked with the mouse.

Link copied to clipboard
open fun getFontMap(): <Error class: unknown class>?

Gets the font map of @widget.

Link copied to clipboard
open fun getFrameClock(): <Error class: unknown class>?

Obtains the frame clock for a widget.

Link copied to clipboard

Retrieves the GtkAdjustment used for horizontal scrolling.

Link copied to clipboard
open fun getHalign(): Align

Gets the horizontal alignment of @widget.

Link copied to clipboard

Returns the current value of the has-tooltip property.

Link copied to clipboard
open fun getHeight(): Int

Returns the content height of the widget.

Link copied to clipboard
open fun getHexpand(): Boolean

Gets whether the widget would like any available extra horizontal space.

Link copied to clipboard

Gets whether gtk_widget_set_hexpand() has been used to explicitly set the expand flag on this widget.

Link copied to clipboard

Gets the horizontal GtkScrollablePolicy.

Link copied to clipboard
open fun getItemColumn(path: TreePath): Int

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

Link copied to clipboard

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

Link copied to clipboard
open fun getItemPadding(): Int

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

Link copied to clipboard
open fun getItemRow(path: TreePath): Int

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

Link copied to clipboard
open fun getItemWidth(): Int

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

Link copied to clipboard
open fun getLastChild(): Widget?

Returns the widgets last child.

Link copied to clipboard

Retrieves the layout manager used by @widget.

Link copied to clipboard
open fun getMapped(): Boolean

Whether the widget is mapped.

Link copied to clipboard
open fun getMargin(): Int

Returns the value of the ::margin property.

Link copied to clipboard
open fun getMarginBottom(): Int

Gets the bottom margin of @widget.

Link copied to clipboard
open fun getMarginEnd(): Int

Gets the end margin of @widget.

Link copied to clipboard
open fun getMarginStart(): Int

Gets the start margin of @widget.

Link copied to clipboard
open fun getMarginTop(): Int

Gets the top margin of @widget.

Link copied to clipboard
open fun getMarkupColumn(): Int

Returns the column with markup text for @icon_view.

Link copied to clipboard
open fun getModel(): TreeModel?

Returns the model the GtkIconView is based on. Returns null if the model is unset.

Link copied to clipboard
open fun getName(): String

Retrieves the name of a widget.

Link copied to clipboard
open fun getNative(): Native?

Returns the nearest GtkNative ancestor of @widget.

Link copied to clipboard
open fun getNextSibling(): Widget?

Returns the widgets next sibling.

Link copied to clipboard
open fun getOpacity(): Double

#Fetches the requested opacity for this widget.

Link copied to clipboard
open fun getOverflow(): Overflow

Returns the widgets overflow value.

Link copied to clipboard
open fun getParent(): Widget?

Returns the parent widget of @widget.

Link copied to clipboard
open fun getPathAtPos(x: Int, y: Int): TreePath?

Gets the path for the icon at the given position.

Link copied to clipboard
open fun getPixbufColumn(): Int

Returns the column with pixbufs for @icon_view.

Link copied to clipboard
open fun getPreferredSize(minimumSize: Requisition?, naturalSize: Requisition?)

Retrieves the minimum and natural size of a widget, taking into account the widget’s preference for height-for-width management.

Link copied to clipboard
open fun getPrevSibling(): Widget?

Returns the widgets previous sibling.

Link copied to clipboard
open fun getPrimaryClipboard(): <Error class: unknown class>

Gets the primary clipboard of @widget.

Link copied to clipboard
open fun getRealized(): Boolean

Determines whether @widget is realized.

Link copied to clipboard

Determines whether @widget is always treated as the default widget within its toplevel when it has the focus, even if another widget is the default.

Link copied to clipboard

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

Link copied to clipboard

Gets whether the widget prefers a height-for-width layout or a width-for-height layout.

Link copied to clipboard
open fun getRoot(): Root?

Returns the GtkRoot widget of @widget.

Link copied to clipboard
open fun getRowSpacing(): Int

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

Link copied to clipboard
open fun getScaleFactor(): Int

Retrieves the internal scale factor that maps from window coordinates to the actual device pixels.

Link copied to clipboard
open fun getSelectedItems(): <Error class: unknown class>

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

Link copied to clipboard

Gets the selection mode of the @icon_view.

Link copied to clipboard
open fun getSensitive(): Boolean

Returns the widget’s sensitivity.

Link copied to clipboard
open fun getSettings(): Settings

Gets the settings object holding the settings used for this widget.

Link copied to clipboard
open fun getSize(orientation: Orientation): Int

Returns the content width or height of the widget.

Link copied to clipboard
open fun getSpacing(): Int

Returns the value of the ::spacing property.

Link copied to clipboard

Returns the widget state as a flag set.

Link copied to clipboard

Returns the style context associated to @widget.

Link copied to clipboard
open fun getTemplateChild(widgetType: <Error class: unknown class>, name: String): <Error class: unknown class>

Fetch an object build from the template XML for @widget_type in this @widget instance.

Link copied to clipboard
open fun getTextColumn(): Int

Returns the column with text for @icon_view.

Link copied to clipboard
open fun getTooltipColumn(): Int

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

Link copied to clipboard

Gets the contents of the tooltip for @widget.

Link copied to clipboard
open fun getTooltipText(): String?

Gets the contents of the tooltip for @widget.

Link copied to clipboard

Retrieves the GtkAdjustment used for vertical scrolling.

Link copied to clipboard
open fun getValign(): Align

Gets the vertical alignment of @widget.

Link copied to clipboard
open fun getVexpand(): Boolean

Gets whether the widget would like any available extra vertical space.

Link copied to clipboard

Gets whether gtk_widget_set_vexpand() has been used to explicitly set the expand flag on this widget.

Link copied to clipboard
open fun getVisible(): Boolean

Determines whether the widget is visible.

Link copied to clipboard

Gets the vertical GtkScrollablePolicy.

Link copied to clipboard
open fun getWidth(): Int

Returns the content width of the widget.

Link copied to clipboard
open fun grabFocus(): Boolean

Causes @widget to have the keyboard focus for the GtkWindow it's inside.

Link copied to clipboard
open fun hasCssClass(cssClass: String): Boolean

Returns whether @css_class is currently applied to @widget.

Link copied to clipboard
open fun hasDefault(): Boolean

Determines whether @widget is the current default widget within its toplevel.

Link copied to clipboard
open fun hasFocus(): Boolean

Determines if the widget has the global input focus.

Link copied to clipboard

Determines if the widget should show a visible indication that it has the global input focus.

Link copied to clipboard
open fun hide()

Reverses the effects of gtk_widget_show().

Link copied to clipboard

Returns whether the widget is currently being destroyed.

Link copied to clipboard
open fun initTemplate()

Creates and initializes child widgets defined in templates.

Link copied to clipboard
open fun insertActionGroup(name: String, group: <Error class: unknown class>? = null)

Inserts @group into @widget.

Link copied to clipboard
open fun insertAfter(parent: Widget, previousSibling: Widget? = null)

Inserts @widget into the child widget list of @parent.

Link copied to clipboard
open fun insertBefore(parent: Widget, nextSibling: Widget? = null)

Inserts @widget into the child widget list of @parent.

Link copied to clipboard
open fun isAncestor(ancestor: Widget): Boolean

Determines whether @widget is somewhere inside @ancestor, possibly with intermediate containers.

Link copied to clipboard
open fun isDrawable(): Boolean

Determines whether @widget can be drawn to.

Link copied to clipboard
open fun isFocus(): Boolean

Determines if the widget is the focus widget within its toplevel.

Link copied to clipboard
open fun isSensitive(): Boolean

Returns the widget’s effective sensitivity.

Link copied to clipboard
open fun isVisible(): Boolean

Determines whether the widget and all its parents are marked as visible.

Link copied to clipboard
open fun itemActivated(path: TreePath)

Activates the item determined by @path.

Link copied to clipboard
open fun keynavFailed(direction: DirectionType): Boolean

Emits the ::keynav-failed signal on the widget.

Link copied to clipboard
open fun listMnemonicLabels(): <Error class: unknown class>

Returns the widgets for which this widget is the target of a mnemonic.

Link copied to clipboard
open fun map()

Causes a widget to be mapped if it isn’t already.

Link copied to clipboard
open fun mnemonicActivate(groupCycling: Boolean): Boolean

Emits the ::mnemonic-activate signal.

Link copied to clipboard
open fun observeChildren(): <Error class: unknown class>

Returns a GListModel to track the children of @widget.

Link copied to clipboard
open fun observeControllers(): <Error class: unknown class>

Returns a GListModel to track the class@Gtk.EventControllers of @widget.

Link copied to clipboard
open fun packEnd(cell: CellRenderer, expand: Boolean)

Adds the @cell to the end of @cell_layout. If @expand is false, then the

Link copied to clipboard
open fun packStart(cell: CellRenderer, expand: Boolean)

Packs the @cell into the beginning of @cell_layout. If @expand is false, then the @cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which @expand is true.

Link copied to clipboard

Returns true if the icon pointed to by @path is currently selected. If @path does not point to a valid location, false is returned.

Link copied to clipboard
open fun pick(x: Double, y: Double, flags: PickFlags): Widget?

Finds the descendant of @widget closest to the point (@x, @y).

Link copied to clipboard
open fun queueAllocate()

Flags the widget for a rerun of the vfunc@Gtk.Widget.size_allocate function.

Link copied to clipboard
open fun queueDraw()

Schedules this widget to be redrawn in the paint phase of the current or the next frame.

Link copied to clipboard
open fun queueResize()

Flags a widget to have its size renegotiated.

Link copied to clipboard
open fun realize()

Creates the GDK resources associated with a widget.

Link copied to clipboard
open fun removeController(controller: EventController)

Removes @controller from @widget, so that it doesn't process events anymore.

Link copied to clipboard
open fun removeCssClass(cssClass: String)

Removes a style from @widget.

Link copied to clipboard
open fun removeMnemonicLabel(label: Widget)

Removes a widget from the list of mnemonic labels for this widget.

Link copied to clipboard
open fun removeTickCallback(id: <Error class: unknown class>)

Removes a tick callback previously registered with gtk_widget_add_tick_callback().

Link copied to clipboard
open fun reorder(cell: CellRenderer, position: Int)

Re-inserts @cell at @position.

Link copied to clipboard
open fun resetProperty(property: AccessibleProperty)

Resets the accessible @property to its default value.

Link copied to clipboard
open fun resetRelation(relation: AccessibleRelation)

Resets the accessible @relation to its default value.

Link copied to clipboard
open fun resetState(state: AccessibleState)

Resets the accessible @state to its default value.

Link copied to clipboard
open fun scrollToPath(path: TreePath, useAlign: Boolean, rowAlign: Float, colAlign: Float)

Moves the alignments of @icon_view to the position specified by @path.

Link copied to clipboard
open fun selectAll()

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

Link copied to clipboard

Calls a function for each selected icon. Note that the model or selection cannot be modified from within this function.

Link copied to clipboard
open fun selectPath(path: TreePath)

Selects the row at @path.

Link copied to clipboard

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

Link copied to clipboard
open fun setCanFocus(canFocus: Boolean)

Specifies whether the input focus can enter the widget or any of its children.

Link copied to clipboard
open fun setCanTarget(canTarget: Boolean)

Sets whether @widget can be the target of pointer events.

Link copied to clipboard

Sets the GtkCellLayoutDataFunc to use for @cell_layout.

Link copied to clipboard
open fun setChildVisible(childVisible: Boolean)

Sets whether @widget should be mapped along with its parent.

Link copied to clipboard
open fun setColumns(columns: Int)

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.

Link copied to clipboard
open fun setColumnSpacing(columnSpacing: Int)

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

Link copied to clipboard
open fun setCssClasses(classes: List<String>)

Clear all style classes applied to @widget and replace them with @classes.

Link copied to clipboard
open fun setCursor(cursor: <Error class: unknown class>? = null)

Sets the cursor to be shown when pointer devices point towards @widget.

Link copied to clipboard
open fun setCursor_(path: TreePath, cell: CellRenderer? = null, startEditing: Boolean)

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.

Link copied to clipboard
open fun setCursorFromName(name: String? = null)

Sets a named cursor to be shown when pointer devices point towards @widget.

Link copied to clipboard

Sets the reading direction on a particular widget.

Link copied to clipboard
open fun setDragDestItem(path: TreePath? = null, pos: IconViewDropPosition)

Sets the item that is highlighted for feedback.

Link copied to clipboard
open fun setFocusable(focusable: Boolean)

Specifies whether @widget can own the input focus.

Link copied to clipboard
open fun setFocusChild(child: Widget? = null)

Set @child as the current focus child of @widget.

Link copied to clipboard
open fun setFocusOnClick(focusOnClick: Boolean)

Sets whether the widget should grab focus when it is clicked with the mouse.

Link copied to clipboard
open fun setFontMap(fontMap: <Error class: unknown class>? = null)

Sets the font map to use for Pango rendering.

Link copied to clipboard
open fun setHadjustment(hadjustment: Adjustment? = null)

Sets the horizontal adjustment of the GtkScrollable.

Link copied to clipboard
open fun setHalign(align: Align)

Sets the horizontal alignment of @widget.

Link copied to clipboard
open fun setHasTooltip(hasTooltip: Boolean)

Sets the has-tooltip property on @widget to @has_tooltip.

Link copied to clipboard
open fun setHexpand(expand: Boolean)

Sets whether the widget would like any available extra horizontal space.

Link copied to clipboard
open fun setHexpandSet(set: Boolean)

Sets whether the hexpand flag will be used.

Link copied to clipboard

Sets the GtkScrollablePolicy.

Link copied to clipboard
open fun setItemOrientation(orientation: Orientation)

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

Link copied to clipboard
open fun setItemPadding(itemPadding: Int)

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

Link copied to clipboard
open fun setItemWidth(itemWidth: Int)

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.

Link copied to clipboard
open fun setLayoutManager(layoutManager: LayoutManager? = null)

Sets the layout manager delegate instance that provides an implementation for measuring and allocating the children of @widget.

Link copied to clipboard
open fun setMargin(margin: Int)

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

Link copied to clipboard
open fun setMarginBottom(margin: Int)

Sets the bottom margin of @widget.

Link copied to clipboard
open fun setMarginEnd(margin: Int)

Sets the end margin of @widget.

Link copied to clipboard

Set all margins to the same value.

fun Widget.setMargins(horizontal: Int = 0, vertical: Int = 0)

Set start and end margin to horizontal and top and bottom margin to vertical

fun Widget.setMargins(start: Int = 0, top: Int = 0, end: Int = 0, bottom: Int = 0)

Set margins.

Link copied to clipboard
open fun setMarginStart(margin: Int)

Sets the start margin of @widget.

Link copied to clipboard
open fun setMarginTop(margin: Int)

Sets the top margin of @widget.

Link copied to clipboard
open fun setMarkupColumn(column: Int)

Sets the column with markup information for @icon_view to be

Link copied to clipboard
open fun setModel(model: TreeModel? = null)

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.

Link copied to clipboard
open fun setName(name: String)

Sets a widgets name.

Link copied to clipboard
open fun setOpacity(opacity: Double)

Request the @widget to be rendered partially transparent.

Link copied to clipboard
open fun setOverflow(overflow: Overflow)

Sets how @widget treats content that is drawn outside the widget's content area.

Link copied to clipboard
open fun setParent(parent: Widget)

Sets @parent as the parent widget of @widget.

Link copied to clipboard
open fun setPixbufColumn(column: Int)

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

Link copied to clipboard
open fun setReceivesDefault(receivesDefault: Boolean)

Specifies whether @widget will be treated as the default widget within its toplevel when it has the focus, even if another widget is the default.

Link copied to clipboard
open fun setReorderable(reorderable: Boolean)

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.

Link copied to clipboard
open fun setRowSpacing(rowSpacing: Int)

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

Link copied to clipboard

Sets the selection mode of the @icon_view.

Link copied to clipboard
open fun setSensitive(sensitive: Boolean)

Sets the sensitivity of a widget.

Link copied to clipboard
open fun setSizeRequest(width: Int, height: Int)

Sets the minimum size of a widget.

Link copied to clipboard
open fun setSpacing(spacing: Int)

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

Link copied to clipboard
open fun setStateFlags(flags: StateFlags, clear: Boolean)

Turns on flag values in the current widget state.

Link copied to clipboard
open fun setTextColumn(column: Int)

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

Link copied to clipboard
open fun setTooltipCell(tooltip: Tooltip, path: TreePath, cell: CellRenderer? = null)

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

Link copied to clipboard
open fun setTooltipColumn(column: Int)

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.

Link copied to clipboard
open fun setTooltipItem(tooltip: Tooltip, path: TreePath)

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

Link copied to clipboard
open fun setTooltipMarkup(markup: String? = null)

Sets @markup as the contents of the tooltip, which is marked up with Pango markup.

Link copied to clipboard
open fun setTooltipText(text: String? = null)

Sets @text as the contents of the tooltip.

Link copied to clipboard
open fun setVadjustment(vadjustment: Adjustment? = null)

Sets the vertical adjustment of the GtkScrollable.

Link copied to clipboard
open fun setValign(align: Align)

Sets the vertical alignment of @widget.

Link copied to clipboard
open fun setVexpand(expand: Boolean)

Sets whether the widget would like any available extra vertical space.

Link copied to clipboard
open fun setVexpandSet(set: Boolean)

Sets whether the vexpand flag will be used.

Link copied to clipboard
open fun setVisible(visible: Boolean)

Sets the visibility state of @widget.

Link copied to clipboard

Sets the GtkScrollablePolicy.

Link copied to clipboard
open fun shouldLayout(): Boolean

Returns whether @widget should contribute to the measuring and allocation of its parent.

Link copied to clipboard
open fun show()

Flags a widget to be displayed.

Link copied to clipboard

Triggers a tooltip query on the display where the toplevel of @widget is located.

Link copied to clipboard
open fun unmap()

Causes a widget to be unmapped if it’s currently mapped.

Link copied to clipboard
open fun unparent()

Dissociate @widget from its parent.

Link copied to clipboard
open fun unrealize()

Causes a widget to be unrealized (frees all GDK resources associated with the widget).

Link copied to clipboard
open fun unselectAll()

Unselects all the icons.

Link copied to clipboard
open fun unselectPath(path: TreePath)

Unselects the row at @path.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
open fun unsetStateFlags(flags: StateFlags)

Turns off flag values for the current widget state.