diff options
author | Daniel Zaoui <daniel.zaoui@samsung.com> | 2013-04-28 12:58:28 +0300 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@samsung.com> | 2013-04-28 13:55:41 +0300 |
commit | 7ca91290f1352ba61e8b6d92e04abb54e72521c9 (patch) | |
tree | 82b37426ffbb3343467c47509ebc58a3d560c7e3 /src/lib/elm_panel.h | |
parent | 84eabc932d1806bc36983db68533cc1af3093b50 (diff) | |
download | elementary-7ca91290f1352ba61e8b6d92e04abb54e72521c9.tar.gz |
Elementary: Split headers for Map, Menu, Panel, Panes, Photocam, Plug,
Prefs, ProgressBar, Radio. Route, Segment Control, Separator, Slider,
Slideshow, Spinner, Systray, Table, Thumb, Video, Web.
Diffstat (limited to 'src/lib/elm_panel.h')
-rw-r--r-- | src/lib/elm_panel.h | 160 |
1 files changed, 7 insertions, 153 deletions
diff --git a/src/lib/elm_panel.h b/src/lib/elm_panel.h index bd70b1f8d..749dc4413 100644 --- a/src/lib/elm_panel.h +++ b/src/lib/elm_panel.h @@ -28,159 +28,13 @@ * @{ */ - - -#define ELM_OBJ_PANEL_CLASS elm_obj_panel_class_get() - -const Eo_Class *elm_obj_panel_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_PANEL_BASE_ID; - -enum -{ - ELM_OBJ_PANEL_SUB_ID_ORIENT_SET, - ELM_OBJ_PANEL_SUB_ID_ORIENT_GET, - ELM_OBJ_PANEL_SUB_ID_HIDDEN_SET, - ELM_OBJ_PANEL_SUB_ID_HIDDEN_GET, - ELM_OBJ_PANEL_SUB_ID_TOGGLE, - ELM_OBJ_PANEL_SUB_ID_LAST -}; - -#define ELM_OBJ_PANEL_ID(sub_id) (ELM_OBJ_PANEL_BASE_ID + sub_id) - - -/** - * @def elm_obj_panel_orient_set - * @since 1.8 - * - * @brief Sets the orientation of the panel - * - * @param[in] orient - * - * @see elm_panel_orient_set - */ -#define elm_obj_panel_orient_set(orient) ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_ORIENT_SET), EO_TYPECHECK(Elm_Panel_Orient, orient) - -/** - * @def elm_obj_panel_orient_get - * @since 1.8 - * - * @brief Get the orientation of the panel. - * - * @param[out] ret - * - * @see elm_panel_orient_get - */ -#define elm_obj_panel_orient_get(ret) ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_ORIENT_GET), EO_TYPECHECK(Elm_Panel_Orient *, ret) - -/** - * @def elm_obj_panel_hidden_set - * @since 1.8 - * - * @brief Set the state of the panel. - * - * @param[in] hidden - * - * @see elm_panel_hidden_set - */ -#define elm_obj_panel_hidden_set(hidden) ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_HIDDEN_SET), EO_TYPECHECK(Eina_Bool, hidden) - -/** - * @def elm_obj_panel_hidden_get - * @since 1.8 - * - * @brief Get the state of the panel. - * - * @param[out] ret - * - * @see elm_panel_hidden_get - */ -#define elm_obj_panel_hidden_get(ret) ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_HIDDEN_GET), EO_TYPECHECK(Eina_Bool *, ret) - -/** - * @def elm_obj_panel_toggle - * @since 1.8 - * - * @brief Toggle the hidden state of the panel from code - * - * - * @see elm_panel_toggle - */ -#define elm_obj_panel_toggle() ELM_OBJ_PANEL_ID(ELM_OBJ_PANEL_SUB_ID_TOGGLE) - -typedef enum -{ - ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */ - ELM_PANEL_ORIENT_BOTTOM, /**< Panel (dis)appears from the bottom */ - ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */ - ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */ -} Elm_Panel_Orient; - -/** - * @brief Adds a panel object - * - * @param parent The parent object - * - * @return The panel object, or NULL on failure - * - * @ingroup Panel - */ -EAPI Evas_Object *elm_panel_add(Evas_Object *parent); - -/** - * @brief Sets the orientation of the panel - * - * @param obj The panel object - * @param orient The panel orientation. Can be one of the following: - * @li ELM_PANEL_ORIENT_TOP - * @li ELM_PANEL_ORIENT_LEFT - * @li ELM_PANEL_ORIENT_RIGHT - * - * Sets from where the panel will (dis)appear. - * - * @ingroup Panel - */ -EAPI void elm_panel_orient_set(Evas_Object *obj, Elm_Panel_Orient orient); - -/** - * @brief Get the orientation of the panel. - * - * @param obj The panel object - * @return The Elm_Panel_Orient, or ELM_PANEL_ORIENT_LEFT on failure. - * - * @ingroup Panel - */ -EAPI Elm_Panel_Orient elm_panel_orient_get(const Evas_Object *obj); - -/** - * @brief Set the state of the panel. - * - * @param obj The panel object - * @param hidden If true, the panel will run the animation to disappear. - * - * @ingroup Panel - */ -EAPI void elm_panel_hidden_set(Evas_Object *obj, Eina_Bool hidden); - -/** - * @brief Get the state of the panel. - * - * @param obj The panel object - * @return EINA_TRUE if it is hidden state - * - * @ingroup Panel - */ -EAPI Eina_Bool elm_panel_hidden_get(const Evas_Object *obj); - -/** - * @brief Toggle the hidden state of the panel from code - * - * @param obj The panel object - * - * @ingroup Panel - */ -EAPI void elm_panel_toggle(Evas_Object *obj); - +#include "elm_panel_common.h" +#ifdef EFL_EO_API_SUPPORT +#include "elm_panel_eo.h" +#endif +#ifndef EFL_NOLEGACY_API_SUPPORT +#include "elm_panel_legacy.h" +#endif /** * @} */ |