The kind of widget that can be added to a GtkListBox.
[classGtk.ListBox] will automatically wrap its children in a GtkListboxRow when necessary.
<group>Trees and Lists</group> <gtkada_demo>create_list_box_controls.adb</gtkada_demo>
function "+"
(Widget : access Gtk_List_Box_Row_Record'Class)
return Gtk.Accessible.Gtk_Accessible
function "+"
(Widget : access Gtk_List_Box_Row_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "+"
(Widget : access Gtk_List_Box_Row_Record'Class)
return Gtk.Constraint_Target.Gtk_Constraint_Target
function "-"
(Interf : Gtk.Accessible.Gtk_Accessible)
return Gtk_List_Box_Row
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_List_Box_Row
function "-"
(Interf : Gtk.Constraint_Target.Gtk_Constraint_Target)
return Gtk_List_Box_Row
Activatable_Property : constant Glib.Properties.Property_Boolean;
Determines whether the ::row-activated signal will be emitted for this row.
procedure Announce
(Self : not null access Gtk_List_Box_Row_Record;
Message : UTF8_String;
Priority : Gtk.Accessible.Gtk_Accessible_Announcement_Priority)
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
type Cb_Gtk_List_Box_Row_Void is not null access procedure
(Self : access Gtk_List_Box_Row_Record'Class);
procedure Changed (Self : not null access Gtk_List_Box_Row_Record)
Marks Row as changed, causing any state that depends on this to be updated. This affects sorting, filtering and headers. Note that calls to this method must be in sync with the data used for the row functions. For instance, if the list is mirroring some external data set, and two rows changed in the external data set then when you call Gtk.List_Box_Row.Changed on the first row the sort function must only read the new data for the first of the two changed rows, otherwise the resorting of the rows will be wrong. This generally means that if you don't fully control the data model you have to duplicate the data that affects the listbox row functions into the row widgets themselves. Another alternative is to call [methodGtk.ListBox.invalidate_sort] on any model change, but that is more expensive.
Child_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Widget.Gtk_Widget The child widget.
function Convert (R : Gtk.List_Box_Row.Gtk_List_Box_Row) return System.Address
function Convert (R : System.Address) return Gtk.List_Box_Row.Gtk_List_Box_Row
function Get_Accessible_Id
(Self : not null access Gtk_List_Box_Row_Record) return UTF8_String
function Get_Accessible_Parent
(Self : not null access Gtk_List_Box_Row_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Accessible_Role
(Self : not null access Gtk_List_Box_Row_Record)
return Gtk.Accessible.Gtk_Accessible_Role
function Get_Activatable
(Self : not null access Gtk_List_Box_Row_Record) return Boolean
Gets whether the row is activatable.
True if the row is activatable
function Get_At_Context
(Self : not null access Gtk_List_Box_Row_Record)
return Gtk.Atcontext.Gtk_Atcontext
function Get_Bounds
(Self : not null access Gtk_List_Box_Row_Record;
X : out Glib.Gint;
Y : out Glib.Gint;
Width : out Glib.Gint;
Height : out Glib.Gint) return Boolean
function Get_Child
(Self : not null access Gtk_List_Box_Row_Record)
return Gtk.Widget.Gtk_Widget
Gets the child widget of Row.
the child widget of Row. Has transfer-ownership='none'.
function Get_First_Accessible_Child
(Self : not null access Gtk_List_Box_Row_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Header
(Self : not null access Gtk_List_Box_Row_Record)
return Gtk.Widget.Gtk_Widget
Returns the current header of the Row. This can be used in a [callbackGtk.ListBoxUpdateHeaderFunc] to see if there is a header set already, and if so to update the state of it.
the current header. Has transfer-ownership='none'.
function Get_Index
(Self : not null access Gtk_List_Box_Row_Record) return Glib.Gint
Gets the current index of the Row in its GtkListBox container.
the index of the Row, or -1 if the Row is not in a listbox
function Get_Next_Accessible_Sibling
(Self : not null access Gtk_List_Box_Row_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Platform_State
(Self : not null access Gtk_List_Box_Row_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State) return Boolean
function Get_Selectable
(Self : not null access Gtk_List_Box_Row_Record) return Boolean
Gets whether the row can be selected.
True if the row is selectable
function Get_Type return Glib.GType
type Gtk_List_Box_Row is access all Gtk_List_Box_Row_Record'Class;
function Gtk_List_Box_Row_New return Gtk_List_Box_Row
Creates a new GtkListBoxRow.
type Gtk_List_Box_Row_Record is new Gtk_Widget_Record with null record;
procedure Gtk_New (Self : out Gtk_List_Box_Row)
Creates a new GtkListBoxRow. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
package Implements_Gtk_Accessible is new Glib.Types.Implements
(Gtk.Accessible.Gtk_Accessible, Gtk_List_Box_Row_Record, Gtk_List_Box_Row);
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_List_Box_Row_Record, Gtk_List_Box_Row);
package Implements_Gtk_Constraint_Target is new Glib.Types.Implements
(Gtk.Constraint_Target.Gtk_Constraint_Target, Gtk_List_Box_Row_Record, Gtk_List_Box_Row);
procedure Initialize
(Self : not null access Gtk_List_Box_Row_Record'Class)
Creates a new GtkListBoxRow. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
function Is_Selected
(Self : not null access Gtk_List_Box_Row_Record) return Boolean
Returns whether the child is currently selected in its GtkListBox container.
True if Row is selected
package List_Box_Row_List is new Generic_List (Gtk.List_Box_Row.Gtk_List_Box_Row);
procedure On_Activate
(Self : not null access Gtk_List_Box_Row_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
This is a keybinding signal, which will cause this row to be activated.
If you want to be notified when the user activates a row (by key or not), use the [signalGtk.ListBox::row-activated] signal on the row's parent GtkListBox.
procedure On_Activate
(Self : not null access Gtk_List_Box_Row_Record;
Call : Cb_Gtk_List_Box_Row_Void;
After : Boolean := False)
This is a keybinding signal, which will cause this row to be activated.
If you want to be notified when the user activates a row (by key or not), use the [signalGtk.ListBox::row-activated] signal on the row's parent GtkListBox.
procedure Reset_Property
(Self : not null access Gtk_List_Box_Row_Record;
Property : Gtk.Accessible.Gtk_Accessible_Property)
procedure Reset_Relation
(Self : not null access Gtk_List_Box_Row_Record;
Relation : Gtk.Accessible.Gtk_Accessible_Relation)
procedure Reset_State
(Self : not null access Gtk_List_Box_Row_Record;
State : Gtk.Accessible.Gtk_Accessible_State)
Selectable_Property : constant Glib.Properties.Property_Boolean;
Determines whether this row can be selected.
procedure Set_Accessible_Parent
(Self : not null access Gtk_List_Box_Row_Record;
Parent : Gtk.Accessible.Gtk_Accessible;
Next_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Set_Activatable
(Self : not null access Gtk_List_Box_Row_Record;
Activatable : Boolean)
Set whether the row is activatable.
True to mark the row as activatable
procedure Set_Child
(Self : not null access Gtk_List_Box_Row_Record;
Child : access Gtk.Widget.Gtk_Widget_Record'Class)
Sets the child widget of Self.
the child widget
procedure Set_Header
(Self : not null access Gtk_List_Box_Row_Record;
Header : access Gtk.Widget.Gtk_Widget_Record'Class)
Sets the current header of the Row. This is only allowed to be called from a [callbackGtk.ListBoxUpdateHeaderFunc]. It will replace any existing header in the row, and be shown in front of the row in the listbox.
the header
procedure Set_Selectable
(Self : not null access Gtk_List_Box_Row_Record;
Selectable : Boolean)
Set whether the row can be selected.
True to mark the row as selectable
Signal_Activate : constant Glib.Signal_Name := "activate";
This is a keybinding signal, which will cause this row to be activated.
If you want to be notified when the user activates a row (by key or not), use the [signalGtk.ListBox::row-activated] signal on the row's parent GtkListBox.
procedure Update_Next_Accessible_Sibling
(Self : not null access Gtk_List_Box_Row_Record;
New_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Update_Platform_State
(Self : not null access Gtk_List_Box_Row_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State)