GtkEventBox

GtkEventBox

Widget used to capture events for widgets with no GdkWindow.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkEventBox

Direct subclasses

None.

Description

The GtkEventBox is used to capture events for widgets that do not have their own window.

Most widgets inherit the window property from GtkWidget, which makes it possible to use those widgets interactively. However, some widgets are flagged as GTK_NO_WINDOW at source, because there is rarely a need to capture events crossing those widgets.

The following widgets and their descendants fall into this category and need to be packed into an event box before they can be made to respond to user activity:
GtkAlignment
GtkArrow
GtkBox
GtkCheckButton
GtkFrame
GtkImage
GtkItem
GtkLabel
GtkPacker
GtkPixmap
GtkScale
GtkScrolledWindow
GtkSeparator
GtkTable
GtkToggleButton - alters according to its draw indicator status!

Constructor

GtkEventBox (void);
-- Creates a means of capturing events where there is none.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.