## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Icon_View

- Goto spec source

# Description

    package Gtk.Icon_View is

Gtk_Icon_View provides an alternative view on a list model. It displays the model as a grid of icons with labels. Like Gtk_Tree_View, it allows to select one or multiple items (depending on the selection mode, see Set_Selection_Mode). In addition to selection with the arrow keys, Gtk_Icon_View supports rubberband selection, which is controlled by dragging the pointer.

Binding from C File version 2.16.6

### Screenshot

<testgtk>create_icon_view.adb</testgtk>

# Packages

### Implements_Cell_Layout (new Glib.Types.Implements)

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

# Classes

### Gtk_Icon_View_Record

- Goto declaration in source

    type Gtk_Icon_View_Record is new Gtk.Container.Gtk_Container_Record with
         null record;

#### Ancestors:

Gtk.Container.Gtk_Container_Record
Gtk.Widget.Gtk_Widget_Record
Glib.Object.GObject_Record

#### Primitive operations:

Convert_Widget_To_Bin_Window_Coords

- To API doc
- To spec

Create_Drag_Icon

- To API doc
- To spec

Enable_Model_Drag_Dest

- To API doc
- To spec

Enable_Model_Drag_Source

- To API doc
- To spec

Get_Column_Spacing

- To API doc
- To spec

Get_Columns

- To API doc
- To spec

Get_Cursor

- To API doc
- To spec

Get_Dest_Item_At_Pos

- To API doc
- To spec

Get_Drag_Dest_Item

- To API doc
- To spec

Get_Item_At_Pos

- To API doc
- To spec

Get_Item_Width

- To API doc
- To spec

Get_Margin

- To API doc
- To spec

Get_Markup_Column

- To API doc
- To spec

Get_Model

- To API doc
- To spec

Get_Orientation

- To API doc
- To spec

Get_Path_At_Pos

- To API doc
- To spec

Get_Pixbuf_Column

- To API doc
- To spec

Get_Reorderable

- To API doc
- To spec

Get_Row_Spacing

- To API doc
- To spec

Get_Selected_Items

- To API doc
- To spec

Get_Selection_Mode

- To API doc
- To spec

Get_Spacing

- To API doc
- To spec

Get_Text_Column

- To API doc
- To spec

Get_Tooltip_Column

- To API doc
- To spec

Get_Tooltip_Context

- To API doc
- To spec

Get_Visible_Range

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Gtk.Container.Add

- To API doc
- To spec

(Inherited)
Gtk.Container.Check_Resize

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Set_Property

- To API doc
- To spec

(Inherited)
Gtk.Container.Child_Type

- To API doc
- To spec

(Inherited)
Gtk.Container.Forall

- To API doc
- To spec

(Inherited)
Gtk.Container.Foreach

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Border_Width

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Children

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Hadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Focus_Vadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Get_Resize_Mode

- To API doc
- To spec

(Inherited)
Gtk.Container.Propagate_Expose

- To API doc
- To spec

(Inherited)
Gtk.Container.Remove

- To API doc
- To spec

(Inherited)
Gtk.Container.Resize_Children

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Border_Width

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Child

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Hadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Focus_Vadjustment

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Reallocate_Redraws

- To API doc
- To spec

(Inherited)
Gtk.Container.Set_Resize_Mode

- To API doc
- To spec

(Inherited)
Gtk.Container.Unset_Focus_Chain

- To API doc
- To spec

(Inherited)
Gtk.Widget.Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Add_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Can_Activate_Accel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Class_Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Create_Pango_Layout

- To API doc
- To spec

(Inherited)
Gtk.Widget.Destroy

- To API doc
- To spec

(Inherited)
Gtk.Widget.Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Ensure_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Error_Bell

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flag_Is_Set

- To API doc
- To spec

(Inherited)
Gtk.Widget.Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Freeze_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Height

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Width

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_X

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Allocation_Y

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Requisition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pango_Context

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Pointer

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Root_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Snapshot

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Toplevel

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Visual

- To API doc
- To spec

(Inherited)
Gtk.Widget.Get_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Default

- To API doc
- To spec

(Inherited)
Gtk.Widget.Grab_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Has_Screen

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide

- To API doc
- To spec

(Inherited)
Gtk.Widget.Hide_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Input_Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Ancestor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Composited

- To API doc
- To spec

