Gtk.Combo_Box.Set_Row_Separator_Func_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

Gtk_Tree_View_Row_Separator_Func

type Gtk_Tree_View_Row_Separator_Func is access function
  (Model : Gtk.Tree_Model.Gtk_Tree_Model;
   Iter  : Gtk.Tree_Model.Gtk_Tree_Iter;
   Data  : User_Data_Type) return Boolean;

Function type for determining whether the row pointed to by Iter should be rendered as a separator. A common way to implement this is to have a boolean column in the model, whose values the Gtk.Tree_View.Gtk_Tree_View_Row_Separator_Func returns.

Parameters
Model

the Gtk.Tree_Model.Gtk_Tree_Model

Iter

a Gtk.Tree_Model.Gtk_Tree_Iter pointing at a row in Model

Data

user data

Return Value

True if the row is a separator

Set_Row_Separator_Func

procedure Set_Row_Separator_Func
   (Combo_Box : not null access Gtk.Combo_Box.Gtk_Combo_Box_Record'Class;
    Func      : Gtk_Tree_View_Row_Separator_Func;
    Data      : User_Data_Type)

Sets the row separator function, which is used to determine whether a row should be drawn as a separator. If the row separator function is null, no separators are drawn. This is the default value. Since: gtk+ 2.6

Parameters
Combo_Box
Func

a Gtk.Tree_View.Gtk_Tree_View_Row_Separator_Func

Data

user data to pass to Func, or null

User_Data_Type

type User_Data_Type (<>) is private;