Skip to main content

Type Alias: GtkIconViewProps

GtkIconViewProps = WidgetProps & object

Defined in: generated/jsx.ts:4188

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:4193
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:4204
columnSpacing?numberThe column-spacing property specifies the space which is inserted between the columns of the icon view.generated/jsx.ts:4198
hadjustment?Gtk.AdjustmentHorizontal GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.generated/jsx.ts:4281
hscrollPolicy?Gtk.ScrollablePolicyDetermines when horizontal scrolling should start.generated/jsx.ts:4283
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:4209
itemPadding?numberThe item-padding property specifies the padding around each of the icon view's item.generated/jsx.ts:4214
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:4220
margin?numberThe margin property specifies the space which is inserted at the edges of the icon view.generated/jsx.ts:4225
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:4233
model?Gtk.TreeModel | nullThe model of the icon view.generated/jsx.ts:4235
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:4303
onItemActivated?(path, self) => 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:4313
onMoveCursor?(step, count, extend, modify, self) => 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:4330
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:4343
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:4355
onSelectionChanged?(self) => void | nullThe ::selection-changed signal is emitted when the selection (i.e. the set of selected items) changes.generated/jsx.ts:4360
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:4373
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:4384
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:4242
ref?Ref<Gtk.IconView>-generated/jsx.ts:4385
reorderable?booleanThe reorderable property specifies if the items can be reordered by DND.generated/jsx.ts:4247
rowSpacing?numberThe row-spacing property specifies the space which is inserted between the rows of the icon view.generated/jsx.ts:4252
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:4258
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:4263
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:4270
tooltipColumn?numberThe column of the icon view model which is being used for displaying tooltips on it's rows.generated/jsx.ts:4275
vadjustment?Gtk.AdjustmentVertical GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.generated/jsx.ts:4289
vscrollPolicy?Gtk.ScrollablePolicyDetermines when vertical scrolling should start.generated/jsx.ts:4291