(Inherited)
Gtk.Widget.Is_Focus

- To API doc
- To spec

(Inherited)
Gtk.Widget.Keynav_Failed

- To API doc
- To spec

(Inherited)
Gtk.Widget.List_Mnemonic_Labels

- To API doc
- To spec

(Inherited)
Gtk.Widget.Map

- To API doc
- To spec

(Inherited)
Gtk.Widget.Mnemonic_Activate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Base

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Bg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Cursor

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Fg

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Font

- To API doc
- To spec

(Inherited)
Gtk.Widget.Modify_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Path_Reversed

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Clear_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Draw_Area

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Queue_Resize_No_Redraw

- To API doc
- To spec

(Inherited)
Gtk.Widget.Realize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Region_Intersect

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Accelerator

- To API doc
- To spec

(Inherited)
Gtk.Widget.Remove_Mnemonic_Label

- To API doc
- To spec

(Inherited)
Gtk.Widget.Render_Icon

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reparent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Rc_Styles

- To API doc
- To spec

(Inherited)
Gtk.Widget.Reset_Shapes

- To API doc
- To spec

(Inherited)
Gtk.Widget.Restore_Default_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Send_Expose

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Accel_Path

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_App_Paintable

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Child_Visible

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Colormap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Composite_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Direction

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Double_Buffered

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Extension_Events

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Flags

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Has_Tooltip

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Name

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_No_Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Parent_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Redraw_On_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Scroll_Adjustments

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Sensitive

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_State

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Style

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Markup

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Text

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Tooltip_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_UPosition

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_USize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Set_Window

- To API doc
- To spec

(Inherited)
Gtk.Widget.Shape_Combine_Mask

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_All

- To API doc
- To spec

(Inherited)
Gtk.Widget.Show_Now

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Allocate

- To API doc
- To spec

(Inherited)
Gtk.Widget.Size_Request

- To API doc
- To spec

(Inherited)
Gtk.Widget.Style_Get_Property

- To API doc
- To spec

(Inherited)
Gtk.Widget.Thaw_Child_Notify

- To API doc
- To spec

(Inherited)
Gtk.Widget.Trigger_Tooltip_Query

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unmap

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unrealize

- To API doc
- To spec

(Inherited)
Gtk.Widget.Unset_Flags

- To API doc
- To spec

(Inherited)
Item_Activated

- To API doc
- To spec

Path_Is_Selected

- To API doc
- To spec

Scroll_To_Path

- To API doc
- To spec

Select_All

- To API doc
- To spec

Select_Path

- To API doc
- To spec

Set_Column_Spacing

- To API doc
- To spec

Set_Columns

- To API doc
- To spec

Set_Cursor

- To API doc
- To spec

Set_Drag_Dest_Item

- To API doc
- To spec

Set_Item_Width

- To API doc
- To spec

Set_Margin

- To API doc
- To spec

Set_Markup_Column

- To API doc
- To spec

Set_Model

- To API doc
- To spec

Set_Orientation

- To API doc
- To spec

Set_Pixbuf_Column

- To API doc
- To spec

Set_Reorderable

- To API doc
- To spec

Set_Row_Spacing

- To API doc
- To spec

Set_Selection_Mode

- To API doc
- To spec

Set_Spacing

- To API doc
- To spec

Set_Text_Column

- To API doc
- To spec

Set_Tooltip_Cell

- To API doc
- To spec

Set_Tooltip_Column

- To API doc
- To spec

Set_Tooltip_Item

- To API doc
- To spec

Unselect_All

- To API doc
- To spec

Unselect_Path

- To API doc
- To spec

Unset_Model_Drag_Dest

- To API doc
- To spec

Unset_Model_Drag_Source

- To API doc
- To spec

# Types

### Gtk_Icon_View

- Goto declaration in source

    type Gtk_Icon_View is access all Gtk_Icon_View_Record'Class;

### Gtk_Icon_View_Drop_Position

- Goto declaration in source

    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. If Drop_Into, then the drop item replaces the item.

# Constants & Global variables

### Column_Spacing_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Column_Spacing_Property : constant Glib.Properties.Property_Int;

### Columns_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Columns_Property        : constant Glib.Properties.Property_Int;

### Item_Width_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Item_Width_Property     : constant Glib.Properties.Property_Int;

