~~Title: Efl.Ui.Win.exit_on_close~~
====== 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 %%[[:develop:api:eina:value|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 %%[[:develop:api:efl:ui:win:property:exit_on_all_windows_closed|Efl.Ui.Win.exit_on_all_windows_closed]]%% which exits when ALL windows are closed.%%
//Since 1.22//
{{page>:develop:api-include:efl:ui:win:property:exit_on_close:description&nouser&nolink&nodate}}
===== 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 =====
* [[:develop:api:efl:ui:win:property:exit_on_close|Efl.Ui.Win.exit_on_close]]