Index

Package: Icon_View

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

icon-view.png
<testgtk>create_icon_view.adb</testgtk>

Packages

Implements_Cell_Layout (new Glib.Types.Implements)

Classes

Gtk_Icon_View_Record

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

Ancestors:

Primitive operations:

Convert_Widget_To_Bin_Window_Coords
Create_Drag_Icon
Enable_Model_Drag_Dest
Enable_Model_Drag_Source
Get_Column_Spacing
Get_Dest_Item_At_Pos
Get_Drag_Dest_Item
Get_Item_At_Pos
Get_Item_Width
Get_Markup_Column
Get_Orientation
Get_Path_At_Pos
Get_Pixbuf_Column
Get_Reorderable
Get_Row_Spacing
Get_Selected_Items
Get_Selection_Mode
Get_Text_Column
Get_Tooltip_Column
Get_Tooltip_Context
Get_Visible_Range
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Container.Add (Inherited)
Gtk.Container.Check_Resize (Inherited)
Gtk.Container.Child_Get_Property (Inherited)
Gtk.Container.Child_Set_Property (Inherited)
Gtk.Container.Child_Type (Inherited)
Gtk.Container.Forall (Inherited)
Gtk.Container.Foreach (Inherited)
Gtk.Container.Get_Border_Width (Inherited)
Gtk.Container.Get_Children (Inherited)
Gtk.Container.Get_Focus_Chain (Inherited)
Gtk.Container.Get_Focus_Child (Inherited)
Gtk.Container.Get_Focus_Hadjustment (Inherited)
Gtk.Container.Get_Focus_Vadjustment (Inherited)
Gtk.Container.Get_Resize_Mode (Inherited)
Gtk.Container.Propagate_Expose (Inherited)
Gtk.Container.Remove (Inherited)
Gtk.Container.Resize_Children (Inherited)
Gtk.Container.Set_Border_Width (Inherited)
Gtk.Container.Set_Focus_Chain (Inherited)
Gtk.Container.Set_Focus_Child (Inherited)
Gtk.Container.Set_Focus_Hadjustment (Inherited)
Gtk.Container.Set_Focus_Vadjustment (Inherited)
Gtk.Container.Set_Reallocate_Redraws (Inherited)
Gtk.Container.Set_Resize_Mode (Inherited)
Gtk.Container.Unset_Focus_Chain (Inherited)
Gtk.Widget.Activate (Inherited)
Gtk.Widget.Add_Accelerator (Inherited)
Gtk.Widget.Add_Events (Inherited)
Gtk.Widget.Add_Mnemonic_Label (Inherited)
Gtk.Widget.Can_Activate_Accel (Inherited)
Gtk.Widget.Child_Notify (Inherited)
Gtk.Widget.Class_Path (Inherited)
Gtk.Widget.Class_Path_Reversed (Inherited)
Gtk.Widget.Create_Pango_Context (Inherited)
Gtk.Widget.Create_Pango_Layout (Inherited)
Gtk.Widget.Destroy (Inherited)
Gtk.Widget.Draw (Inherited)
Gtk.Widget.Ensure_Style (Inherited)
Gtk.Widget.Error_Bell (Inherited)
Gtk.Widget.Flag_Is_Set (Inherited)
Gtk.Widget.Flags (Inherited)
Gtk.Widget.Freeze_Child_Notify (Inherited)
Gtk.Widget.Get_Allocation_Height (Inherited)
Gtk.Widget.Get_Allocation_Width (Inherited)
Gtk.Widget.Get_Allocation_X (Inherited)
Gtk.Widget.Get_Allocation_Y (Inherited)
Gtk.Widget.Get_Ancestor (Inherited)
Gtk.Widget.Get_Child_Requisition (Inherited)
Gtk.Widget.Get_Child_Visible (Inherited)
Gtk.Widget.Get_Colormap (Inherited)
Gtk.Widget.Get_Composite_Name (Inherited)
Gtk.Widget.Get_Direction (Inherited)
Gtk.Widget.Get_Events (Inherited)
Gtk.Widget.Get_Extension_Events (Inherited)
Gtk.Widget.Get_Has_Tooltip (Inherited)
Gtk.Widget.Get_Name (Inherited)
Gtk.Widget.Get_No_Show_All (Inherited)
Gtk.Widget.Get_Pango_Context (Inherited)
Gtk.Widget.Get_Parent (Inherited)
Gtk.Widget.Get_Parent_Window (Inherited)
Gtk.Widget.Get_Pointer (Inherited)
Gtk.Widget.Get_Root_Window (Inherited)
Gtk.Widget.Get_Size_Request (Inherited)
Gtk.Widget.Get_Snapshot (Inherited)
Gtk.Widget.Get_State (Inherited)
Gtk.Widget.Get_Style (Inherited)
Gtk.Widget.Get_Tooltip_Markup (Inherited)
Gtk.Widget.Get_Tooltip_Text (Inherited)
Gtk.Widget.Get_Tooltip_Window (Inherited)
Gtk.Widget.Get_Toplevel (Inherited)
Gtk.Widget.Get_Visual (Inherited)
Gtk.Widget.Get_Window (Inherited)
Gtk.Widget.Grab_Default (Inherited)
Gtk.Widget.Grab_Focus (Inherited)
Gtk.Widget.Has_Screen (Inherited)
Gtk.Widget.Hide (Inherited)
Gtk.Widget.Hide_All (Inherited)
Gtk.Widget.Input_Shape_Combine_Mask (Inherited)
Gtk.Widget.Intersect (Inherited)
Gtk.Widget.Is_Ancestor (Inherited)
Gtk.Widget.Is_Composited (Inherited)
Gtk.Widget.Is_Focus (Inherited)
Gtk.Widget.Keynav_Failed (Inherited)
Gtk.Widget.List_Mnemonic_Labels (Inherited)
Gtk.Widget.Map (Inherited)
Gtk.Widget.Mnemonic_Activate (Inherited)
Gtk.Widget.Modify_Base (Inherited)
Gtk.Widget.Modify_Bg (Inherited)
Gtk.Widget.Modify_Cursor (Inherited)
Gtk.Widget.Modify_Fg (Inherited)
Gtk.Widget.Modify_Font (Inherited)
Gtk.Widget.Modify_Text (Inherited)
Gtk.Widget.Path (Inherited)
Gtk.Widget.Path_Reversed (Inherited)
Gtk.Widget.Queue_Clear (Inherited)
Gtk.Widget.Queue_Clear_Area (Inherited)
Gtk.Widget.Queue_Draw (Inherited)
Gtk.Widget.Queue_Draw_Area (Inherited)
Gtk.Widget.Queue_Resize (Inherited)
Gtk.Widget.Queue_Resize_No_Redraw (Inherited)
Gtk.Widget.Realize (Inherited)
Gtk.Widget.Region_Intersect (Inherited)
Gtk.Widget.Remove_Accelerator (Inherited)
Gtk.Widget.Remove_Mnemonic_Label (Inherited)
Gtk.Widget.Render_Icon (Inherited)
Gtk.Widget.Reparent (Inherited)
Gtk.Widget.Reset_Rc_Styles (Inherited)
Gtk.Widget.Reset_Shapes (Inherited)
Gtk.Widget.Restore_Default_Style (Inherited)
Gtk.Widget.Send_Expose (Inherited)
Gtk.Widget.Set_Accel_Path (Inherited)
Gtk.Widget.Set_App_Paintable (Inherited)
Gtk.Widget.Set_Child_Visible (Inherited)
Gtk.Widget.Set_Colormap (Inherited)
Gtk.Widget.Set_Composite_Name (Inherited)
Gtk.Widget.Set_Direction (Inherited)
Gtk.Widget.Set_Double_Buffered (Inherited)
Gtk.Widget.Set_Events (Inherited)
Gtk.Widget.Set_Extension_Events (Inherited)
Gtk.Widget.Set_Flags (Inherited)
Gtk.Widget.Set_Has_Tooltip (Inherited)
Gtk.Widget.Set_Name (Inherited)
Gtk.Widget.Set_No_Show_All (Inherited)
Gtk.Widget.Set_Parent (Inherited)
Gtk.Widget.Set_Parent_Window (Inherited)
Gtk.Widget.Set_Redraw_On_Allocate (Inherited)
Gtk.Widget.Set_Scroll_Adjustments (Inherited)
Gtk.Widget.Set_Sensitive (Inherited)
Gtk.Widget.Set_Size_Request (Inherited)
Gtk.Widget.Set_State (Inherited)
Gtk.Widget.Set_Style (Inherited)
Gtk.Widget.Set_Tooltip_Markup (Inherited)
Gtk.Widget.Set_Tooltip_Text (Inherited)
Gtk.Widget.Set_Tooltip_Window (Inherited)
Gtk.Widget.Set_UPosition (Inherited)
Gtk.Widget.Set_USize (Inherited)
Gtk.Widget.Set_Window (Inherited)
Gtk.Widget.Shape_Combine_Mask (Inherited)
Gtk.Widget.Show (Inherited)
Gtk.Widget.Show_All (Inherited)
Gtk.Widget.Show_Now (Inherited)
Gtk.Widget.Size_Allocate (Inherited)
Gtk.Widget.Size_Request (Inherited)
Gtk.Widget.Style_Get_Property (Inherited)
Gtk.Widget.Thaw_Child_Notify (Inherited)
Gtk.Widget.Trigger_Tooltip_Query (Inherited)
Gtk.Widget.Unmap (Inherited)
Gtk.Widget.Unrealize (Inherited)
Gtk.Widget.Unset_Flags (Inherited)
Item_Activated
Path_Is_Selected
Scroll_To_Path
Set_Column_Spacing
Set_Drag_Dest_Item
Set_Item_Width
Set_Markup_Column
Set_Orientation
Set_Pixbuf_Column
Set_Reorderable
Set_Row_Spacing
Set_Selection_Mode
Set_Text_Column
Set_Tooltip_Cell
Set_Tooltip_Column
Set_Tooltip_Item
Unselect_All
Unselect_Path
Unset_Model_Drag_Dest
Unset_Model_Drag_Source