### Margin_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Margin_Property         : constant Glib.Properties.Property_Int;

### Markup_Column_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Markup_Column_Property  : constant Glib.Properties.Property_Int;

### Model_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Model_Property          : constant Glib.Properties.Property_Object;

### Orientation_Property

- Goto declaration in source

(Gtk.Enums.Property_Gtk_Orientation)

    Orientation_Property    : constant Gtk.Enums.Property_Gtk_Orientation;

### Pixbuf_Column_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Pixbuf_Column_Property  : constant Glib.Properties.Property_Int;

### Reorderable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Reorderable_Property    : constant Glib.Properties.Property_Boolean;

### Row_Spacing_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Row_Spacing_Property    : constant Glib.Properties.Property_Int;

Selection_Mode_Property : constant Glib.Properties.Property_Enum;

### Spacing_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Spacing_Property        : constant Glib.Properties.Property_Int;

Selection_Mode_Property : constant Glib.Properties.Property_Enum;

### Text_Column_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Text_Column_Property    : constant Glib.Properties.Property_Int;

### Tooltip_Column_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Tooltip_Column_Property : constant Glib.Properties.Property_Int;

### Selection_Box_Alpha_Property

- Goto declaration in source

(Glib.Properties.Property_Uchar)

    Selection_Box_Alpha_Property : constant Glib.Properties.Property_Uchar;

### Selection_Box_Color_Property

- Goto declaration in source

(Gdk.Color.Property_Gdk_Color)

    Selection_Box_Color_Property : constant Gdk.Color.Property_Gdk_Color;

### Signal_Activate_Cursor_Item

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Activate_Cursor_Item   : constant Glib.Signal_Name :=
                                         "activate_cursor_item";

### Signal_Item_Activated

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Item_Activated         : constant Glib.Signal_Name :=
                                         "item_activated";

### Signal_Move_Cursor

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Move_Cursor            : constant Glib.Signal_Name :=
                                         "move_cursor";

### Signal_Select_All

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Select_All             : constant Glib.Signal_Name :=
                                         "select_all";

### Signal_Select_Cursor_Item

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Select_Cursor_Item     : constant Glib.Signal_Name :=
                                         "select_cursor_item";

### Signal_Selection_Changed

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Selection_Changed      : constant Glib.Signal_Name :=
                                         "selection_changed";

### Signal_Set_Scroll_Adjustments

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Set_Scroll_Adjustments : constant Glib.Signal_Name :=
                                         "set_scroll_adjustments";

### Signal_Toggle_Cursor_Item

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Toggle_Cursor_Item     : constant Glib.Signal_Name :=
                                         "toggle_cursor_item";

### Signal_Unselect_All

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Unselect_All           : constant Glib.Signal_Name :=
                                         "unselect_all";

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New    (Icon_View: out Gtk_Icon_View);

### Initialize

