Gtk.Icon_View

Entities

Simple Types

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

Gtk.Icon_View.Gtk_Icon_View provides an alternative view on a Gtk.Tree_Model.Gtk_Tree_Model. It displays the model as a grid of icons with labels. Like Gtk.Tree_View.Gtk_Tree_View, it allows to select one or multiple items (depending on the selection mode, see Gtk.Icon_View.Set_Selection_Mode). In addition to selection with the arrow keys, Gtk.Icon_View.Gtk_Icon_View 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), Gtk.Icon_View.Gtk_Icon_View 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.

"+"

function "+"
  (Widget : access Gtk_Icon_View_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Icon_View_Record'Class)
return Gtk.Cell_Layout.Gtk_Cell_Layout
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Icon_View_Record'Class)
return Gtk.Scrollable.Gtk_Scrollable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Icon_View
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Cell_Layout.Gtk_Cell_Layout)
return Gtk_Icon_View
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Scrollable.Gtk_Scrollable)
return Gtk_Icon_View
Parameters
Interf
Return Value

Activate_On_Single_Click_Property

Activate_On_Single_Click_Property : constant Glib.Properties.Property_Boolean;

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

Add_Attribute

procedure Add_Attribute
   (Cell_Layout : not null access Gtk_Icon_View_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Attribute   : UTF8_String;
    Column      : Glib.Gint)
Parameters
Cell_Layout
Cell
Attribute
Column

Cb_GObject_Boolean

type Cb_GObject_Boolean is not null access function
  (Self : access Glib.Object.GObject_Record'Class)
return Boolean;
Parameters
Self
Return Value

Cb_GObject_Gtk_Movement_Step_Gint_Boolean

type Cb_GObject_Gtk_Movement_Step_Gint_Boolean is not null access function
  (Self  : access Glib.Object.GObject_Record'Class;
   Step  : Gtk.Enums.Gtk_Movement_Step;
   Count : Glib.Gint) return Boolean;
Parameters
Self
Step
Count
Return Value

Cb_GObject_Gtk_Tree_Path_Void

type Cb_GObject_Gtk_Tree_Path_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class;
   Path : Gtk.Tree_Model.Gtk_Tree_Path);
Parameters
Self
Path

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class);
Parameters
Self

Cb_Gtk_Icon_View_Boolean

type Cb_Gtk_Icon_View_Boolean is not null access function
  (Self : access Gtk_Icon_View_Record'Class) return Boolean;
Parameters
Self
Return Value

Cb_Gtk_Icon_View_Gtk_Movement_Step_Gint_Boolean

type Cb_Gtk_Icon_View_Gtk_Movement_Step_Gint_Boolean is not null access function
  (Self  : access Gtk_Icon_View_Record'Class;
   Step  : Gtk.Enums.Gtk_Movement_Step;
   Count : Glib.Gint) return Boolean;
Parameters
Self
Step
Count
Return Value

Cb_Gtk_Icon_View_Gtk_Tree_Path_Void

type Cb_Gtk_Icon_View_Gtk_Tree_Path_Void is not null access procedure
  (Self : access Gtk_Icon_View_Record'Class;
   Path : Gtk.Tree_Model.Gtk_Tree_Path);
Parameters
Self
Path

Cb_Gtk_Icon_View_Void

type Cb_Gtk_Icon_View_Void is not null access procedure (Self : access Gtk_Icon_View_Record'Class);
Parameters
Self

Cell_Area_Property

Cell_Area_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Cell_Area.Gtk_Cell_Area The Gtk.Cell_Area.Gtk_Cell_Area used to layout cell renderers for this view.

If no area is specified when creating the icon view with Gtk.Icon_View.Gtk_New_With_Area a Gtk.Cell_Area_Box.Gtk_Cell_Area_Box will be used.

Clear

procedure Clear (Cell_Layout : not null access Gtk_Icon_View_Record)
Parameters
Cell_Layout

Clear_Attributes

procedure Clear_Attributes
   (Cell_Layout : not null access Gtk_Icon_View_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class)
Parameters
Cell_Layout
Cell

Column_Spacing_Property

Column_Spacing_Property : constant Glib.Properties.Property_Int;

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

Columns_Property

Columns_Property : constant Glib.Properties.Property_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.

Convert_Widget_To_Bin_Window_Coords

procedure Convert_Widget_To_Bin_Window_Coords
   (Icon_View : not null access Gtk_Icon_View_Record;
    Wx        : Glib.Gint;
    Wy        : Glib.Gint;
    Bx        : out Glib.Gint;
    By        : out Glib.Gint)

Converts widget coordinates to coordinates for the bin_window, as expected by e.g. Gtk.Icon_View.Get_Path_At_Pos. Since: gtk+ 2.12

Parameters
Icon_View
Wx

X coordinate relative to the widget

Wy

Y coordinate relative to the widget

Bx

return location for bin_window X coordinate

By

return location for bin_window Y coordinate

Create_Drag_Icon

function Create_Drag_Icon
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path) return Cairo.Cairo_Surface

Creates a cairo_surface_t representation of the item at Path. This image is used for a drag icon. Since: gtk+ 2.8

Parameters
Icon_View
Path

a Gtk.Tree_Model.Gtk_Tree_Path in Icon_View

Return Value

a newly-allocated surface of the drag icon.

Enable_Model_Drag_Dest

procedure Enable_Model_Drag_Dest
  (Icon_View : access Gtk_Icon_View_Record;
   Targets   : Gtk.Target_List.Target_Entry_Array;
   Actions   : Gdk.Dnd.Drag_Action)

Turns Icon_view into a drop destination for automatic DND. Targets is the list of targets that the drag will support.

Parameters
Icon_View
Targets
Actions

Enable_Model_Drag_Source

procedure Enable_Model_Drag_Source
  (Icon_View         : access Gtk_Icon_View_Record;
   Start_Button_Mask : Gdk.Types.Gdk_Modifier_Type;
   Targets           : Gtk.Target_List.Target_Entry_Array;
   Actions           : Gdk.Dnd.Drag_Action)

Turns Icon_view into a drag source for automatic DND. Start_Button_Mask is the allowed buttons to start drag.

Parameters
Icon_View
Start_Button_Mask
Targets
Actions

Get_Activate_On_Single_Click

function Get_Activate_On_Single_Click
   (Icon_View : not null access Gtk_Icon_View_Record) return Boolean

Gets the setting set by Gtk.Icon_View.Set_Activate_On_Single_Click. Since: gtk+ 3.8

Parameters
Icon_View
Return Value

True if item-activated will be emitted on a single click

Get_Border

function Get_Border
   (Self   : not null access Gtk_Icon_View_Record;
    Border : access Gtk.Style.Gtk_Border) return Boolean
Parameters
Self
Border
Return Value

Get_Cell_Rect

function Get_Cell_Rect
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path;
    Cell      : access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Rect      : access Gdk.Rectangle.Gdk_Rectangle) return Boolean