Types

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

Constants & Global variables

Column_Spacing_Property (Glib.Properties.Property_Int)

Column_Spacing_Property : constant Glib.Properties.Property_Int;

Item_Width_Property (Glib.Properties.Property_Int)

Item_Width_Property     : constant Glib.Properties.Property_Int;

Markup_Column_Property (Glib.Properties.Property_Int)

Markup_Column_Property  : constant Glib.Properties.Property_Int;

Pixbuf_Column_Property (Glib.Properties.Property_Int)

Pixbuf_Column_Property  : constant Glib.Properties.Property_Int;

Reorderable_Property (Glib.Properties.Property_Boolean)

Reorderable_Property    : constant Glib.Properties.Property_Boolean;

Row_Spacing_Property (Glib.Properties.Property_Int)

Row_Spacing_Property    : constant Glib.Properties.Property_Int;
Selection_Mode_Property : constant Glib.Properties.Property_Enum;

Spacing_Property (Glib.Properties.Property_Int)

Spacing_Property        : constant Glib.Properties.Property_Int;
Selection_Mode_Property : constant Glib.Properties.Property_Enum;

Text_Column_Property (Glib.Properties.Property_Int)

Text_Column_Property    : constant Glib.Properties.Property_Int;

Tooltip_Column_Property (Glib.Properties.Property_Int)