- Goto spec in source

    procedure Initialize (Icon_View: access Gtk_Icon_View_Record'Class);

Creates a new Gtk_Icon_View widget

### Gtk_New_With_Model

- Goto spec in source

    procedure Gtk_New_With_Model (Icon_View: out Gtk_Icon_View;Model: access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class);

### Initialize_With_Model

- Goto spec in source

    procedure Initialize_With_Model (Icon_View: access Gtk_Icon_View_Record'Class;Model: access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class);

Creates a new Gtk_Icon_View widget with the model Model.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return GType;

Return the internal type used for a Gtk_Icon_View.

### Set_Column_Spacing

- Goto spec in source

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

### Get_Column_Spacing

- Goto spec in source

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

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

### Set_Columns

- Goto spec in source

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

### Get_Columns

- Goto spec in source

    function Get_Columns (Icon_View: access Gtk_Icon_View_Record) return 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.

### Set_Cursor

- Goto spec in source

    procedure Set_Cursor (Icon_View: access Gtk_Icon_View_Record;Path: Gtk.Tree_Model.Gtk_Tree_Path;Cell: Gtk.Cell_Renderer.Gtk_Cell_Renderer := null;Start_Editing: Boolean := False);

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 Grab_Focus in order to give keyboard focus to the widget. Please note that editing can only happen when the widget is realized.

### Get_Cursor

- Goto spec in source

    procedure Get_Cursor (Icon_View: 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 Ppath will be null. If no cell currently has focus, then Cell will be null. The returned Path must be freed with Gtk.Tree_Model.Path_Free. Cursor_Is_Set is set to True if the cursor is set.

### Set_Item_Width

- Goto spec in source

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

### Get_Item_Width

- Goto spec in source

    function Get_Item_Width (Icon_View: access Gtk_Icon_View_Record) return 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.

### Set_Margin

- Goto spec in source

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

### Get_Margin

- Goto spec in source

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

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

### Set_Orientation

- Goto spec in source

    procedure Set_Orientation (Icon_View: access Gtk_Icon_View_Record;Orientation: Gtk.Enums.Gtk_Orientation);

### Get_Orientation

- Goto spec in source

    function Get_Orientation (Icon_View: access Gtk_Icon_View_Record) return Gtk.Enums.Gtk_Orientation;

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

### Set_Reorderable

- Goto spec in source

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

### Get_Reorderable

- Goto spec in source

    function Get_Reorderable (Icon_View: access Gtk_Icon_View_Record) return Boolean;

This function is a convenience function to allow you to reorder models that support the Gtk_Tree_Drag_Source interface and the Gtk_Tree_Drag_Dest interface. Both Gtk_Tree_Store and 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. 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.

### Set_Row_Spacing

- Goto spec in source

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

### Get_Row_Spacing

- Goto spec in source

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

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

### Set_Spacing

- Goto spec in source

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

### Get_Spacing

- Goto spec in source

    function Get_Spacing (Icon_View: access Gtk_Icon_View_Record) return 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.

### Item_Activated

- Goto spec in source

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

Activates the item determined by Path.

### Get_Visible_Range

- Goto spec in source

    procedure Get_Visible_Range (Icon_View: 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 Path_Free after use.

### Scroll_To_Path

- Goto spec in source

    procedure Scroll_To_Path (Icon_View: access Gtk_Icon_View_Record;Path: Gtk.Tree_Model.Gtk_Tree_Path;Use_Align: Boolean := True;Row_Align: Glib.Gfloat := 0.5;Col_Align: Glib.Gfloat := 0.0);

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.

### Set_Tooltip_Column

- Goto spec in source

    procedure Set_Tooltip_Column (Icon_View: access Gtk_Icon_View_Record;Column: Gint);

### Get_Tooltip_Column

- Goto spec in source

    function Get_Tooltip_Column (Icon_View: access Gtk_Icon_View_Record) return Gint;

If you only plan to have simple (text-only) tooltips on full items, you can use Set_Tooltip_Column to have 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, #GtkWidget::has-tooltip will be set to True and Icon_View will connect a #GtkWidget::query-tooltip signal handler. Get_Tooltip_Column returns the index of the tooltip column that is currently being used, or -1 if this is disabled.

### Get_Tooltip_Context

- Goto spec in source

    procedure Get_Tooltip_Context (Icon_View: access Gtk_Icon_View_Record;X: in out Gint;Y: in out 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);

Icon_View: a Gtk_Icon_View X: the x coordinate (relative to widget coordinates) Y: the y coordinate (relative to widget coordinates) Keyboard_Tip: whether or not this is a keyboard tooltip Model: a Gtk_Tree_Model Path: a Gtk_Tree_Path Iter: a Gtk_Tree_Iter This subprogram is supposed to be used in a #GtkWidget::query-tooltip signal handler for Gtk_Icon_View. The X, Y and Keyboard_Tip values which are received in the signal handler should be passed to this subprogram without modification. The Success 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_Tip is False.

### Set_Tooltip_Cell

- Goto spec in source

    procedure Set_Tooltip_Cell (Icon_View: access Gtk_Icon_View_Record;Tooltip: 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 Set_Tooltip_Column for a simpler alternative.

### Set_Tooltip_Item

- Goto spec in source

    procedure Set_Tooltip_Item (Icon_View: access Gtk_Icon_View_Record;Tooltip: 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 Set_Tooltip_Column for a simpler alternative. See also Gtk.Tooltip.Set_Tip_Area.

### Set_Model

- Goto spec in source

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

### Get_Model

- Goto spec in source

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

Sets the model for a 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.

### Set_Text_Column

- Goto spec in source

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

### Get_Text_Column

- Goto spec in source

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

Sets the column with text for Icon_View to be Column. The text column must be of type GType_String.

### Set_Pixbuf_Column

- Goto spec in source

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

### Get_Pixbuf_Column

- Goto spec in source

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

Sets the column with pixbufs for Icon_View to be Column. The pixbuf column must be of type Gdk.Pixbuf.Get_Type

### Set_Markup_Column

- Goto spec in source

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

### Get_Markup_Column

- Goto spec in source

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

Sets the column with markup information for Icon_View to be Column. The markup column must be of type GType_String. If the markup column is set to something, it overrides the text column set by Set_Text_Column.

### Get_Path_At_Pos

- Goto spec in source

    function Get_Path_At_Pos (Icon_View: 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 widget coordinates. See Get_Item_At_Pos, if you are also interested in the cell at the specified position.

### Get_Item_At_Pos

- Goto spec in source

    procedure Get_Item_At_Pos (Icon_View: access Gtk_Icon_View_Record;X: Gint;Y: 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 widget coordinates. In contrast to Get_Path_At_Pos, this function also obtains the cell at the specified position. The returned path should be freed with Path_Free. Has_Item is set to True if an item exists at the specified position.

### Convert_Widget_To_Bin_Window_Coords

- Goto spec in source

    procedure Convert_Widget_To_Bin_Window_Coords (Icon_View: access Gtk_Icon_View_Record;Wx: Gint;Wy: Gint;Bx: out Gint;By: out Gint);

Icon_View: a Gtk_Icon_View Wx: X coordinate relative to the widget Wy: Y coordinate relative to the widget Bx: bin_window X coordinate By: bin_window Y coordinate Converts widget coordinates to coordinates for the bin_window, as expected by e.g. Get_Path_At_Pos.

### Set_Selection_Mode

- Goto spec in source

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

### Get_Selection_Mode

- Goto spec in source

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

Sets the selection mode of the Icon_View.

### Select_All

- Goto spec in source

    procedure Select_All   (Icon_View: access Gtk_Icon_View_Record);

### Unselect_All

- Goto spec in source

    procedure Unselect_All (Icon_View: access Gtk_Icon_View_Record);

Selects all the icons. Icon_View must has its selection mode set to Selection_Multiple

### Select_Path

- Goto spec in source

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

### Unselect_Path

- Goto spec in source

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

Selects the row at Path.

### Get_Selected_Items

- Goto spec in source

    function Get_Selected_Items (Icon_View: 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_Reference. To free the returend value, use: Foreach (List, Gtk.Tree_Model.Path_Free, Null); Free (List);

### Path_Is_Selected

- Goto spec in source

    function Path_Is_Selected (Icon_View: 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.

### Create_Drag_Icon

- Goto spec in source

    function Create_Drag_Icon (Icon_View: access Gtk_Icon_View_Record;Path: Gtk.Tree_Model.Gtk_Tree_Path) return Gdk.Gdk_Pixmap;

Creates a Gdk_Pixmap representation of the item at Path. This image is used for a drag icon. The returned value must be Unref'd by the caller.

### Enable_Model_Drag_Dest

- Goto spec in source

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

### Unset_Model_Drag_Dest

- Goto spec in source

    procedure Unset_Model_Drag_Dest (Icon_View: access Gtk_Icon_View_Record);

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

### Enable_Model_Drag_Source

- Goto spec in source

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

### Unset_Model_Drag_Source

- Goto spec in source

    procedure Unset_Model_Drag_Source (Icon_View: access Gtk_Icon_View_Record);

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

### Get_Dest_Item_At_Pos

- Goto spec in source

    procedure Get_Dest_Item_At_Pos (Icon_View: 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. Return value: whether there is an item at the given position.

### Set_Drag_Dest_Item

- Goto spec in source

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

### Get_Drag_Dest_Item

- Goto spec in source

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

Sets the item that is highlighted for feedback.

### +

- Goto spec in source

    function "+" (Widget: access Gtk_Icon_View_Record'Class) return Gtk.Cell_Layout.Gtk_Cell_Layout renames Implements_Cell_Layout.To_Interface;

### -

- Goto spec in source

    function "-" (Interf: Gtk.Cell_Layout.Gtk_Cell_Layout) return Gtk_Icon_View renames Implements_Cell_Layout.To_Object;

Converts to and from the Gtk_Cell_Layout interface