Fills the bounding rectangle in widget coordinates for the cell specified by Path and Cell. If Cell is null the main cell area is used. This function is only valid if Icon_View is realized. Since: gtk+ 3.6

Parameters
Icon_View
Path

a Gtk.Tree_Model.Gtk_Tree_Path

Cell

a Gtk.Cell_Renderer.Gtk_Cell_Renderer or null

Rect

rectangle to fill with cell rect

Return Value

False if there is no such item, True otherwise

Get_Cells

function Get_Cells
   (Cell_Layout : not null access Gtk_Icon_View_Record)
    return Gtk.Cell_Renderer.Cell_Renderer_List.Glist
Parameters
Cell_Layout
Return Value

Get_Column_Spacing

function Get_Column_Spacing
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the value of the ::column-spacing property. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the space between columns

Get_Columns

function Get_Columns
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the value of the ::columns property. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the number of columns, or -1

Get_Cursor

procedure Get_Cursor
   (Icon_View     : not null access Gtk_Icon_View_Record;
    Path          : out Gtk.Tree_Model.Gtk_Tree_Path;
    Cell          : out Gtk.Cell_Renderer.Gtk_Cell_Renderer;
    Cursor_Is_Set : out Boolean)

Fills in Path and Cell with the current cursor path and cell. If the cursor isn't currently set, then *Path will be null. If no cell currently has focus, then *Cell will be null. The returned Gtk.Tree_Model.Gtk_Tree_Path must be freed with Gtk.Tree_Model.Path_Free. Since: gtk+ 2.8

Parameters
Icon_View
Path

Return location for the current cursor path, or null

Cell

Return location the current focus cell, or null @return True if the cursor is set.

Cursor_Is_Set

Get_Dest_Item_At_Pos

procedure Get_Dest_Item_At_Pos
   (Icon_View : not null access Gtk_Icon_View_Record;
    Drag_X    : Glib.Gint;
    Drag_Y    : Glib.Gint;
    Path      : out Gtk.Tree_Model.Gtk_Tree_Path;
    Pos       : out Gtk_Icon_View_Drop_Position;
    Has_Item  : out Boolean)

Determines the destination item for a given position. Since: gtk+ 2.8

Parameters
Icon_View
Drag_X

the position to determine the destination item for

Drag_Y

the position to determine the destination item for

Path

Return location for the path of the item, or null.

Pos

Return location for the drop position, or null @return whether there is an item at the given position.

Has_Item

Get_Drag_Dest_Item

procedure Get_Drag_Dest_Item
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : out Gtk.Tree_Model.Gtk_Tree_Path;
    Pos       : out Gtk_Icon_View_Drop_Position)

Gets information about the item that is highlighted for feedback. Since: gtk+ 2.8

Parameters
Icon_View
Path

Return location for the path of the highlighted item, or null.

Pos

Return location for the drop position, or null

Get_Hadjustment

function Get_Hadjustment
   (Self : not null access Gtk_Icon_View_Record)
    return Gtk.Adjustment.Gtk_Adjustment
Parameters
Self
Return Value

Get_Hscroll_Policy

function Get_Hscroll_Policy
   (Self : not null access Gtk_Icon_View_Record)
    return Gtk.Enums.Gtk_Scrollable_Policy
Parameters
Self
Return Value

Get_Item_At_Pos

