Efl.Ui.Win.exit_on_close

Description

Enable quitting the main loop when this window is closed.

When set, the window's loop object will exit using the passed exit code if the window is closed.

The Eina.Value passed should be EMPTY to unset this state or an int value to be used as the exit code.

Note this is different from Efl.Ui.Win.exit_on_all_windows_closed which exits when ALL windows are closed.

Since 1.22

Values

  • exit_code - The exit code to use when exiting

Signature

@property exit_on_close {
    get {}
    set {}
    values {
        exit_code: const(any_value_ref);
    }
}

C signature

const Eina_Value *efl_ui_win_exit_on_close_get(const Eo *obj);
void efl_ui_win_exit_on_close_set(Eo *obj, const Eina_Value *exit_code);

Implemented by