Tooltip_Column_Property : constant Glib.Properties.Property_Int;

Selection_Box_Alpha_Property (Glib.Properties.Property_Uchar)

Selection_Box_Alpha_Property : constant Glib.Properties.Property_Uchar;

Selection_Box_Color_Property (Gdk.Color.Property_Gdk_Color)

Selection_Box_Color_Property : constant Gdk.Color.Property_Gdk_Color;

Signal_Activate_Cursor_Item (Glib.Signal_Name)

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

Signal_Item_Activated (Glib.Signal_Name)

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

Signal_Move_Cursor (Glib.Signal_Name)

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

Signal_Select_All (Glib.Signal_Name)

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

Signal_Select_Cursor_Item (Glib.Signal_Name)

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

Signal_Selection_Changed (Glib.Signal_Name)

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

Signal_Set_Scroll_Adjustments (Glib.Signal_Name)

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

Signal_Toggle_Cursor_Item (Glib.Signal_Name)

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

Signal_Unselect_All (Glib.Signal_Name)

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

Subprograms & Entries

Gtk_New

procedure Gtk_New    
(Icon_View: out Gtk_Icon_View);

Initialize

procedure Initialize 
(Icon_View: access Gtk_Icon_View_Record'Class);
Creates a new Gtk_Icon_View widget

Gtk_New_With_Model

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

Initialize_With_Model

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

function Get_Type return GType;
Return the internal type used for a Gtk_Icon_View.

Set_Column_Spacing

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

Get_Column_Spacing

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

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

Get_Columns

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

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

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

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

Get_Item_Width

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

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

Get_Margin

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

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

Get_Orientation

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

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

Get_Reorderable

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

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

Get_Row_Spacing

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

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

Get_Spacing

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

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

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

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

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

Get_Tooltip_Column

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

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

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

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

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

Get_Model

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

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

Get_Text_Column

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

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

Get_Pixbuf_Column

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

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

Get_Markup_Column

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

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

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

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

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

Get_Selection_Mode

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

procedure Select_All   
(Icon_View: access Gtk_Icon_View_Record);

Unselect_All

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

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

Unselect_Path

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

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

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

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

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

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

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

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

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

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

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.

-

Converts to and from the Gtk_Cell_Layout interface