procedure Get_Item_At_Pos
   (Icon_View : not null access Gtk_Icon_View_Record;
    X         : Glib.Gint;
    Y         : Glib.Gint;
    Path      : out Gtk.Tree_Model.Gtk_Tree_Path;
    Cell      : out Gtk.Cell_Renderer.Gtk_Cell_Renderer;
    Has_Item  : out Boolean)

Finds the path at the point (X, Y), relative to bin_window coordinates. In contrast to Gtk.Icon_View.Get_Path_At_Pos, this function also obtains the cell at the specified position. The returned path should be freed with Gtk.Tree_Model.Path_Free. See Gtk.Icon_View.Convert_Widget_To_Bin_Window_Coords for converting widget coordinates to bin_window coordinates. Since: gtk+ 2.8

Parameters
Icon_View
X

The x position to be identified

Y

The y position to be identified

Path

Return location for the path, or null

Cell

Return location for the renderer responsible for the cell at (X, Y), or null @return True if an item exists at the specified position

Has_Item

Get_Item_Column

function Get_Item_Column
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path) return Glib.Gint

Gets the column in which the item Path is currently displayed. Column numbers start at 0. Since: gtk+ 2.22

Parameters
Icon_View
Path

the Gtk.Tree_Model.Gtk_Tree_Path of the item

Return Value

The column in which the item is displayed

Get_Item_Orientation

function Get_Item_Orientation
   (Icon_View : not null access Gtk_Icon_View_Record)
    return Gtk.Enums.Gtk_Orientation

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

Parameters
Icon_View
Return Value

the relative position of texts and icons

Get_Item_Padding

function Get_Item_Padding
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the value of the ::item-padding property. Since: gtk+ 2.18

Parameters
Icon_View
Return Value

the padding around items

Get_Item_Row

function Get_Item_Row
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path) return Glib.Gint

Gets the row in which the item Path is currently displayed. Row numbers start at 0. Since: gtk+ 2.22

Parameters
Icon_View
Path

the Gtk.Tree_Model.Gtk_Tree_Path of the item

Return Value

The row in which the item is displayed

Get_Item_Width

function Get_Item_Width
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the value of the ::item-width property. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the width of a single item, or -1

Get_Margin

function Get_Margin
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the value of the ::margin property. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the space at the borders

Get_Markup_Column

function Get_Markup_Column
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the column with markup text for Icon_View. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the markup column, or -1 if it's unset.

Get_Model

function Get_Model
   (Icon_View : not null access Gtk_Icon_View_Record)
    return Gtk.Tree_Model.Gtk_Tree_Model

Returns the model the Gtk.Icon_View.Gtk_Icon_View is based on. Returns null if the model is unset. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

A Gtk.Tree_Model.Gtk_Tree_Model, or null if none is currently being used.

Get_Path_At_Pos

function Get_Path_At_Pos
   (Icon_View : not null access Gtk_Icon_View_Record;
    X         : Glib.Gint;
    Y         : Glib.Gint) return Gtk.Tree_Model.Gtk_Tree_Path

Finds the path at the point (X, Y), relative to bin_window coordinates. See Gtk.Icon_View.Get_Item_At_Pos, if you are also interested in the cell at the specified position. See Gtk.Icon_View.Convert_Widget_To_Bin_Window_Coords for converting widget coordinates to bin_window coordinates. Since: gtk+ 2.6

Parameters
Icon_View
X

The x position to be identified

Y

The y position to be identified

Return Value

The Gtk.Tree_Model.Gtk_Tree_Path corresponding to the icon or null if no icon exists at that position.

Get_Pixbuf_Column

function Get_Pixbuf_Column
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the column with pixbufs for Icon_View. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the pixbuf column, or -1 if it's unset.

Get_Reorderable

function Get_Reorderable
   (Icon_View : not null access Gtk_Icon_View_Record) return Boolean

Retrieves whether the user can reorder the list via drag-and-drop. See Gtk.Icon_View.Set_Reorderable. Since: gtk+ 2.8

Parameters
Icon_View
Return Value

True if the list can be reordered.

Get_Row_Spacing

function Get_Row_Spacing
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the value of the ::row-spacing property. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the space between rows

Get_Selected_Items

function Get_Selected_Items
   (Icon_View : not null access Gtk_Icon_View_Record)
    return Gtk.Tree_Model.Gtk_Tree_Path_List.Glist

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 Gtk_Tree_Row_References. To do this, you can use gtk_tree_row_reference_new. To free the return value, use:

g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);

Since: gtk+ 2.6

Parameters
Icon_View
Return Value

Get_Selection_Mode

function Get_Selection_Mode
   (Icon_View : not null access Gtk_Icon_View_Record)
    return Gtk.Enums.Gtk_Selection_Mode

Gets the selection mode of the Icon_View. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the current selection mode

Get_Spacing

function Get_Spacing
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the value of the ::spacing property. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the space between cells

Get_Text_Column

function Get_Text_Column
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the column with text for Icon_View. Since: gtk+ 2.6

Parameters
Icon_View
Return Value

the text column, or -1 if it's unset.

Get_Tooltip_Column

function Get_Tooltip_Column
   (Icon_View : not null access Gtk_Icon_View_Record) return Glib.Gint

Returns the column of Icon_View's model which is being used for displaying tooltips on Icon_View's rows. Since: gtk+ 2.12

Parameters
Icon_View
Return Value

