2019-03-07 07:57:03 -08:00
|
|
|
#ifndef ELM_WIN_EO_H
|
|
|
|
# define ELM_WIN_EO_H
|
|
|
|
|
2013-04-29 00:03:21 -07:00
|
|
|
/**
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Win
|
2013-04-29 00:03:21 -07:00
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
2014-02-10 05:09:45 -08:00
|
|
|
|
2016-06-07 07:41:48 -07:00
|
|
|
#include "efl_ui_win.eo.h"
|
2014-02-18 06:40:48 -08:00
|
|
|
|
2017-11-09 23:50:01 -08:00
|
|
|
EAPI void elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel);
|
|
|
|
EAPI Eina_Bool elm_win_autodel_get(const Evas_Object *obj);
|
efl: remove EFL_EO_API_SUPPORT macro
Summary:
Since we're now going to be shipping some eo classes as stable,
there is no point in keeping the eo api behind a macro, and it
should be enabled by default. Another case is beta classes, but
those are behind the EFL_BETA_API_SUPPORT guard.
This also changes includes around the place where things are
clearly broken (such as an included header needing something
from another header but that other header being guarded, notably
efl_ui_widget.h needing focus manager but focus manager being
behind beta in Elementary.h)
Reviewers: zmike, cedric, bu5hm4n, stefan_schmidt, segfaultxavi
Reviewed By: cedric, segfaultxavi
Subscribers: segfaultxavi, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8322
2019-03-18 04:13:41 -07:00
|
|
|
#ifdef EFL_BETA_API_SUPPORT
|
2017-11-09 23:50:01 -08:00
|
|
|
/**
|
|
|
|
* @brief Set the window's autodel state.
|
|
|
|
*
|
|
|
|
* When closing the window in any way outside of the program control, like
|
|
|
|
* pressing the X button in the titlebar or using a command from the Window
|
|
|
|
* Manager, a "delete,request" signal is emitted to indicate that this event
|
|
|
|
* occurred and the developer can take any action, which may include, or not,
|
|
|
|
* destroying the window object.
|
|
|
|
*
|
|
|
|
* When the @c autodel parameter is set, the window will be automatically
|
|
|
|
* destroyed when this event occurs, after the signal is emitted. If @c autodel
|
|
|
|
* is @c false, then the window will not be destroyed and is up to the program
|
|
|
|
* to do so when it's required.
|
|
|
|
*
|
|
|
|
* @param[in] obj The object.
|
|
|
|
* @param[in] autodel If @c true, the window will automatically delete itself
|
|
|
|
* when closed.
|
|
|
|
*
|
|
|
|
* Note: This function is only available in C.
|
|
|
|
*
|
|
|
|
* @ingroup Efl_Ui_Win
|
|
|
|
*/
|
|
|
|
static inline void
|
|
|
|
efl_ui_win_autodel_set(Efl_Ui_Win *obj, Eina_Bool autodel)
|
|
|
|
{
|
|
|
|
elm_win_autodel_set(obj, autodel);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Get the window's autodel state.
|
|
|
|
*
|
|
|
|
* @param[in] obj The object.
|
|
|
|
*
|
|
|
|
* @return If @c true, the window will automatically delete itself when closed.
|
|
|
|
*
|
|
|
|
* Note: This function is only available in C.
|
|
|
|
*
|
|
|
|
* @ingroup Efl_Ui_Win
|
|
|
|
*/
|
|
|
|
static inline Eina_Bool
|
|
|
|
efl_ui_win_autodel_get(const Efl_Ui_Win *obj)
|
|
|
|
{
|
|
|
|
return elm_win_autodel_get(obj);
|
|
|
|
}
|
|
|
|
|
2014-02-18 06:40:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
2019-03-07 07:57:03 -08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|