Interface: IconViewProps
Defined in: react/src/generated/jsx.ts:3118
Props for the IconView widget.
Extends
Properties
activateOnSingleClick?
optionalactivateOnSingleClick:boolean
Defined in: react/src/generated/jsx.ts:3123
The activate-on-single-click property specifies whether the "item-activated" signal will be emitted after a single click.
canFocus?
optionalcanFocus:boolean
Defined in: react/src/generated/jsx.ts:412
Whether the widget or any of its descendents can accept the input focus.
This property is meant to be set by widget implementations, typically in their instance init function.
Inherited from
canTarget?
optionalcanTarget:boolean
Defined in: react/src/generated/jsx.ts:414
Whether the widget can receive pointer events.
Inherited from
cellArea
cellArea:
CellArea
Defined in: react/src/generated/jsx.ts:3130
The GtkCellArea used to layout cell renderers for this view.
If no area is specified when creating the icon view with gtk_icon_view_new_with_area()
a GtkCellAreaBox will be used.
children?
optionalchildren:ReactNode
Defined in: react/src/generated/jsx.ts:688
Inherited from
columns?
optionalcolumns:number
Defined in: react/src/generated/jsx.ts:3141
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.
columnSpacing?
optionalcolumnSpacing:number
Defined in: react/src/generated/jsx.ts:3135
The column-spacing property specifies the space which is inserted between the columns of the icon view.
cssClasses?
optionalcssClasses:string[]
Defined in: react/src/generated/jsx.ts:416
A list of css classes applied to this widget.
Inherited from
cssName?
optionalcssName:string
Defined in: react/src/generated/jsx.ts:423
The name of this widget in the CSS tree.
This property is meant to be set by widget implementations, typically in their instance init function.
Inherited from
cursor?
optionalcursor:number
Defined in: react/src/generated/jsx.ts:425
The cursor used by @widget.
Inherited from
focusable?
optionalfocusable:boolean
Defined in: react/src/generated/jsx.ts:433
Whether this widget itself will accept the input focus.
Inherited from
focusOnClick?
optionalfocusOnClick:boolean
Defined in: react/src/generated/jsx.ts:431
Whether the widget should grab focus when it is clicked with the mouse.
This property is only relevant for widgets that can take focus.
Inherited from
hadjustment?
optionalhadjustment:Adjustment
Defined in: react/src/generated/jsx.ts:3218
Horizontal GtkAdjustment of the scrollable widget.
This adjustment is shared between the scrollable widget and its parent.
halign?
optionalhalign:Align
Defined in: react/src/generated/jsx.ts:435
How to distribute horizontal space if widget gets extra space.
Inherited from
hasDefault?
optionalhasDefault:boolean
Defined in: react/src/generated/jsx.ts:437
Whether the widget is the default widget.
Inherited from
hasFocus?
optionalhasFocus:boolean
Defined in: react/src/generated/jsx.ts:439
Whether the widget has the input focus.
Inherited from
hasTooltip?
optionalhasTooltip:boolean
Defined in: react/src/generated/jsx.ts:448
Enables or disables the emission of the [signal@Gtk.Widget::query-tooltip] signal on @widget.
A true value indicates that widget can have a tooltip, in this case
the widget will be queried using [signal@Gtk.Widget::query-tooltip] to
determine whether it will provide a tooltip or not.
Inherited from
heightRequest?
optionalheightRequest:number
Defined in: react/src/generated/jsx.ts:454
Overrides for height request of the widget.
If this is -1, the natural request will be used.
Inherited from
hexpand?
optionalhexpand:boolean
Defined in: react/src/generated/jsx.ts:456
Whether to expand horizontally.
Inherited from
hexpandSet?
optionalhexpandSet:boolean
Defined in: react/src/generated/jsx.ts:458
Whether to use the hexpand property.
Inherited from
hscrollPolicy?
optionalhscrollPolicy:ScrollablePolicy
Defined in: react/src/generated/jsx.ts:3220
Determines when horizontal scrolling should start.
itemOrientation?
optionalitemOrientation:Orientation
Defined in: react/src/generated/jsx.ts:3146
The item-orientation property specifies how the cells (i.e. the icon and the text) of the item are positioned relative to each other.
itemPadding?
optionalitemPadding:number
Defined in: react/src/generated/jsx.ts:3151
The item-padding property specifies the padding around each of the icon view's item.
itemWidth?
optionalitemWidth:number
Defined in: react/src/generated/jsx.ts:3157
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.
layoutManager?
optionallayoutManager:LayoutManager
Defined in: react/src/generated/jsx.ts:466
The [class@Gtk.LayoutManager] instance to use to compute the preferred size of the widget, and allocate its children.
This property is meant to be set by widget implementations, typically in their instance init function.
Inherited from
limitEvents?
optionallimitEvents:boolean
Defined in: react/src/generated/jsx.ts:475
Makes this widget act like a modal dialog, with respect to event delivery.
Global event controllers will not handle events with targets inside the widget, unless they are set up to ignore propagation limits. See [method@Gtk.EventController.set_propagation_limit].
Inherited from
margin?
optionalmargin:number
Defined in: react/src/generated/jsx.ts:3162
The margin property specifies the space which is inserted at the edges of the icon view.
marginBottom?
optionalmarginBottom:number
Defined in: react/src/generated/jsx.ts:483
Margin on bottom side of widget.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [method@Gtk.Widget.set_size_request] for example.
Inherited from
marginEnd?
optionalmarginEnd:number
Defined in: react/src/generated/jsx.ts:494
Margin on end of widget, horizontally.
This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [method@Gtk.Widget.set_size_request] for example.
Inherited from
marginStart?
optionalmarginStart:number
Defined in: react/src/generated/jsx.ts:505
Margin on start of widget, horizontally.
This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [method@Gtk.Widget.set_size_request] for example.
Inherited from
marginTop?
optionalmarginTop:number
Defined in: react/src/generated/jsx.ts:513
Margin on top side of widget.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [method@Gtk.Widget.set_size_request] for example.
Inherited from
markupColumn?
optionalmarkupColumn:number
Defined in: react/src/generated/jsx.ts:3170
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.
model?
optionalmodel:TreeModel
Defined in: react/src/generated/jsx.ts:3172
The model of the icon view.
name?
optionalname:string
Defined in: react/src/generated/jsx.ts:515
The name of the widget.
Inherited from
onActivateCursorItem()?
optionalonActivateCursorItem: (self) =>boolean
Defined in: react/src/generated/jsx.ts:3241
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.
Parameters
| Parameter | Type |
|---|---|
self | IconView |
Returns
boolean
onDestroy()?
optionalonDestroy: (self) =>void
Defined in: react/src/generated/jsx.ts:593
Signals that all holders of a reference to the widget should release the reference that they hold.
May result in finalization of the widget if all references are released.
This signal is not suitable for saving widget state.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
Returns
void
Inherited from
onDirectionChanged()?
optionalonDirectionChanged: (self,previousDirection) =>void
Defined in: react/src/generated/jsx.ts:595
Emitted when the text direction of a widget changes.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
previousDirection | TextDirection |
Returns
void
Inherited from
WidgetProps.onDirectionChanged
onHide()?
optionalonHide: (self) =>void
Defined in: react/src/generated/jsx.ts:600
Emitted when widget is hidden.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
Returns
void
Inherited from
onItemActivated()?
optionalonItemActivated: (self,path) =>void
Defined in: react/src/generated/jsx.ts:3251
The ::item-activated signal is emitted when the method gtk_icon_view_item_activated() is called, when the user double clicks an item with the "activate-on-single-click" property set to %FALSE, or when the user single clicks an item when the "activate-on-single-click" property set to %TRUE. It is also emitted when a non-editable item is selected and one of the keys: Space, Return or Enter is pressed.
Parameters
| Parameter | Type |
|---|---|
self | IconView |
path | TreePath |
Returns
void
onKeynavFailed()?
optionalonKeynavFailed: (self,direction) =>boolean
Defined in: react/src/generated/jsx.ts:606
Emitted if keyboard navigation fails.
See [method@Gtk.Widget.keynav_failed] for details.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
direction | DirectionType |
Returns
boolean
Inherited from
onMap()?
optionalonMap: (self) =>void
Defined in: react/src/generated/jsx.ts:618
Emitted when widget is going to be mapped.
A widget is mapped when the widget is visible (which is controlled with [property@Gtk.Widget:visible]) and all its parents up to the toplevel widget are also visible.
The ::map signal can be used to determine whether a widget will be drawn,
for instance it can resume an animation that was stopped during the
emission of [signal@Gtk.Widget::unmap].
Parameters
| Parameter | Type |
|---|---|
self | Widget |
Returns
void
Inherited from
onMnemonicActivate()?
optionalonMnemonicActivate: (self,groupCycling) =>boolean
Defined in: react/src/generated/jsx.ts:624
Emitted when a widget is activated via a mnemonic.
The default handler for this signal activates widget if group_cycling is false, or just makes widget grab focus if group_cycling is true.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
groupCycling | boolean |
Returns
boolean
Inherited from
WidgetProps.onMnemonicActivate
onMoveCursor()?
optionalonMoveCursor: (self,step,count,extend,modify) =>boolean
Defined in: react/src/generated/jsx.ts:3268
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.
Parameters
| Parameter | Type |
|---|---|
self | IconView |
step | MovementStep |
count | number |
extend | boolean |
modify | boolean |
Returns
boolean
onMoveFocus()?
optionalonMoveFocus: (self,direction) =>void
Defined in: react/src/generated/jsx.ts:633
Emitted when the focus is moved.
The ::move-focus signal is a keybinding signal.
The default bindings for this signal are Tab to move forward,
and Shift+Tab to move backward.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
direction | DirectionType |
Returns
void
Inherited from
onQueryTooltip()?
optionalonQueryTooltip: (self,x,y,keyboardMode,tooltip) =>boolean
Defined in: react/src/generated/jsx.ts:648
Emitted when the widget’s tooltip is about to be shown.
This happens when the [property@Gtk.Widget:has-tooltip] property
is true and the hover timeout has expired with the cursor hovering
above @widget; or emitted when widget got focus in keyboard mode.
Using the given coordinates, the signal handler should determine
whether a tooltip should be shown for @widget. If this is the case
true should be returned, false otherwise. Note that if keyboard_mode is true, the values of x and y are undefined and should not be used.
The signal handler is free to manipulate tooltip with the therefore
destined function calls.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
x | number |
y | number |
keyboardMode | boolean |
tooltip | Tooltip |
Returns
boolean
Inherited from
onRealize()?
optionalonRealize: (self) =>void
Defined in: react/src/generated/jsx.ts:661
Emitted when widget is associated with a GdkSurface.
This means that [method@Gtk.Widget.realize] has been called or the widget has been mapped (that is, it is going to be drawn).
Parameters
| Parameter | Type |
|---|---|
self | Widget |
Returns
void
Inherited from
onSelectAll()?
optionalonSelectAll: (self) =>void
Defined in: react/src/generated/jsx.ts:3285
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.
Parameters
| Parameter | Type |
|---|---|
self | IconView |
Returns
void
onSelectCursorItem()?
optionalonSelectCursorItem: (self) =>void
Defined in: react/src/generated/jsx.ts:3297
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.
Parameters
| Parameter | Type |
|---|---|
self | IconView |
Returns
void
onSelectionChanged()?
optionalonSelectionChanged: (self) =>void
Defined in: react/src/generated/jsx.ts:3302
The ::selection-changed signal is emitted when the selection (i.e. the set of selected items) changes.
Parameters
| Parameter | Type |
|---|---|
self | IconView |
Returns
void
onShow()?
optionalonShow: (self) =>void
Defined in: react/src/generated/jsx.ts:663
Emitted when widget is shown.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
Returns
void
Inherited from
onStateFlagsChanged()?
optionalonStateFlagsChanged: (self,flags) =>void
Defined in: react/src/generated/jsx.ts:669
Emitted when the widget state changes.
See [method@Gtk.Widget.get_state_flags].
Parameters
| Parameter | Type |
|---|---|
self | Widget |
flags | StateFlags |
Returns
void
Inherited from
WidgetProps.onStateFlagsChanged
onToggleCursorItem()?
optionalonToggleCursorItem: (self) =>void
Defined in: react/src/generated/jsx.ts:3315
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.
Parameters
| Parameter | Type |
|---|---|
self | IconView |
Returns
void
onUnmap()?
optionalonUnmap: (self) =>void
Defined in: react/src/generated/jsx.ts:679
Emitted when widget is going to be unmapped.
A widget is unmapped when either it or any of its parents up to the toplevel widget have been set as hidden.
As ::unmap indicates that a widget will not be shown any longer,
it can be used to, for example, stop an animation on the widget.
Parameters
| Parameter | Type |
|---|---|
self | Widget |
Returns
void
Inherited from
onUnrealize()?
optionalonUnrealize: (self) =>void
Defined in: react/src/generated/jsx.ts:686
Emitted when the GdkSurface associated with widget is destroyed.
This means that [method@Gtk.Widget.unrealize] has been called or the widget has been unmapped (that is, it is going to be hidden).
Parameters
| Parameter | Type |
|---|---|
self | Widget |
Returns
void
Inherited from
onUnselectAll()?
optionalonUnselectAll: (self) =>void
Defined in: react/src/generated/jsx.ts:3326
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.
Parameters
| Parameter | Type |
|---|---|
self | IconView |
Returns
void
opacity?
optionalopacity:number
Defined in: react/src/generated/jsx.ts:517
The requested opacity of the widget.
Inherited from
overflow?
optionaloverflow:Overflow
Defined in: react/src/generated/jsx.ts:524
How content outside the widget's content area is treated.
This property is meant to be set by widget implementations, typically in their instance init function.
Inherited from
parent?
optionalparent:Widget
Defined in: react/src/generated/jsx.ts:526
The parent widget of this widget.
Inherited from
pixbufColumn?
optionalpixbufColumn:number
Defined in: react/src/generated/jsx.ts:3179
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.
receivesDefault?
optionalreceivesDefault:boolean
Defined in: react/src/generated/jsx.ts:528
Whether the widget will receive the default action when it is focused.
Inherited from
ref?
optionalref:Ref<IconView>
Defined in: react/src/generated/jsx.ts:3328
reorderable?
optionalreorderable:boolean
Defined in: react/src/generated/jsx.ts:3184
The reorderable property specifies if the items can be reordered by DND.
root?
optionalroot:Root
Defined in: react/src/generated/jsx.ts:534
The GtkRoot widget of the widget tree containing this widget.
This will be NULL if the widget is not contained in a root widget.
Inherited from
rowSpacing?
optionalrowSpacing:number
Defined in: react/src/generated/jsx.ts:3189
The row-spacing property specifies the space which is inserted between the rows of the icon view.
scaleFactor?
optionalscaleFactor:number
Defined in: react/src/generated/jsx.ts:536
The scale factor of the widget.
Inherited from
selectionMode?
optionalselectionMode:SelectionMode
Defined in: react/src/generated/jsx.ts:3195
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.
sensitive?
optionalsensitive:boolean
Defined in: react/src/generated/jsx.ts:538
Whether the widget responds to input.
Inherited from
spacing?
optionalspacing:number
Defined in: react/src/generated/jsx.ts:3200
The spacing property specifies the space which is inserted between the cells (i.e. the icon and the text) of an item.
textColumn?
optionaltextColumn:number
Defined in: react/src/generated/jsx.ts:3207
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.
tooltipColumn?
optionaltooltipColumn:number
Defined in: react/src/generated/jsx.ts:3212
The column of the icon view model which is being used for displaying tooltips on it's rows.
tooltipMarkup?
optionaltooltipMarkup:string
Defined in: react/src/generated/jsx.ts:554
Sets the text of tooltip to be the given string, which is marked up with Pango markup.
Also see [method@Gtk.Tooltip.set_markup].
This is a convenience property which will take care of getting the
tooltip shown if the given string is not NULL:
[property@Gtk.Widget:has-tooltip] will automatically be set to true
and there will be taken care of [signal@Gtk.Widget::query-tooltip] in
the default signal handler.
Note that if both [property@Gtk.Widget:tooltip-text] and [property@Gtk.Widget:tooltip-markup] are set, the last one wins.
Inherited from
tooltipText?
optionaltooltipText:string
Defined in: react/src/generated/jsx.ts:569
Sets the text of tooltip to be the given string.
Also see [method@Gtk.Tooltip.set_text].
This is a convenience property which will take care of getting the
tooltip shown if the given string is not NULL:
[property@Gtk.Widget:has-tooltip] will automatically be set to true
and there will be taken care of [signal@Gtk.Widget::query-tooltip] in
the default signal handler.
Note that if both [property@Gtk.Widget:tooltip-text] and [property@Gtk.Widget:tooltip-markup] are set, the last one wins.
Inherited from
vadjustment?
optionalvadjustment:Adjustment
Defined in: react/src/generated/jsx.ts:3226
Vertical GtkAdjustment of the scrollable widget.
This adjustment is shared between the scrollable widget and its parent.
valign?
optionalvalign:Align
Defined in: react/src/generated/jsx.ts:571
How to distribute vertical space if widget gets extra space.
Inherited from
vexpand?
optionalvexpand:boolean
Defined in: react/src/generated/jsx.ts:573
Whether to expand vertically.
Inherited from
vexpandSet?
optionalvexpandSet:boolean
Defined in: react/src/generated/jsx.ts:575
Whether to use the vexpand property.
Inherited from
visible?
optionalvisible:boolean
Defined in: react/src/generated/jsx.ts:577
Whether the widget is visible.
Inherited from
vscrollPolicy?
optionalvscrollPolicy:ScrollablePolicy
Defined in: react/src/generated/jsx.ts:3228
Determines when vertical scrolling should start.
widthRequest?
optionalwidthRequest:number
Defined in: react/src/generated/jsx.ts:583
Overrides for width request of the widget.
If this is -1, the natural request will be used.