the index of the tooltip column that is currently being used, or -1 if this is disabled.

Get_Tooltip_Context

procedure Get_Tooltip_Context
   (Icon_View    : not null access Gtk_Icon_View_Record;
    X            : in out Glib.Gint;
    Y            : in out Glib.Gint;
    Keyboard_Tip : Boolean;
    Model        : out Gtk.Tree_Model.Gtk_Tree_Model;
    Path         : out Gtk.Tree_Model.Gtk_Tree_Path;
    Iter         : out Gtk.Tree_Model.Gtk_Tree_Iter;
    Success      : out Boolean)

This function is supposed to be used in a Gtk.Widget.Gtk_Widget::query-tooltip signal handler for Gtk.Icon_View.Gtk_Icon_View. The X, Y and Keyboard_Tip values which are received in the signal handler, should be passed to this function without modification. The return value indicates whether there is an icon view item at the given coordinates (True) or not (False) for mouse tooltips. For keyboard tooltips the item returned will be the cursor item. When True, then any of Model, Path and Iter which have been provided will be set to point to that row and the corresponding model. X and Y will always be converted to be relative to Icon_View's bin_window if Keyboard_Tooltip is False. Since: gtk+ 2.12

Parameters
Icon_View
X

the x coordinate (relative to widget coordinates)

Y

the y coordinate (relative to widget coordinates)

Keyboard_Tip

whether this is a keyboard tooltip or not

Model

a pointer to receive a Gtk.Tree_Model.Gtk_Tree_Model or null

Path

a pointer to receive a Gtk.Tree_Model.Gtk_Tree_Path or null

Iter

a pointer to receive a Gtk.Tree_Model.Gtk_Tree_Iter or null @return whether or not the given tooltip context points to a item

Success

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Vadjustment

function Get_Vadjustment
   (Self : not null access Gtk_Icon_View_Record)
    return Gtk.Adjustment.Gtk_Adjustment
Parameters
Self
Return Value

Get_Visible_Range

procedure Get_Visible_Range
   (Icon_View  : not null access Gtk_Icon_View_Record;
    Start_Path : out Gtk.Tree_Model.Gtk_Tree_Path;
    End_Path   : out Gtk.Tree_Model.Gtk_Tree_Path)

Sets Start_Path and End_Path to be the first and last visible path. Note that there may be invisible paths in between. Both paths should be freed with Gtk.Tree_Model.Path_Free after use. Since: gtk+ 2.8

Parameters
Icon_View
Start_Path

Return location for start of region, or null

End_Path

Return location for end of region, or null

Get_Vscroll_Policy

function Get_Vscroll_Policy
   (Self : not null access Gtk_Icon_View_Record)
    return Gtk.Enums.Gtk_Scrollable_Policy
Parameters
Self
Return Value

Gtk_Cell_Layout_Data_Func

type Gtk_Cell_Layout_Data_Func is access procedure
  (Cell_Layout : Gtk.Cell_Layout.Gtk_Cell_Layout;
   Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
   Tree_Model  : Gtk.Tree_Model.Gtk_Tree_Model;
   Iter        : Gtk.Tree_Model.Gtk_Tree_Iter);

A function which should set the value of Cell_Layout's cell renderer(s) as appropriate.

Parameters
Cell_Layout

a Gtk.Cell_Layout.Gtk_Cell_Layout

Cell

the cell renderer whose value is to be set

Tree_Model

the model

Iter

a Gtk.Tree_Model.Gtk_Tree_Iter indicating the row to set the value for

Gtk_Icon_View

type Gtk_Icon_View is access all Gtk_Icon_View_Record'Class;

Gtk_Icon_View_Drop_Position

type Gtk_Icon_View_Drop_Position is (
   No_Drop,
   Drop_Into,
   Drop_Left,
   Drop_Right,
   Drop_Above,
   Drop_Below);

An enum for determining where a dropped item goes.

Enumeration Literal
No_Drop
Drop_Into
Drop_Left
Drop_Right
Drop_Above
Drop_Below

Gtk_Icon_View_Drop_Position_Properties

package Gtk_Icon_View_Drop_Position_Properties is
   new Generic_Internal_Discrete_Property (Gtk_Icon_View_Drop_Position);

Gtk_Icon_View_Foreach_Func

type Gtk_Icon_View_Foreach_Func is access procedure
  (Icon_View : not null access Gtk_Icon_View_Record'Class;
   Path      : Gtk.Tree_Model.Gtk_Tree_Path);

A function used by Gtk.Icon_View.Selected_Foreach to map all selected rows. It will be called on every selected row in the view.

Parameters
Icon_View

a Gtk.Icon_View.Gtk_Icon_View

Path

The Gtk.Tree_Model.Gtk_Tree_Path of a selected row

Gtk_Icon_View_New

function Gtk_Icon_View_New return Gtk_Icon_View

Creates a new Gtk.Icon_View.Gtk_Icon_View widget Since: gtk+ 2.6

Return Value

Gtk_Icon_View_New_With_Area

