Widget.addOnWindowState

The ::window-state-event will be emitted when the state of the toplevel window associated to the widget changes.

To receive this signal the gdk.Window associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.

  1. gulong addOnWindowState(bool delegate(GdkEventWindowState*, Widget) dlg, ConnectFlags connectFlags)
  2. gulong addOnWindowState(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)
    class Widget
    gulong
    addOnWindowState
    (
    bool delegate dlg
    ,
    ConnectFlags connectFlags = cast(ConnectFlags)0
    )

Return Value

Type: gulong

TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.