Skip to main content

Type Alias: GtkIconViewProps

GtkIconViewProps = WidgetProps & object

Defined in: generated/jsx.ts:5194

Props for the GtkIconView widget.

Type Declaration

NameTypeDescriptionDefined in
activateOnSingleClick?booleanThe activate-on-single-click property specifies whether the "item-activated" signal will be emitted after a single click.generated/jsx.ts:5199
columns?numberThe 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.generated/jsx.ts:5210
columnSpacing?numberThe column-spacing property specifies the space which is inserted between the columns of the icon view.generated/jsx.ts:5204
hadjustment?Gtk.AdjustmentHorizontal GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.generated/jsx.ts:5287
hscrollPolicy?Gtk.ScrollablePolicyDetermines when horizontal scrolling should start.generated/jsx.ts:5289
itemOrientation?Gtk.OrientationThe item-orientation property specifies how the cells (i.e. the icon and the text) of the item are positioned relative to each other.generated/jsx.ts:5215
itemPadding?numberThe item-padding property specifies the padding around each of the icon view's item.generated/jsx.ts:5220
itemWidth?numberThe 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.generated/jsx.ts:5226
margin?numberThe margin property specifies the space which is inserted at the edges of the icon view.generated/jsx.ts:5231
markupColumn?numberThe ::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.generated/jsx.ts:5239
model?Gtk.TreeModel | nullThe model of the icon view.generated/jsx.ts:5241
onActivateCursorItem()?(self) => boolean | nullA [keybinding signal]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.generated/jsx.ts:5309
onItemActivated()?(self, path) => void | nullThe ::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.generated/jsx.ts:5319
onMoveCursor()?(self, step, count, extend, modify) => boolean | nullThe ::move-cursor signal is a [keybinding signal]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.generated/jsx.ts:5336
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:5400
onSelectAll()?(self) => void | nullA [keybinding signal]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.generated/jsx.ts:5353
onSelectCursorItem()?(self) => void | nullA [keybinding signal]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.generated/jsx.ts:5365
onSelectionChanged()?(self) => void | nullThe ::selection-changed signal is emitted when the selection (i.e. the set of selected items) changes.generated/jsx.ts:5370
onToggleCursorItem()?(self) => void | nullA [keybinding signal]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.generated/jsx.ts:5383
onUnselectAll()?(self) => void | nullA [keybinding signal]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.generated/jsx.ts:5394
pixbufColumn?numberThe ::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.generated/jsx.ts:5248
ref?Ref<Gtk.IconView>-generated/jsx.ts:5427
reorderable?booleanThe reorderable property specifies if the items can be reordered by DND.generated/jsx.ts:5253
rowSpacing?numberThe row-spacing property specifies the space which is inserted between the rows of the icon view.generated/jsx.ts:5258
selectionMode?Gtk.SelectionModeThe ::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.generated/jsx.ts:5264
spacing?numberThe spacing property specifies the space which is inserted between the cells (i.e. the icon and the text) of an item.generated/jsx.ts:5269
textColumn?numberThe ::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.generated/jsx.ts:5276
tooltipColumn?numberThe column of the icon view model which is being used for displaying tooltips on it's rows.generated/jsx.ts:5281
vadjustment?Gtk.AdjustmentVertical GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.generated/jsx.ts:5295
vscrollPolicy?Gtk.ScrollablePolicyDetermines when vertical scrolling should start.generated/jsx.ts:5297