package Implements_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Event_Box_Record, Gtk_Event_Box);
type Gtk_Event_Box_Record is new Gtk_Bin_Record with null record;
type Gtk_Event_Box is access all Gtk_Event_Box_Record'Class;
Above_Child_Property : constant Glib.Properties.Property_Boolean;
Visible_Window_Property : constant Glib.Properties.Property_Boolean;
procedure Gtk_New
( | Event_Box | : out Gtk_Event_Box); |
procedure Initialize
( | Event_Box | : access Gtk_Event_Box_Record'Class); |
function Get_Type return Glib.GType;
function Get_Above_Child
( | Event_Box | : access Gtk_Event_Box_Record) return Boolean; |
procedure Set_Above_Child
( | Event_Box | : access Gtk_Event_Box_Record; |
Above_Child | : Boolean); |
function Get_Visible_Window
( | Event_Box | : access Gtk_Event_Box_Record) return Boolean; |
procedure Set_Visible_Window
( | Event_Box | : access Gtk_Event_Box_Record; |
Visible_Window | : Boolean); |
function "+"
( | Widget | : access Gtk_Event_Box_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Event_Box renames Implements_Buildable.To_Object; |
This widget is a container that catches events for its child when its child does not have its own window (like a Gtk_Scrolled_Window or a Gtk_Label for instance). Some widgets in GtkAda do not have their own window, and thus can not directly get events from the server. The Gtk_Event_Box widget can be used to force its child to receive events anyway.
For instance, this widget is used internally in a Gtk_Combo_Box so that the application can change the cursor when the mouse is in the popup window. In that case, it contains a frame, that itself contains the scrolled window of the popup.