6.4. Structure of Widgets

The following modules provide classes to wrap the raw Gtk+ function calls. Here are the widget classes contained in each module:

Practically, each widget class is composed of:

Here is a diagram of the structure (- for methods, + for sub-objects)

        - coerce : widget
        - as_widget : Gtk.widget obj
        - destroy : unit -> unit
        - get_oid : int
        - ...
        + connect : mywidget_signals
        |   - after
        |   - signal_name : callback:(... -> ...) -> GtkSignal.id
        + misc : misc_ops
        |   - show, hide, disconnect, ...
        |   + connect : misc_signals
        + drag : drag_ops
        |   - ...
        |   + connect : drag_signals
        + event : event_ops
        |   - add, ...
        |   + connect : event_signals