[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Gtk.Event`_`Box

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.

- Gtk.Event_Box Widget Hierarchy
- Gtk.Event_Box Subprograms

## Widget Hierarchy

    Gtk_Object                    (see section Package Gtk.Object)
       \___ Gtk_Widget            (see section Package Gtk.Widget)
          \___ Gtk_Container      (see section Package Gtk.Container)
             \___ Gtk_Bin         (see section Package Gtk.Bin)
                \___ Gtk_Event_Box (see section Package Gtk.Event_Box)

## Subprograms

    procedure Gtk_New
      (Event_Box          : out    Gtk_Event_Box);

| Create a new box. The box's child can then be set using the Gtk.Container.Add function.

    function Get_Type              return Gtk.Gtk_Type;

| Return the internal value associated with a Gtk_Event_Box.

[Contents] [Back] [Prev] [Up] [Next] [Forward]