function Gtk_Icon_View_New_With_Area
   (Area : not null access Gtk.Cell_Area.Gtk_Cell_Area_Record'Class)
    return Gtk_Icon_View

Creates a new Gtk.Icon_View.Gtk_Icon_View widget using the specified Area to layout cells inside the icons. Since: gtk+ 3.0

Parameters
Area

the Gtk.Cell_Area.Gtk_Cell_Area to use to layout cells

Return Value

Gtk_Icon_View_New_With_Model

function Gtk_Icon_View_New_With_Model
   (Model : Gtk.Tree_Model.Gtk_Tree_Model) return Gtk_Icon_View

Creates a new Gtk.Icon_View.Gtk_Icon_View widget with the model Model. Since: gtk+ 2.6

Parameters
Model

The model.

Return Value

Gtk_Icon_View_Record

type Gtk_Icon_View_Record is new Gtk_Container_Record with null record;

Gtk_New

procedure Gtk_New (Icon_View : out Gtk_Icon_View)

Creates a new Gtk.Icon_View.Gtk_Icon_View widget Since: gtk+ 2.6 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Icon_View

Gtk_New_With_Area

procedure Gtk_New_With_Area
   (Icon_View : out Gtk_Icon_View;
    Area      : not null access Gtk.Cell_Area.Gtk_Cell_Area_Record'Class)

Creates a new Gtk.Icon_View.Gtk_Icon_View widget using the specified Area to layout cells inside the icons. Since: gtk+ 3.0 Initialize_With_Area does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Icon_View
Area

the Gtk.Cell_Area.Gtk_Cell_Area to use to layout cells

Gtk_New_With_Model

procedure Gtk_New_With_Model
   (Icon_View : out Gtk_Icon_View;
    Model     : Gtk.Tree_Model.Gtk_Tree_Model)

Creates a new Gtk.Icon_View.Gtk_Icon_View widget with the model Model. Since: gtk+ 2.6 Initialize_With_Model does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Icon_View
Model

The model.

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Icon_View_Record, Gtk_Icon_View);

Implements_Gtk_Cell_Layout

package Implements_Gtk_Cell_Layout is new Glib.Types.Implements
  (Gtk.Cell_Layout.Gtk_Cell_Layout, Gtk_Icon_View_Record, Gtk_Icon_View);

Implements_Gtk_Scrollable

package Implements_Gtk_Scrollable is new Glib.Types.Implements
  (Gtk.Scrollable.Gtk_Scrollable, Gtk_Icon_View_Record, Gtk_Icon_View);

Initialize

procedure Initialize
   (Icon_View : not null access Gtk_Icon_View_Record'Class)

Creates a new Gtk.Icon_View.Gtk_Icon_View widget Since: gtk+ 2.6 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Icon_View

Initialize_With_Area

procedure Initialize_With_Area
   (Icon_View : not null access Gtk_Icon_View_Record'Class;
    Area      : not null access Gtk.Cell_Area.Gtk_Cell_Area_Record'Class)

Creates a new Gtk.Icon_View.Gtk_Icon_View widget using the specified Area to layout cells inside the icons. Since: gtk+ 3.0 Initialize_With_Area does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Icon_View
Area

the Gtk.Cell_Area.Gtk_Cell_Area to use to layout cells

Initialize_With_Model

procedure Initialize_With_Model
   (Icon_View : not null access Gtk_Icon_View_Record'Class;
    Model     : Gtk.Tree_Model.Gtk_Tree_Model)

Creates a new Gtk.Icon_View.Gtk_Icon_View widget with the model Model. Since: gtk+ 2.6 Initialize_With_Model does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Icon_View
Model

The model.

Item_Activated

procedure Item_Activated
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path)

Activates the item determined by Path. Since: gtk+ 2.6

Parameters
Icon_View
Path

The Gtk.Tree_Model.Gtk_Tree_Path to be activated

Item_Orientation_Property

Item_Orientation_Property : constant Gtk.Enums.Property_Gtk_Orientation;

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

Item_Padding_Property

Item_Padding_Property : constant Glib.Properties.Property_Int;

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

Item_Width_Property

Item_Width_Property : constant Glib.Properties.Property_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.

Margin_Property

Margin_Property : constant Glib.Properties.Property_Int;

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

Markup_Column_Property

Markup_Column_Property : constant Glib.Properties.Property_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.

Model_Property

Model_Property : constant Glib.Properties.Property_Interface;

Type: Gtk.Tree_Model.Gtk_Tree_Model

On_Activate_Cursor_Item

procedure On_Activate_Cursor_Item
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_GObject_Boolean;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
Slot
After

On_Activate_Cursor_Item

procedure On_Activate_Cursor_Item
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_Gtk_Icon_View_Boolean;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
After

On_Item_Activated

procedure On_Item_Activated
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_GObject_Gtk_Tree_Path_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

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
Self
Call
Slot
After

On_Item_Activated

procedure On_Item_Activated
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_Gtk_Icon_View_Gtk_Tree_Path_Void;
    After : Boolean := False)

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
Self
Call
After

On_Move_Cursor

procedure On_Move_Cursor
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_GObject_Gtk_Movement_Step_Gint_Boolean;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

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

Callback parameters: -- @param Step the granularity of the move, as a -- Gtk.Enums.Gtk_Movement_Step -- @param Count the number of Step units to move

Parameters
Self
Call
Slot
After

On_Move_Cursor

procedure On_Move_Cursor
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_Gtk_Icon_View_Gtk_Movement_Step_Gint_Boolean;
    After : Boolean := False)

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

