Toc Gallery Index Tree Gtk.Event_Box

Hierarchy

Description

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.

Types

  • type Gtk_Event_Box is access all Gtk_Event_Box_Record'Class;
  • type Gtk_Event_Box_Record is new Gtk.Bin.Gtk_Bin_Record with private;

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.
  • procedure Initialize (Event_Box : access Gtk_Event_Box_Record'Class);
    Internal initialization function. See the section "Creating your own widgets" in the documentation.
  • function Get_Type return Gtk.Gtk_Type;
    Return the internal value associated with a Gtk_Event_Box.
  • procedure Set_Visible_Window (Event_Box : access Gtk_Event_Box_Record; Visible_Window : Boolean);
    function Get_Visible_Window (Event_Box : access Gtk_Event_Box_Record) return Boolean;
    Set whether the event box uses a visible or invisible child window. The default is to use visible windows Except if you want to explicitly change the background, or explicitly draw on it, you should make the event box invisible.
  • procedure Set_Above_Child (Event_Box : access Gtk_Event_Box_Record; Above_Child : Boolean);
    function Get_Above_Child (Event_Box : access Gtk_Event_Box_Record) return Boolean;
    Set whether the event box window is positioned above the windows of its child, as opposed to below it. If the window is above, all events inside the event box will go to the event box. If the window is below, events in windows of child widgets will first go to that widget, and then to its parent. The default is to keep the window below the child.

Signals

Properties

  • Above_Child_Property
    Boolean
    Whether the event-trapping window of the eventbox is above the
  • Visible_Window_Property
    Boolean
    Whether the event box is visible, as opposed to invisible and

Alphabetical Index