GTK+ Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# GtkEventBox

## Name

GtkEventBox -- a widget used to catch events for widgets which do not have their own window.

## Synopsis

    #include <gtk/gtk.h>

    struct      GtkEventBox;
    GtkWidget*  gtk_event_box_new               (void);

## Object Hierarchy

      GObject
       +----GtkObject
             +----GtkWidget
                   +----GtkContainer
                         +----GtkBin
                               +----GtkEventBox

## Description

The GtkEventBox widget is a subclass of GtkBin which also has its own window. It is useful since it allows you to catch events for widgets which do not have their own window.

## Details

### struct GtkEventBox

    struct GtkEventBox;

The GtkEventBox struct contains private data only, and should be accessed using the functions below.

### gtk_event_box_new ()

    GtkWidget*  gtk_event_box_new               (void);

Creates a new GtkEventBox.

Returns : | a new GtkEventBox.

<<< Previous Page | Home | Up | Next Page >>>
GtkDrawingArea | GtkHandleBox