Callback parameters: -- @param Step the granularity of the move, as a -- Gtk.Enums.Gtk_Movement_Step -- @param Count the number of Step units to move

Parameters
Self
Call
After

On_Select_All

procedure On_Select_All
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
Slot
After

On_Select_All

procedure On_Select_All
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_Gtk_Icon_View_Void;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
After

On_Select_Cursor_Item

procedure On_Select_Cursor_Item
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
Slot
After

On_Select_Cursor_Item

procedure On_Select_Cursor_Item
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_Gtk_Icon_View_Void;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
After

On_Selection_Changed

procedure On_Selection_Changed
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

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

Parameters
Self
Call
Slot
After

On_Selection_Changed

procedure On_Selection_Changed
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_Gtk_Icon_View_Void;
    After : Boolean := False)

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

Parameters
Self
Call
After

On_Toggle_Cursor_Item

procedure On_Toggle_Cursor_Item
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
Slot
After

On_Toggle_Cursor_Item

procedure On_Toggle_Cursor_Item
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_Gtk_Icon_View_Void;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
After

On_Unselect_All

procedure On_Unselect_All
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
Slot
After

On_Unselect_All

procedure On_Unselect_All
   (Self  : not null access Gtk_Icon_View_Record;
    Call  : Cb_Gtk_Icon_View_Void;
    After : Boolean := False)

A [keybinding signal][GtkBindingSignal] 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
Self
Call
After

Pack_End

procedure Pack_End
   (Cell_Layout : not null access Gtk_Icon_View_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Expand      : Boolean)
Parameters
Cell_Layout
Cell
Expand

Pack_Start

procedure Pack_Start
   (Cell_Layout : not null access Gtk_Icon_View_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Expand      : Boolean)
Parameters
Cell_Layout
Cell
Expand

Path_Is_Selected

function Path_Is_Selected
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path) return Boolean

Returns True if the icon pointed to by Path is currently selected. If Path does not point to a valid location, False is returned. Since: gtk+ 2.6

Parameters
Icon_View
Path

A Gtk.Tree_Model.Gtk_Tree_Path to check selection on.

Return Value

True if Path is selected.

Pixbuf_Column_Property

Pixbuf_Column_Property : constant Glib.Properties.Property_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.

Property_Gtk_Icon_View_Drop_Position

type Property_Gtk_Icon_View_Drop_Position is new Gtk_Icon_View_Drop_Position_Properties.Property;

Reorder

procedure Reorder
   (Cell_Layout : not null access Gtk_Icon_View_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Position    : Glib.Gint)
Parameters
Cell_Layout
Cell
Position

Reorderable_Property

Reorderable_Property : constant Glib.Properties.Property_Boolean;

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

Row_Spacing_Property

Row_Spacing_Property : constant Glib.Properties.Property_Int;

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

Scroll_To_Path

procedure Scroll_To_Path
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path;
    Use_Align : Boolean;
    Row_Align : Gfloat;
    Col_Align : Gfloat)

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. Since: gtk+ 2.8

Parameters
Icon_View
Path

The path of the item to move to.

Use_Align

whether to use alignment arguments, or False.

Row_Align

The vertical alignment of the item specified by Path.

Col_Align

The horizontal alignment of the item specified by Path.

Select_All

procedure Select_All (Icon_View : not null access Gtk_Icon_View_Record)

Selects all the icons. Icon_View must has its selection mode set to GTK_SELECTION_MULTIPLE. Since: gtk+ 2.6

Parameters
Icon_View

Select_Path

procedure Select_Path
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path)

Selects the row at Path. Since: gtk+ 2.6

Parameters
Icon_View
Path

The Gtk.Tree_Model.Gtk_Tree_Path to be selected.

Selected_Foreach

procedure Selected_Foreach
   (Icon_View : not null access Gtk_Icon_View_Record;
    Func      : Gtk_Icon_View_Foreach_Func)

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

Parameters
Icon_View
Func

The function to call for each selected icon.

Selection_Mode_Property

Selection_Mode_Property : constant Gtk.Enums.Property_Gtk_Selection_Mode;

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.

Set_Activate_On_Single_Click

procedure Set_Activate_On_Single_Click
   (Icon_View : not null access Gtk_Icon_View_Record;
    Single    : Boolean)

Causes the Gtk.Icon_View.Gtk_Icon_View::item-activated signal to be emitted on a single click instead of a double click. Since: gtk+ 3.8

Parameters
Icon_View
Single

True to emit item-activated on a single click

Set_Cell_Data_Func

procedure Set_Cell_Data_Func
   (Cell_Layout : not null access Gtk_Icon_View_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Func        : Gtk_Cell_Layout_Data_Func)

Sets the Gtk_Cell_Layout_Data_Func to use for Cell_Layout. This function is used instead of the standard attributes mapping for setting the column value, and should set the value of Cell_Layout's cell renderer(s) as appropriate. Func may be null to remove a previously set function. Since: gtk+ 2.4

Parameters
Cell_Layout
Cell

a Gtk.Cell_Renderer.Gtk_Cell_Renderer

Func

