_
BoxThis 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.
Widget Hierarchy |
---|
GObject (see Package_Glib.Object) Gtk_Object (see Package_Gtk.Object) \___ Gtk_Widget (see Package_Gtk.Widget) \___ Gtk_Container (see Package_Gtk.Container) \___ Gtk_Bin (see Package_Gtk.Bin) \___ Gtk_Event_Box (see 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. |
procedure Set_Visible_Window (Event_Box : access Gtk_Event_Box_Record; Visible_Window : 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. |
function Get_Visible_Window (Event_Box : access Gtk_Event_Box_Record) return Boolean; |
Returns whether the event box has a visible window |
procedure Set_Above_Child (Event_Box : access Gtk_Event_Box_Record; Above_Child : 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. |
function Get_Above_Child (Event_Box : access Gtk_Event_Box_Record) return Boolean; |
Returns whether the event window is positioned above the windows of its children. |