the Gtk_Cell_Layout_Data_Func to use, or null

Set_Column_Spacing

procedure Set_Column_Spacing
   (Icon_View      : not null access Gtk_Icon_View_Record;
    Column_Spacing : Glib.Gint)

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

Parameters
Icon_View
Column_Spacing

the column spacing

Set_Columns

procedure Set_Columns
   (Icon_View : not null access Gtk_Icon_View_Record;
    Columns   : Glib.Gint)

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. Since: gtk+ 2.6

Parameters
Icon_View
Columns

the number of columns

Set_Cursor

procedure Set_Cursor
   (Icon_View     : not null access Gtk_Icon_View_Record;
    Path          : Gtk.Tree_Model.Gtk_Tree_Path;
    Cell          : access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Start_Editing : 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. 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. Since: gtk+ 2.8

Parameters
Icon_View
Path

A Gtk.Tree_Model.Gtk_Tree_Path

Cell

One of the cell renderers of Icon_View, or null

Start_Editing

True if the specified cell should start being edited.

Set_Drag_Dest_Item

procedure Set_Drag_Dest_Item
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path;
    Pos       : Gtk_Icon_View_Drop_Position)

Sets the item that is highlighted for feedback. Since: gtk+ 2.8

Parameters
Icon_View
Path

The path of the item to highlight, or null.

Pos

Specifies where to drop, relative to the item

Set_Hadjustment

procedure Set_Hadjustment
   (Self        : not null access Gtk_Icon_View_Record;
    Hadjustment : access Gtk.Adjustment.Gtk_Adjustment_Record'Class)
Parameters
Self
Hadjustment

Set_Hscroll_Policy

procedure Set_Hscroll_Policy
   (Self   : not null access Gtk_Icon_View_Record;
    Policy : Gtk.Enums.Gtk_Scrollable_Policy)
Parameters
Self
Policy

Set_Item_Orientation

procedure Set_Item_Orientation
   (Icon_View   : not null access Gtk_Icon_View_Record;
    Orientation : Gtk.Enums.Gtk_Orientation)

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

Parameters
Icon_View
Orientation

the relative position of texts and icons

Set_Item_Padding

procedure Set_Item_Padding
   (Icon_View    : not null access Gtk_Icon_View_Record;
    Item_Padding : Glib.Gint)

Sets the Gtk.Icon_View.Gtk_Icon_View:item-padding property which specifies the padding around each of the icon view's items. Since: gtk+ 2.18

Parameters
Icon_View
Item_Padding

the item padding

Set_Item_Width

procedure Set_Item_Width
   (Icon_View  : not null access Gtk_Icon_View_Record;
    Item_Width : Glib.Gint)

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. Since: gtk+ 2.6

Parameters
Icon_View
Item_Width

the width for each item

Set_Margin

procedure Set_Margin
   (Icon_View : not null access Gtk_Icon_View_Record;
    Margin    : Glib.Gint)

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

Parameters
Icon_View
Margin

the margin

Set_Markup_Column

procedure Set_Markup_Column
   (Icon_View : not null access Gtk_Icon_View_Record;
    Column    : Glib.Gint)

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. Since: gtk+ 2.6

Parameters
Icon_View
Column

A column in the currently used model, or -1 to display no text

Set_Model

procedure Set_Model
   (Icon_View : not null access Gtk_Icon_View_Record;
    Model     : Gtk.Tree_Model.Gtk_Tree_Model)

Sets the model for a Gtk.Icon_View.Gtk_Icon_View. 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. Since: gtk+ 2.6

Parameters
Icon_View
Model

The model.

Set_Pixbuf_Column

procedure Set_Pixbuf_Column
   (Icon_View : not null access Gtk_Icon_View_Record;
    Column    : Glib.Gint)

Sets the column with pixbufs for Icon_View to be Column. The pixbuf column must be of type GDK_TYPE_PIXBUF Since: gtk+ 2.6

Parameters
Icon_View
Column

A column in the currently used model, or -1 to disable

Set_Reorderable

procedure Set_Reorderable
   (Icon_View   : not null access Gtk_Icon_View_Record;
    Reorderable : Boolean)

This function is a convenience function to allow you to reorder models that support the Gtk_Tree_Drag_Source_Iface and the Gtk_Tree_Drag_Dest_Iface. Both Gtk.Tree_Store.Gtk_Tree_Store and Gtk.List_Store.Gtk_List_Store 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. Since: gtk+ 2.8

Parameters
Icon_View
Reorderable

True, if the list of items can be reordered.

Set_Row_Spacing

procedure Set_Row_Spacing
   (Icon_View   : not null access Gtk_Icon_View_Record;
    Row_Spacing : Glib.Gint)

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

Parameters
Icon_View
Row_Spacing

the row spacing

Set_Selection_Mode

procedure Set_Selection_Mode
   (Icon_View : not null access Gtk_Icon_View_Record;
    Mode      : Gtk.Enums.Gtk_Selection_Mode)

Sets the selection mode of the Icon_View. Since: gtk+ 2.6

Parameters
Icon_View
Mode

The selection mode

Set_Spacing

procedure Set_Spacing
   (Icon_View : not null access Gtk_Icon_View_Record;
    Spacing   : Glib.Gint)

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

Parameters
Icon_View
Spacing

the spacing

Set_Text_Column

procedure Set_Text_Column
   (Icon_View : not null access Gtk_Icon_View_Record;
    Column    : Glib.Gint)

Sets the column with text for Icon_View to be Column. The text column must be of type G_TYPE_STRING. Since: gtk+ 2.6

Parameters
Icon_View
Column

A column in the currently used model, or -1 to display no text

Set_Tooltip_Cell

procedure Set_Tooltip_Cell
   (Icon_View : not null access Gtk_Icon_View_Record;
    Tooltip   : not null access Gtk.Tooltip.Gtk_Tooltip_Record'Class;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path;
    Cell      : access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class)

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. Since: gtk+ 2.12

Parameters
Icon_View
Tooltip

a Gtk.Tooltip.Gtk_Tooltip

Path

a Gtk.Tree_Model.Gtk_Tree_Path

Cell

a Gtk.Cell_Renderer.Gtk_Cell_Renderer or null

Set_Tooltip_Column

procedure Set_Tooltip_Column
   (Icon_View : not null access Gtk_Icon_View_Record;
    Column    : Glib.Gint)

If you only plan to have simple (text-only) tooltips on full items, you can use this function to have Gtk.Icon_View.Gtk_Icon_View 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, Gtk.Widget.Gtk_Widget:has-tooltip will be set to True and Icon_View will connect a Gtk.Widget.Gtk_Widget::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. Since: gtk+ 2.12

Parameters
Icon_View
Column

an integer, which is a valid column number for Icon_View's model

Set_Tooltip_Item

procedure Set_Tooltip_Item
   (Icon_View : not null access Gtk_Icon_View_Record;
    Tooltip   : not null access Gtk.Tooltip.Gtk_Tooltip_Record'Class;
    Path      : Gtk.Tree_Model.Gtk_Tree_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. Since: gtk+ 2.12

Parameters
Icon_View
Tooltip

a Gtk.Tooltip.Gtk_Tooltip

Path

a Gtk.Tree_Model.Gtk_Tree_Path

Set_Vadjustment

procedure Set_Vadjustment
   (Self        : not null access Gtk_Icon_View_Record;
    Vadjustment : access Gtk.Adjustment.Gtk_Adjustment_Record'Class)
Parameters
Self
Vadjustment

Set_Vscroll_Policy

procedure Set_Vscroll_Policy
   (Self   : not null access Gtk_Icon_View_Record;
    Policy : Gtk.Enums.Gtk_Scrollable_Policy)
Parameters
Self
Policy

Signal_Activate_Cursor_Item

Signal_Activate_Cursor_Item : constant Glib.Signal_Name := "activate-cursor-item";

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

Signal_Item_Activated

Signal_Item_Activated : constant Glib.Signal_Name := "item-activated";

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.

Signal_Move_Cursor

Signal_Move_Cursor : constant Glib.Signal_Name := "move-cursor";

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

Callback parameters: -- @param Step the granularity of the move, as a -- Gtk.Enums.Gtk_Movement_Step -- @param Count the number of Step units to move

Signal_Select_All

Signal_Select_All : constant Glib.Signal_Name := "select-all";

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

Signal_Select_Cursor_Item

Signal_Select_Cursor_Item : constant Glib.Signal_Name := "select-cursor-item";

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

Signal_Selection_Changed

Signal_Selection_Changed : constant Glib.Signal_Name := "selection-changed";

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

Signal_Toggle_Cursor_Item

Signal_Toggle_Cursor_Item : constant Glib.Signal_Name := "toggle-cursor-item";

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

Signal_Unselect_All

Signal_Unselect_All : constant Glib.Signal_Name := "unselect-all";

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

Spacing_Property

Spacing_Property : constant Glib.Properties.Property_Int;

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

Text_Column_Property

Text_Column_Property : constant Glib.Properties.Property_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.

Tooltip_Column_Property

Tooltip_Column_Property : constant Glib.Properties.Property_Int;

Unselect_All

procedure Unselect_All (Icon_View : not null access Gtk_Icon_View_Record)

Unselects all the icons. Since: gtk+ 2.6

Parameters
Icon_View

Unselect_Path

procedure Unselect_Path
   (Icon_View : not null access Gtk_Icon_View_Record;
    Path      : Gtk.Tree_Model.Gtk_Tree_Path)

Unselects the row at Path. Since: gtk+ 2.6

Parameters
Icon_View
Path

The Gtk.Tree_Model.Gtk_Tree_Path to be unselected.

Unset_Model_Drag_Dest

procedure Unset_Model_Drag_Dest
   (Icon_View : not null access Gtk_Icon_View_Record)

Undoes the effect of gtk_icon_view_enable_model_drag_dest. Calling this method sets Gtk.Icon_View.Gtk_Icon_View:reorderable to False. Since: gtk+ 2.8

Parameters
Icon_View

Unset_Model_Drag_Source

procedure Unset_Model_Drag_Source
   (Icon_View : not null access Gtk_Icon_View_Record)

Undoes the effect of gtk_icon_view_enable_model_drag_source. Calling this method sets Gtk.Icon_View.Gtk_Icon_View:reorderable to False. Since: gtk+ 2.8

Parameters
Icon_View