Eolian: Eo header clean and legacy integration for:

Elementary Scrollable Interface
  Elementary Access
  Elementary Pan
  Elementary Client
  Elementary Client View
  Elementary Server
  Elementary Server View
  Elementary Layout
  Elementary Frame
  Elementary Hover
  Elementary ActionSlider
  Elementary Atspi Object
This commit is contained in:
Yossi Kantor 2014-04-08 17:57:32 +03:00 committed by Daniel Zaoui
parent ed6fb47ccc
commit 424f1b7ee0
17 changed files with 30 additions and 3260 deletions

View File

@ -2,3 +2,4 @@
/elm_intro.h
/*.eo.c
/*.eo.h
/*.eo.legacy.h

View File

@ -535,18 +535,22 @@ BUILT_SOURCES = \
elm_container.eo.h \
elm_layout.eo.c \
elm_layout.eo.h \
elm_layout.eo.legacy.h \
elm_interface_scrollable.eo.c \
elm_interface_scrollable.eo.h \
elm_pan.eo.c \
elm_pan.eo.h \
elm_frame.eo.c \
elm_frame.eo.h \
elm_frame.eo.legacy.h \
elm_hover.eo.c \
elm_hover.eo.h \
elm_hover.eo.legacy.h \
elm_access.eo.c \
elm_access.eo.h \
elm_actionslider.eo.c \
elm_actionslider.eo.h \
elm_actionslider.eo.legacy.h \
elm_app_client.eo.c \
elm_app_client.eo.h \
elm_app_client_view.eo.c \
@ -557,6 +561,7 @@ BUILT_SOURCES = \
elm_app_server_view.eo.h \
elm_atspi_app_object.eo.c \
elm_atspi_app_object.eo.h \
elm_atspi_app_object.eo.legacy.h \
elm_bg.eo.c \
elm_bg.eo.h \
elm_box.eo.c \
@ -876,5 +881,9 @@ nodist_includesunstable_HEADERS = \
elm_toolbar.eo.h \
elm_video.eo.h \
elm_web.eo.h \
elm_win.eo.h
elm_win.eo.h \
elm_layout.eo.legacy.h \
elm_frame.eo.legacy.h \
elm_hover.eo.legacy.h \
elm_actionslider.eo.legacy.h \
elm_atspi_app_object.eo.legacy.h

View File

@ -9,12 +9,6 @@
*
*/
#if 0
#define ELM_OBJ_ACCESS_CLASS elm_obj_access_class_get()
const Eo_Class *elm_obj_access_class_get(void) EINA_CONST;
#endif
#include "elm_access.eo.h"
enum _Elm_Access_Info_Type

View File

@ -1,124 +1 @@
#include "elm_actionslider.eo.h"
#if 0
#define ELM_OBJ_ACTIONSLIDER_CLASS elm_obj_actionslider_class_get()
const Eo_Class *elm_obj_actionslider_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_ACTIONSLIDER_BASE_ID;
enum
{
ELM_OBJ_ACTIONSLIDER_SUB_ID_INDICATOR_POS_SET,
ELM_OBJ_ACTIONSLIDER_SUB_ID_INDICATOR_POS_GET,
ELM_OBJ_ACTIONSLIDER_SUB_ID_MAGNET_POS_SET,
ELM_OBJ_ACTIONSLIDER_SUB_ID_MAGNET_POS_GET,
ELM_OBJ_ACTIONSLIDER_SUB_ID_ENABLED_POS_SET,
ELM_OBJ_ACTIONSLIDER_SUB_ID_ENABLED_POS_GET,
ELM_OBJ_ACTIONSLIDER_SUB_ID_SELECTED_LABEL_GET,
ELM_OBJ_ACTIONSLIDER_SUB_ID_LAST
};
#define ELM_OBJ_ACTIONSLIDER_ID(sub_id) (ELM_OBJ_ACTIONSLIDER_BASE_ID + sub_id)
/**
* @def elm_obj_actionslider_indicator_pos_set
* @since 1.8
*
* Set actionslider indicator position.
*
* @param[in] pos
*
* @see elm_actionslider_indicator_pos_set
*
* @ingroup Actionslider
*/
#define elm_obj_actionslider_indicator_pos_set(pos) ELM_OBJ_ACTIONSLIDER_ID(ELM_OBJ_ACTIONSLIDER_SUB_ID_INDICATOR_POS_SET), EO_TYPECHECK(Elm_Actionslider_Pos, pos)
/**
* @def elm_obj_actionslider_indicator_pos_get
* @since 1.8
*
* Get actionslider indicator position.
*
* @param[out] ret
*
* @see elm_actionslider_indicator_pos_get
*
* @ingroup Actionslider
*/
#define elm_obj_actionslider_indicator_pos_get(ret) ELM_OBJ_ACTIONSLIDER_ID(ELM_OBJ_ACTIONSLIDER_SUB_ID_INDICATOR_POS_GET), EO_TYPECHECK(Elm_Actionslider_Pos *, ret)
/**
* @def elm_obj_actionslider_magnet_pos_set
* @since 1.8
*
* Set actionslider magnet position. To make multiple positions magnets or
* them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
*
* @param[in] pos
*
* @see elm_actionslider_magnet_pos_set
*
* @ingroup Actionslider
*/
#define elm_obj_actionslider_magnet_pos_set(pos) ELM_OBJ_ACTIONSLIDER_ID(ELM_OBJ_ACTIONSLIDER_SUB_ID_MAGNET_POS_SET), EO_TYPECHECK(Elm_Actionslider_Pos, pos)
/**
* @def elm_obj_actionslider_magnet_pos_get
* @since 1.8
*
* Get actionslider magnet position.
*
* @param[out] ret
*
* @see elm_actionslider_magnet_pos_get
*
* @ingroup Actionslider
*/
#define elm_obj_actionslider_magnet_pos_get(ret) ELM_OBJ_ACTIONSLIDER_ID(ELM_OBJ_ACTIONSLIDER_SUB_ID_MAGNET_POS_GET), EO_TYPECHECK(Elm_Actionslider_Pos *, ret)
/**
* @def elm_obj_actionslider_enabled_pos_set
* @since 1.8
*
* Set actionslider enabled position. To set multiple positions as enabled or
* them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
*
* @param[in] pos
*
* @see elm_actionslider_enabled_pos_set
*
* @ingroup Actionslider
*/
#define elm_obj_actionslider_enabled_pos_set(pos) ELM_OBJ_ACTIONSLIDER_ID(ELM_OBJ_ACTIONSLIDER_SUB_ID_ENABLED_POS_SET), EO_TYPECHECK(Elm_Actionslider_Pos, pos)
/**
* @def elm_obj_actionslider_enabled_pos_get
* @since 1.8
*
* Get actionslider enabled position.
*
* @param[out] ret
*
* @see elm_actionslider_enabled_pos_get
*
* @ingroup Actionslider
*/
#define elm_obj_actionslider_enabled_pos_get(ret) ELM_OBJ_ACTIONSLIDER_ID(ELM_OBJ_ACTIONSLIDER_SUB_ID_ENABLED_POS_GET), EO_TYPECHECK(Elm_Actionslider_Pos *, ret)
/**
* @def elm_obj_actionslider_selected_label_get
* @since 1.8
*
* Get actionslider selected label.
*
* @param[out] ret
*
* @see elm_actionslider_selected_label_get
*
* @ingroup Actionslider
*/
#define elm_obj_actionslider_selected_label_get(ret) ELM_OBJ_ACTIONSLIDER_ID(ELM_OBJ_ACTIONSLIDER_SUB_ID_SELECTED_LABEL_GET), EO_TYPECHECK(const char **, ret)
#endif
#include "elm_actionslider.eo.h"

View File

@ -8,77 +8,4 @@
*/
EAPI Evas_Object *elm_actionslider_add(Evas_Object *parent);
/**
* Set actionslider indicator position.
*
* @param obj The actionslider object.
* @param pos The position of the indicator.
*
* @ingroup Actionslider
*/
EAPI void elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos);
/**
* Get actionslider indicator position.
*
* @param obj The actionslider object.
* @return The position of the indicator.
*
* @ingroup Actionslider
*/
EAPI Elm_Actionslider_Pos elm_actionslider_indicator_pos_get(const Evas_Object *obj);
/**
* Set actionslider magnet position. To make multiple positions magnets @c or
* them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
*
* @param obj The actionslider object.
* @param pos Bit mask indicating the magnet positions.
*
* @ingroup Actionslider
*/
EAPI void elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos);
/**
* Get actionslider magnet position.
*
* @param obj The actionslider object.
* @return The positions with magnet property.
*
* @ingroup Actionslider
*/
EAPI Elm_Actionslider_Pos elm_actionslider_magnet_pos_get(const Evas_Object *obj);
/**
* Set actionslider enabled position. To set multiple positions as enabled @c or
* them together(e.g.: ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
*
* @note All the positions are enabled by default.
*
* @param obj The actionslider object.
* @param pos Bit mask indicating the enabled positions.
*
* @ingroup Actionslider
*/
EAPI void elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos);
/**
* Get actionslider enabled position.
*
* @param obj The actionslider object.
* @return The enabled positions.
*
* @ingroup Actionslider
*/
EAPI Elm_Actionslider_Pos elm_actionslider_enabled_pos_get(const Evas_Object *obj);
/**
* Get actionslider selected label.
*
* @param obj The actionslider object
* @return The selected label
*
* @ingroup Actionslider
*/
EAPI const char *elm_actionslider_selected_label_get(const Evas_Object *obj);
#include "elm_actionslider.eo.legacy.h"

View File

@ -5,111 +5,4 @@ typedef Eldbus_Pending Elm_App_Client_Pending;
typedef void (*Elm_App_Client_Open_View_Cb)(void *data, Elm_App_Client_View *view, const char *error, const char *error_message);
#include "elm_app_client.eo.h"
#if 0
#define ELM_APP_CLIENT_CLASS elm_app_client_class_get()
const Eo_Class *elm_app_client_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_APP_CLIENT_BASE_ID;
enum
{
ELM_APP_CLIENT_SUB_ID_CONSTRUCTOR,
ELM_APP_CLIENT_SUB_ID_VIEW_OPEN,
ELM_APP_CLIENT_SUB_ID_VIEWS_GET,
ELM_APP_CLIENT_SUB_ID_VIEWS_ALL_CLOSE,
ELM_APP_CLIENT_SUB_ID_TERMINATE,
ELM_APP_CLIENT_SUB_ID_PACKAGE_GET,
ELM_APP_CLIENT_SUB_ID_VIEW_OPEN_CANCEL,
ELM_APP_CLIENT_SUB_ID_LAST
};
#define ELM_APP_CLIENT_ID(sub_id) (ELM_APP_CLIENT_BASE_ID + sub_id)
/**
* @def elm_app_client_constructor
* @since 1.8
*
* Class constructor of elm_app_client.
*
* @param[in] package of application
*/
#define elm_app_client_constructor(package) ELM_APP_CLIENT_ID(ELM_APP_CLIENT_SUB_ID_CONSTRUCTOR), EO_TYPECHECK(const char *, package)
/**
* @def elm_app_client_view_open
* @since 1.8
*
* Open a application view.
*
* @param[in] arg an array of<string,data> containing the arguments of view
* @param[in] view_open_cb callback to be called when view open
* @param[in] data calback user data
* @param[out] pending handler to cancel the view opening if it takes to long
*/
#define elm_app_client_view_open(args, view_open_cb, data, pending) ELM_APP_CLIENT_ID(ELM_APP_CLIENT_SUB_ID_VIEW_OPEN), EO_TYPECHECK(Eina_Value *, args), EO_TYPECHECK(Elm_App_Client_Open_View_Cb, view_open_cb), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_App_Client_Pending **, pending)
/**
* @def elm_app_client_views_get
* @since 1.8
*
* Return a iterator with all views of application.
*
* @param[out] ret the iterator with all views, must be freed after use
*/
#define elm_app_client_views_get(ret) ELM_APP_CLIENT_ID(ELM_APP_CLIENT_SUB_ID_VIEWS_GET), EO_TYPECHECK(Eina_Iterator **, ret)
/**
* @def elm_app_client_view_all_close
* @since 1.8
*
* Close all views of application.
*/
#define elm_app_client_view_all_close() ELM_APP_CLIENT_ID(ELM_APP_CLIENT_SUB_ID_VIEWS_ALL_CLOSE)
/**
* @def elm_app_client_terminate
* @since 1.8
*
* Terminate application.
*/
#define elm_app_client_terminate() ELM_APP_CLIENT_ID(ELM_APP_CLIENT_SUB_ID_TERMINATE)
/**
* @def elm_app_client_package_get
* @since 1.8
*
* Return the application package.
*
* @param[out] ret application package
*/
#define elm_app_client_package_get(ret) ELM_APP_CLIENT_ID(ELM_APP_CLIENT_SUB_ID_PACKAGE_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_app_client_view_open_cancel
* @since 1.8
*
* Cancel a pending elm_app_client_view_open().
*
* @param[in] pending the view open handler.
*/
#define elm_app_client_view_open_cancel(pending) ELM_APP_CLIENT_ID(ELM_APP_CLIENT_SUB_ID_VIEW_OPEN_CANCEL), EO_TYPECHECK(Elm_App_Client_Pending **, pending)
/**
* Events
*/
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_EV_VIEW_CREATED;
#define ELM_APP_CLIENT_EV_VIEW_CREATED (&(_ELM_APP_CLIENT_EV_VIEW_CREATED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_EV_VIEW_DELETED;
#define ELM_APP_CLIENT_EV_VIEW_DELETED (&(_ELM_APP_CLIENT_EV_VIEW_DELETED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_EV_VIEW_LIST_LOADED;
#define ELM_APP_CLIENT_EV_VIEW_LIST_LOADED (&(_ELM_APP_CLIENT_EV_VIEW_LIST_LOADED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_EV_TERMINATED;
#define ELM_APP_CLIENT_EV_TERMINATED (&(_ELM_APP_CLIENT_EV_TERMINATED))
#endif
#include "elm_app_client.eo.h"

View File

@ -1,199 +1,3 @@
typedef void *(*Elm_App_Client_View_Cb)(void *data, Elm_App_Client_View *view, const char *error, const char *error_message);
#include "elm_app_client_view.eo.h"
#if 0
#define ELM_APP_CLIENT_VIEW_CLASS elm_app_client_view_class_get()
const Eo_Class *elm_app_client_view_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_APP_CLIENT_VIEW_BASE_ID;
enum
{
ELM_APP_CLIENT_VIEW_SUB_ID_CONSTRUCTOR,
ELM_APP_CLIENT_VIEW_SUB_ID_CLOSE,
ELM_APP_CLIENT_VIEW_SUB_ID_PAUSE,
ELM_APP_CLIENT_VIEW_SUB_ID_RESUME,
ELM_APP_CLIENT_VIEW_SUB_ID_TITLE_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_ICON_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_ICON_PIXELS_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_PROGRESS_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_NEW_EVENTS_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_STATE_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_WINDOW_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_PATH_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_PACKAGE_GET,
ELM_APP_CLIENT_VIEW_SUB_ID_LAST
};
#define ELM_APP_CLIENT_VIEW_ID(sub_id) (ELM_APP_CLIENT_VIEW_BASE_ID + sub_id)
/**
* @def elm_app_client_view_constructor
* @since 1.8
*
* Class constructor of elm_app_client_view
*
* @param[out] path DBus path of view
*
* @note You must supply elm_app_client as parent.
*/
#define elm_app_client_view_constructor(path) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_CONSTRUCTOR), EO_TYPECHECK(const char *, path)
/**
* @def elm_app_client_view_close
* @since 1.8
*
* Close view
*
* @param[in] cb callback to be called when view was closed
* @param[in] data callback user data
*/
#define elm_app_client_view_close(cb, data) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_CLOSE), EO_TYPECHECK(Elm_App_Client_View_Cb, cb), EO_TYPECHECK(const void *, data)
/**
* @def elm_app_client_view_pause
* @since 1.8
*
* Pause view
*
* @param[in] cb callback to be called when view was paused
* @param[in] data callback user data
*/
#define elm_app_client_view_pause(cb, data) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_PAUSE), EO_TYPECHECK(Elm_App_Client_View_Cb, cb), EO_TYPECHECK(const void *, data)
/**
* @def elm_app_client_view_resume
* @since 1.8
*
* Resume view
*
* @param[in] cb callback to be called when view was resumed
* @param[in] data callback user data
*/
#define elm_app_client_view_resume(cb, data) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_RESUME), EO_TYPECHECK(Elm_App_Client_View_Cb, cb), EO_TYPECHECK(const void *, data)
/**
* @def elm_app_client_view_title_get
* @since 1.8
*
* Get title of view
*
* @param[out] ret title of view
*/
#define elm_app_client_view_title_get(ret) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_TITLE_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_app_client_view_icon_get
* @since 1.8
*
* Get icon path of view
*
* @param[out] ret icon path of view
*/
#define elm_app_client_view_icon_get(ret) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_ICON_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_app_client_view_icon_pixels_get
* @since 1.8
*
* Get icon pixels of view, view could have a icon in raw format
* not saved in disk.
*
* @param[out] w icon width
* @param[out] h icon height
* @param[out] has_alpha if icon have alpha channel
* @param[out] pixels unsigned char array, with all bytes of icon
*/
#define elm_app_client_view_icon_pixels_get(w, h, has_alpha, pixels) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_ICON_PIXELS_GET), EO_TYPECHECK(unsigned int *, w), EO_TYPECHECK(unsigned int *, h), EO_TYPECHECK(Eina_Bool *, has_alpha), EO_TYPECHECK(const unsigned char **, pixels)
/**
* @def elm_app_client_view_progress_get
* @since 1.8
*
* Get progress of view, should be -1 if there nothing in progress or something
* between 0-100
*
* @param[out] progress progress of view
*/
#define elm_app_client_view_progress_get(progress) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_PROGRESS_GET), EO_TYPECHECK(unsigned short *, progress)
/**
* @def elm_app_client_view_new_events_get
* @since 1.8
*
* Get new events of view
*
* @param[out] events number of events of view
*/
#define elm_app_client_view_new_events_get(events) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_NEW_EVENTS_GET), EO_TYPECHECK(int *, events)
/**
* @def elm_app_client_view_state_get
* @since 1.8
*
* Get state of view
*
* @param[out] state state of view
*/
#define elm_app_client_view_state_get(state) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_STATE_GET), EO_TYPECHECK(Elm_App_View_State *, state)
/**
* @def elm_app_client_view_window_get
* @since 1.8
*
* Get window of view
*
* @param[out] window window of view
*/
#define elm_app_client_view_window_get(window) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_WINDOW_GET), EO_TYPECHECK(int *, window)
/**
* @def elm_app_client_view_path_get
* @since 1.8
*
* Get DBus path of view
*
* @param[out] ret DBus path of view
*/
#define elm_app_client_view_path_get(ret) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_PATH_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_app_client_view_package_get
* @since 1.8
*
* Get application package
*
* @param[out] ret Package of application
*/
#define elm_app_client_view_package_get(ret) ELM_APP_CLIENT_VIEW_ID(ELM_APP_CLIENT_VIEW_SUB_ID_PACKAGE_GET), EO_TYPECHECK(const char **, ret)
/**
* Events
*/
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_VIEW_EV_STATE_CHANGED;
#define ELM_APP_CLIENT_VIEW_EV_STATE_CHANGED (&(_ELM_APP_CLIENT_VIEW_EV_STATE_CHANGED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_VIEW_EV_TITLE_CHANGED;
#define ELM_APP_CLIENT_VIEW_EV_TITLE_CHANGED (&(_ELM_APP_CLIENT_VIEW_EV_TITLE_CHANGED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_VIEW_EV_ICON_CHANGED;
#define ELM_APP_CLIENT_VIEW_EV_ICON_CHANGED (&(_ELM_APP_CLIENT_VIEW_EV_ICON_CHANGED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_VIEW_EV_ICON_PIXELS_CHANGED;
#define ELM_APP_CLIENT_VIEW_EV_ICON_PIXELS_CHANGED (&(_ELM_APP_CLIENT_VIEW_EV_ICON_PIXELS_CHANGED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_VIEW_EV_NEW_EVENTS_CHANGED;
#define ELM_APP_CLIENT_VIEW_EV_NEW_EVENTS_CHANGED (&(_ELM_APP_CLIENT_VIEW_EV_NEW_EVENTS_CHANGED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_VIEW_EV_PROGRESS_CHANGED;
#define ELM_APP_CLIENT_VIEW_EV_PROGRESS_CHANGED (&(_ELM_APP_CLIENT_VIEW_EV_PROGRESS_CHANGED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_VIEW_EV_WINDOW_CHANGED;
#define ELM_APP_CLIENT_VIEW_EV_WINDOW_CHANGED (&(_ELM_APP_CLIENT_VIEW_EV_WINDOW_CHANGED))
extern EAPI const Eo_Event_Description _ELM_APP_CLIENT_VIEW_EV_PROPERTY_CHANGED;
#define ELM_APP_CLIENT_VIEW_EV_PROPERTY_CHANGED (&(_ELM_APP_CLIENT_VIEW_EV_PROPERTY_CHANGED))
#endif
#include "elm_app_client_view.eo.h"

View File

@ -9,157 +9,4 @@ typedef Eo Elm_App_Server_View;
typedef Elm_App_Server_View *(*Elm_App_Server_Create_View_Cb)(Elm_App_Server *app, const Eina_Value *args, Eina_Stringshare **error_name, Eina_Stringshare **error_message);
#include "elm_app_server.eo.h"
#if 0
#define ELM_APP_SERVER_CLASS elm_app_server_class_get()
const Eo_Class *elm_app_server_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_APP_SERVER_BASE_ID;
enum
{
ELM_APP_SERVER_SUB_ID_CONSTRUCTOR,
ELM_APP_SERVER_SUB_ID_SAVE,
ELM_APP_SERVER_SUB_ID_CLOSE_ALL,
ELM_APP_SERVER_SUB_ID_VIEW_CHECK,
ELM_APP_SERVER_SUB_ID_TITLE_SET,
ELM_APP_SERVER_SUB_ID_TITLE_GET,
ELM_APP_SERVER_SUB_ID_ICON_SET,
ELM_APP_SERVER_SUB_ID_ICON_GET,
ELM_APP_SERVER_SUB_ID_ICON_PIXELS_SET,
ELM_APP_SERVER_SUB_ID_ICON_PIXELS_GET,
ELM_APP_SERVER_SUB_ID_PACKAGE_GET,
ELM_APP_SERVER_SUB_ID_VIEWS_GET,
ELM_APP_SERVER_SUB_ID_PATH_GET,
ELM_APP_SERVER_SUB_ID_VIEW_ADD,
ELM_APP_SERVER_SUB_ID_LAST
};
#define ELM_APP_SERVER_ID(sub_id) (ELM_APP_SERVER_BASE_ID + sub_id)
/**
* @def elm_app_server_constructor
* @since 1.8
*
* Class constructor of elm_app_server
*
* @param[in] packageid package of application
* @param[in] create_view_cb callback to be called when user whants to
* open some application view
*/
#define elm_app_server_constructor(packageid, create_view_cb) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_CONSTRUCTOR), EO_TYPECHECK(const char *, packageid), EO_TYPECHECK(Elm_App_Server_Create_View_Cb, create_view_cb)
/**
* @def elm_app_server_save
* @since 1.8
*
* Save the state of all views
*/
#define elm_app_server_save() ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_SAVE)
/**
* @def elm_app_server_close_all
* @since 1.8
*
* Close all views of application
*/
#define elm_app_server_close_all() ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_CLOSE_ALL)
/**
* @def elm_app_server_title_set
* @since 1.8
*
* Set a title to application.
*
* @param[in] title title of application
*/
#define elm_app_server_title_set(title) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_TITLE_SET), EO_TYPECHECK(const char *, title)
/**
* @def elm_app_server_title_get
* @since 1.8
*
* Get title of application
*
* @param[out] ret title of application
*/
#define elm_app_server_title_get(ret) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_TITLE_GET), EO_TYPECHECK(Eina_Stringshare **, ret)
/**
* @def elm_app_server_icon_set
* @since 1.8
*
* @param[in] icon title of icon
*/
#define elm_app_server_icon_set(icon) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_ICON_SET), EO_TYPECHECK(const char*, icon)
/**
* @def elm_app_server_icon_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_icon_get(ret) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_ICON_GET), EO_TYPECHECK(Eina_Stringshare **, ret)
#define elm_app_server_icon_pixels_set(w, h, has_alpha, pixels) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_ICON_PIXELS_SET), EO_TYPECHECK(unsigned int, w), EO_TYPECHECK(unsigned int, h), EO_TYPECHECK(Eina_Bool, has_alpha), EO_TYPECHECK(const unsigned char *, pixels)
#define elm_app_server_icon_pixels_get(w, h, has_alpha, pixels) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_ICON_PIXELS_GET), EO_TYPECHECK(unsigned int *, w), EO_TYPECHECK(unsigned int *, h), EO_TYPECHECK(Eina_Bool *, has_alpha), EO_TYPECHECK(const unsigned char **, pixels)
/**
* @def elm_app_server_package_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_package_get(ret) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_PACKAGE_GET), EO_TYPECHECK(Eina_Stringshare **, ret)
/**
* @def elm_app_server_path_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_path_get(ret) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_PATH_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_app_server_views_get
* @since 1.8
*
* Return a iterator with all views of application
*
* @param[out] ret Iterator with all views of application, you must free
* iterator after use.
*/
#define elm_app_server_views_get(ret) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_VIEWS_GET), EO_TYPECHECK(Eina_Iterator **, ret)
/**
* @def elm_app_server_view_check
* @since 1.8
*
* If view id is available and unique, return the full DBus object path of view
*
* @param[in] id view identifier
* @param[out] ret @c EINA_TRUE if id is valid or @c EINA_FALSE if not
*/
#define elm_app_server_view_check(id, ret) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_VIEW_CHECK), EO_TYPECHECK(const char *, id), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_app_server_view_add
* @since 1.8
*
* Add a view to elm_app_server.
* This should only be used if the application open a view
* that was not requested by create_view_cb.
*
* @param[in] view elm_app_server_view
*/
#define elm_app_server_view_add(view) ELM_APP_SERVER_ID(ELM_APP_SERVER_SUB_ID_VIEW_ADD), EO_TYPECHECK(Elm_App_Server_View *, view)
/**
* Events
*/
extern EAPI const Eo_Event_Description _ELM_APP_SERVER_EV_TERMINATE;
#define ELM_APP_SERVER_EV_TERMINATE (&(_ELM_APP_SERVER_EV_TERMINATE))
#endif
#include "elm_app_server.eo.h"

View File

@ -1,193 +1 @@
#include "elm_app_server_view.eo.h"
#if 0
#define ELM_APP_SERVER_VIEW_CLASS elm_app_server_view_class_get()
const Eo_Class *elm_app_server_view_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_APP_SERVER_VIEW_BASE_ID;
enum
{
ELM_APP_SERVER_VIEW_SUB_ID_CONSTRUCTOR,
ELM_APP_SERVER_VIEW_SUB_ID_RESUME,
ELM_APP_SERVER_VIEW_SUB_ID_PAUSE,
ELM_APP_SERVER_VIEW_SUB_ID_CLOSE,
ELM_APP_SERVER_VIEW_SUB_ID_SHALLOW,
ELM_APP_SERVER_VIEW_SUB_ID_STATE_GET,
ELM_APP_SERVER_VIEW_SUB_ID_WINDOW_SET,
ELM_APP_SERVER_VIEW_SUB_ID_TITLE_SET,
ELM_APP_SERVER_VIEW_SUB_ID_TITLE_GET,
ELM_APP_SERVER_VIEW_SUB_ID_ICON_NAME_SET,
ELM_APP_SERVER_VIEW_SUB_ID_ICON_NAME_GET,
ELM_APP_SERVER_VIEW_SUB_ID_ICON_PIXELS_SET,
ELM_APP_SERVER_VIEW_SUB_ID_ICON_PIXELS_GET,
ELM_APP_SERVER_VIEW_SUB_ID_PROGRESS_SET,
ELM_APP_SERVER_VIEW_SUB_ID_PROGRESS_GET,
ELM_APP_SERVER_VIEW_SUB_ID_NEW_EVENTS_SET,
ELM_APP_SERVER_VIEW_SUB_ID_NEW_EVENTS_GET,
ELM_APP_SERVER_VIEW_SUB_ID_ID_GET,
ELM_APP_SERVER_VIEW_SUB_ID_PATH_GET,
ELM_APP_SERVER_VIEW_SUB_ID_LAST
};
#define ELM_APP_SERVER_VIEW_ID(sub_id) (ELM_APP_SERVER_VIEW_BASE_ID + sub_id)
/**
* @def elm_app_server_view_constructor
* @since 1.8
*
* Class constructor of elm_app_server_view
*
* @param[in] id identifier of view
*
* @note You must supply the elm_app_server as parent.
*/
#define elm_app_server_view_constructor(id) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_CONSTRUCTOR), EO_TYPECHECK(const char *, id)
/**
* @def elm_app_server_view_resume
* @since 1.8
*
*/
#define elm_app_server_view_resume() ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_RESUME)
/**
* @def elm_app_server_view_pause
* @since 1.8
*
*/
#define elm_app_server_view_pause() ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_PAUSE)
/**
* @def elm_app_server_view_close
* @since 1.8
*
*/
#define elm_app_server_view_close() ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_CLOSE)
/**
* @def elm_app_server_view_shallow
* @since 1.8
*
*/
#define elm_app_server_view_shallow() ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_SHALLOW)
/**
* @def elm_app_server_view_state_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_view_state_get(ret) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_STATE_GET), EO_TYPECHECK(Elm_App_View_State *, ret)
/**
* @def elm_app_server_view_window_set
* @since 1.8
*
* @param[in] win
*/
#define elm_app_server_view_window_set(win) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_WINDOW_SET), EO_TYPECHECK(Evas_Object *, win)
/**
* @def elm_app_server_view_title_set
* @since 1.8
*
* @param[in] title
*/
#define elm_app_server_view_title_set(title) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_TITLE_SET), EO_TYPECHECK(const char *, title)
/**
* @def elm_app_server_view_title_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_view_title_get(ret) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_TITLE_GET), EO_TYPECHECK(const char **, ret)
/**
* @def elm_app_server_view_icon_set
* @since 1.8
*
* @param[in] icon
*/
#define elm_app_server_view_icon_set(icon) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_ICON_NAME_SET), EO_TYPECHECK(const char *, icon)
/**
* @def elm_app_server_view_icon_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_view_icon_get(ret) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_ICON_NAME_GET), EO_TYPECHECK(const char **, ret)
#define elm_app_server_view_icon_pixels_set(w, h, has_alpha, pixels) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_ICON_PIXELS_SET), EO_TYPECHECK(unsigned int, w), EO_TYPE_CHECK(unsigned int, h), EO_TYPE_CHECK(Eina_Bool, has_alpha), EO_TYPE_CHECK(const unsigned char *, pixels)
#define elm_app_server_view_icon_pixels_get(w, h, has_alpha, pixels) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_ICON_PIXELS_GET), EO_TYPECHECK(unsigned int *, w), EO_TYPE_CHECK(unsigned int *, h), EO_TYPE_CHECK(Eina_Bool *, has_alpha), EO_TYPE_CHECK(const unsigned char **, pixels)
/**
* @def elm_app_server_view_progress_set
* @since 1.8
*
* @param[in] progress
*/
#define elm_app_server_view_progress_set(progress) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_PROGRESS_SET), EO_TYPECHECK(short, progress)
/**
* @def elm_app_server_view_progress_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_view_progress_get(ret) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_PROGRESS_GET), EO_TYPECHECK(short *, ret)
/**
* @def elm_app_server_view_new_events_set
* @since 1.8
*
* @param[in] events
*/
#define elm_app_server_view_new_events_set(events) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_NEW_EVENTS_SET), EO_TYPECHECK(int, events)
/**
* @def elm_app_server_view_new_events_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_view_new_events_get(ret) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_NEW_EVENTS_GET), EO_TYPECHECK(int *, ret)
/**
* @def elm_app_server_view_id_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_view_id_get(ret) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_ID_GET), EO_TYPECHECK(Eina_Stringshare **, ret)
/**
* @def elm_app_server_view_path_get
* @since 1.8
*
* @param[out] ret
*/
#define elm_app_server_view_path_get(ret) ELM_APP_SERVER_VIEW_ID(ELM_APP_SERVER_VIEW_SUB_ID_PATH_GET), EO_TYPECHECK(const char **, ret)
/**
* Events
*/
extern EAPI const Eo_Event_Description _ELM_APP_SERVER_VIEW_EV_RESUMED;
#define ELM_APP_SERVER_VIEW_EV_RESUMED (&(_ELM_APP_SERVER_VIEW_EV_RESUMED))
extern EAPI const Eo_Event_Description _ELM_APP_SERVER_VIEW_EV_PAUSED;
#define ELM_APP_SERVER_VIEW_EV_PAUSED (&(_ELM_APP_SERVER_VIEW_EV_PAUSED))
extern EAPI const Eo_Event_Description _ELM_APP_SERVER_VIEW_EV_CLOSED;
#define ELM_APP_SERVER_VIEW_EV_CLOSED (&(_ELM_APP_SERVER_VIEW_EV_CLOSED))
extern EAPI const Eo_Event_Description _ELM_APP_SERVER_VIEW_EV_SHALLOW;
#define ELM_APP_SERVER_VIEW_EV_SHALLOW (&(_ELM_APP_SERVER_VIEW_EV_SHALLOW))
extern EAPI const Eo_Event_Description _ELM_APP_SERVER_VIEW_EV_SAVE;
#define ELM_APP_SERVER_VIEW_EV_SAVE (&(_ELM_APP_SERVER_VIEW_EV_SAVE))
#endif
#include "elm_app_server_view.eo.h"

View File

@ -1,91 +1 @@
#include "elm_frame.eo.h"
#if 0
#define ELM_OBJ_FRAME_CLASS elm_obj_frame_class_get()
const Eo_Class *elm_obj_frame_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_FRAME_BASE_ID;
enum
{
ELM_OBJ_FRAME_SUB_ID_AUTOCOLLAPSE_SET,
ELM_OBJ_FRAME_SUB_ID_AUTOCOLLAPSE_GET,
ELM_OBJ_FRAME_SUB_ID_COLLAPSE_SET,
ELM_OBJ_FRAME_SUB_ID_COLLAPSE_GO,
ELM_OBJ_FRAME_SUB_ID_COLLAPSE_GET,
ELM_OBJ_FRAME_SUB_ID_LAST
};
#define ELM_OBJ_FRAME_ID(sub_id) (ELM_OBJ_FRAME_BASE_ID + sub_id)
/**
* @def elm_obj_frame_autocollapse_set
* @since 1.8
*
* @brief Toggle autocollapsing of a frame
*
* @param[in] autocollapse
*
* @see elm_frame_autocollapse_set
*
* @ingroup Frame
*/
#define elm_obj_frame_autocollapse_set(autocollapse) ELM_OBJ_FRAME_ID(ELM_OBJ_FRAME_SUB_ID_AUTOCOLLAPSE_SET), EO_TYPECHECK(Eina_Bool, autocollapse)
/**
* @def elm_obj_frame_autocollapse_get
* @since 1.8
*
* @brief Determine autocollapsing of a frame
*
* @param[out] ret
*
* @see elm_frame_autocollapse_get
*
* @ingroup Frame
*/
#define elm_obj_frame_autocollapse_get(ret) ELM_OBJ_FRAME_ID(ELM_OBJ_FRAME_SUB_ID_AUTOCOLLAPSE_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_frame_collapse_set
* @since 1.8
*
* @brief Manually collapse a frame without animations
*
* @param[in] collapse
*
* @see elm_frame_collapse_set
*
* @ingroup Frame
*/
#define elm_obj_frame_collapse_set(collapse) ELM_OBJ_FRAME_ID(ELM_OBJ_FRAME_SUB_ID_COLLAPSE_SET), EO_TYPECHECK(Eina_Bool, collapse)
/**
* @def elm_obj_frame_collapse_go
* @since 1.8
*
* @brief Manually collapse a frame with animations
*
* @param[in] collapse
*
* @see elm_frame_collapse_go
*/
#define elm_obj_frame_collapse_go(collapse) ELM_OBJ_FRAME_ID(ELM_OBJ_FRAME_SUB_ID_COLLAPSE_GO), EO_TYPECHECK(Eina_Bool, collapse)
/**
* @def elm_obj_frame_collapse_get
* @since 1.8
*
* @brief Determine the collapse state of a frame
*
* @param[out] ret
*
* @see elm_frame_collapse_get
*
* @ingroup Frame
*/
#define elm_obj_frame_collapse_get(ret) ELM_OBJ_FRAME_ID(ELM_OBJ_FRAME_SUB_ID_COLLAPSE_GET), EO_TYPECHECK(Eina_Bool *, ret)
#endif
#include "elm_frame.eo.h"

View File

@ -8,61 +8,4 @@
*/
EAPI Evas_Object *elm_frame_add(Evas_Object *parent);
/**
* @brief Toggle autocollapsing of a frame
* @param obj The frame
* @param autocollapse Whether to enable autocollapse
*
* When @p enable is EINA_TRUE, clicking a frame's label will collapse the frame
* vertically, shrinking it to the height of the label.
* By default, this is DISABLED.
*
* @ingroup Frame
*/
EAPI void elm_frame_autocollapse_set(Evas_Object *obj, Eina_Bool autocollapse);
/**
* @brief Determine autocollapsing of a frame
* @param obj The frame
* @return Whether autocollapse is enabled
*
* When this returns EINA_TRUE, clicking a frame's label will collapse the frame
* vertically, shrinking it to the height of the label.
* By default, this is DISABLED.
*
* @ingroup Frame
*/
EAPI Eina_Bool elm_frame_autocollapse_get(const Evas_Object *obj);
/**
* @brief Manually collapse a frame without animations
* @param obj The frame
* @param collapse true to collapse, false to expand
*
* Use this to toggle the collapsed state of a frame, bypassing animations.
*
* @ingroup Frame
*/
EAPI void elm_frame_collapse_set(Evas_Object *obj, Eina_Bool collapse);
/**
* @brief Manually collapse a frame with animations
* @param obj The frame
* @param collapse true to collapse, false to expand
*
* Use this to toggle the collapsed state of a frame, triggering animations.
*
* @ingroup Frame
*/
EAPI void elm_frame_collapse_go(Evas_Object *obj, Eina_Bool collapse);
/**
* @brief Determine the collapse state of a frame
* @param obj The frame
* @return true if collapsed, false otherwise
*
* Use this to determine the collapse state of a frame.
*
* @ingroup Frame
*/
EAPI Eina_Bool elm_frame_collapse_get(const Evas_Object *obj);
#include "elm_frame.eo.legacy.h"

View File

@ -1,77 +1 @@
#include "elm_hover.eo.h"
#if 0
#define ELM_OBJ_HOVER_CLASS elm_obj_hover_class_get()
const Eo_Class *elm_obj_hover_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_HOVER_BASE_ID;
enum
{
ELM_OBJ_HOVER_SUB_ID_TARGET_SET,
ELM_OBJ_HOVER_SUB_ID_TARGET_GET,
ELM_OBJ_HOVER_SUB_ID_BEST_CONTENT_LOCATION_GET,
ELM_OBJ_HOVER_SUB_ID_DISMISS,
ELM_OBJ_HOVER_SUB_ID_LAST
};
#define ELM_OBJ_HOVER_ID(sub_id) (ELM_OBJ_HOVER_BASE_ID + sub_id)
/**
* @def elm_obj_hover_target_set
* @since 1.8
*
* @brief Sets the target object for the hover.
*
* @param[in] target
*
* @see elm_hover_target_set
*
* @ingroup Hover
*/
#define elm_obj_hover_target_set(target) ELM_OBJ_HOVER_ID(ELM_OBJ_HOVER_SUB_ID_TARGET_SET), EO_TYPECHECK(Evas_Object *, target)
/**
* @def elm_obj_hover_target_get
* @since 1.8
*
* @brief Get the target object for the hover.
*
* @param[out] ret
*
* @see elm_hover_target_get
*
* @ingroup Hover
*/
#define elm_obj_hover_target_get(ret) ELM_OBJ_HOVER_ID(ELM_OBJ_HOVER_SUB_ID_TARGET_GET), EO_TYPECHECK(Evas_Object **, ret)
/**
* @def elm_obj_hover_best_content_location_get
* @since 1.8
*
* @brief Returns the best swallow location for content in the hover.
*
* @param[in] pref_axis
* @param[out] ret
*
* @see elm_hover_best_content_location_get
*
* @ingroup Hover
*/
#define elm_obj_hover_best_content_location_get(pref_axis, ret) ELM_OBJ_HOVER_ID(ELM_OBJ_HOVER_SUB_ID_BEST_CONTENT_LOCATION_GET), EO_TYPECHECK(Elm_Hover_Axis, pref_axis), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_hover_dismiss
* @since 1.8
*
* @brief Dismiss a hover object
*
*
* @see elm_hover_dismiss
*/
#define elm_obj_hover_dismiss() ELM_OBJ_HOVER_ID(ELM_OBJ_HOVER_SUB_ID_DISMISS)
#endif
#include "elm_hover.eo.h"

View File

@ -33,67 +33,4 @@ EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent);
*/
EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj);
/**
* @brief Sets the target object for the hover.
*
* @param obj The hover object
* @param target The object to center the hover onto.
*
* This function will cause the hover to be centered on the target object.
*
* @ingroup Hover
*/
EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target);
/**
* @brief Get the target object for the hover.
*
* @param obj The hover object
* @return The target object for the hover.
*
* @see elm_hover_target_set()
*
* @ingroup Hover
*/
EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj);
/**
* @brief Returns the best swallow location for content in the hover.
*
* @param obj The hover object
* @param pref_axis The preferred orientation axis for the hover object to use
* @return The edje location to place content into the hover or @c
* NULL, on errors.
*
* Best is defined here as the location at which there is the most available
* space.
*
* @p pref_axis may be one of
* - @c ELM_HOVER_AXIS_NONE -- no preferred orientation
* - @c ELM_HOVER_AXIS_HORIZONTAL -- horizontal
* - @c ELM_HOVER_AXIS_VERTICAL -- vertical
* - @c ELM_HOVER_AXIS_BOTH -- both
*
* If ELM_HOVER_AXIS_HORIZONTAL is chosen the returned position will
* necessarily be along the horizontal axis("left" or "right"). If
* ELM_HOVER_AXIS_VERTICAL is chosen the returned position will necessarily
* be along the vertical axis("top" or "bottom"). Choosing
* ELM_HOVER_AXIS_BOTH or ELM_HOVER_AXIS_NONE has the same effect and the
* returned position may be in either axis.
*
* @see elm_object_part_content_set()
*
* @ingroup Hover
*/
EAPI const char *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis);
/**
* @brief Dismiss a hover object
*
* @param obj The hover object
* Use this function to simulate clicking outside the hover to dismiss it.
* In this way, the hover will be hidden and the "clicked" signal will be emitted.
*
* @ingroup Hover
*/
EAPI void elm_hover_dismiss(Evas_Object *obj);
#include "elm_hover.eo.legacy.h"

File diff suppressed because it is too large Load Diff

View File

@ -213,6 +213,7 @@ class Elm_Layout (Elm_Container)
}
theme_enable {
/*@ No description supplied by the EAPI. */
legacy null;
return Eina_Bool;
}
sizing_eval {
@ -434,6 +435,7 @@ class Elm_Layout (Elm_Container)
}
sub_object_add_enable {
/*@ No description supplied by the EAPI. */
legacy null;
return Eina_Bool;
}
data_get {

View File

@ -3,524 +3,9 @@
*
* @{
*/
#include "elm_layout.eo.h"
#if 0
#define ELM_OBJ_LAYOUT_CLASS elm_obj_layout_class_get()
const Eo_Class *elm_obj_layout_class_get(void) EINA_CONST;
extern EAPI Eo_Op ELM_OBJ_LAYOUT_BASE_ID;
enum
{
ELM_OBJ_LAYOUT_SUB_ID_FILE_SET,
ELM_OBJ_LAYOUT_SUB_ID_THEME_SET,
ELM_OBJ_LAYOUT_SUB_ID_SIGNAL_EMIT,
ELM_OBJ_LAYOUT_SUB_ID_SIGNAL_CALLBACK_ADD,
ELM_OBJ_LAYOUT_SUB_ID_SIGNAL_CALLBACK_DEL,
ELM_OBJ_LAYOUT_SUB_ID_TEXT_SET,
ELM_OBJ_LAYOUT_SUB_ID_TEXT_GET,
ELM_OBJ_LAYOUT_SUB_ID_BOX_APPEND,
ELM_OBJ_LAYOUT_SUB_ID_BOX_PREPEND,
ELM_OBJ_LAYOUT_SUB_ID_BOX_INSERT_BEFORE,
ELM_OBJ_LAYOUT_SUB_ID_BOX_INSERT_AT,
ELM_OBJ_LAYOUT_SUB_ID_BOX_REMOVE,
ELM_OBJ_LAYOUT_SUB_ID_BOX_REMOVE_ALL,
ELM_OBJ_LAYOUT_SUB_ID_TABLE_PACK,
ELM_OBJ_LAYOUT_SUB_ID_TABLE_UNPACK,
ELM_OBJ_LAYOUT_SUB_ID_TABLE_CLEAR,
ELM_OBJ_LAYOUT_SUB_ID_EDJE_GET,
ELM_OBJ_LAYOUT_SUB_ID_DATA_GET,
ELM_OBJ_LAYOUT_SUB_ID_SIZING_EVAL,
ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_SET,
ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_GET,
ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_UNSET,
ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_STYLE_SET,
ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_STYLE_GET,
ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_ENGINE_ONLY_SET,
ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_ENGINE_ONLY_GET,
ELM_OBJ_LAYOUT_SUB_ID_EDJE_OBJECT_CAN_ACCESS_SET,
ELM_OBJ_LAYOUT_SUB_ID_EDJE_OBJECT_CAN_ACCESS_GET,
ELM_OBJ_LAYOUT_SUB_ID_TEXT_ALIASES_GET,
ELM_OBJ_LAYOUT_SUB_ID_CONTENT_ALIASES_GET,
ELM_OBJ_LAYOUT_SUB_ID_SUB_OBJECT_ADD_ENABLE,
ELM_OBJ_LAYOUT_SUB_ID_THEME_ENABLE,
ELM_OBJ_LAYOUT_SUB_ID_FREEZE,
ELM_OBJ_LAYOUT_SUB_ID_THAW,
ELM_OBJ_LAYOUT_SUB_ID_SIZING_RESTRICTED_EVAL,
ELM_OBJ_LAYOUT_SUB_ID_LAST
};
#define ELM_OBJ_LAYOUT_ID(sub_id) (ELM_OBJ_LAYOUT_BASE_ID + sub_id)
/**
* @def elm_obj_layout_file_set
* @since 1.8
*
* Set the file that will be used as layout
*
* @param[in] file
* @param[in] group
* @param[out] ret
*
* @see elm_layout_file_set
*/
#define elm_obj_layout_file_set(file, group, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_FILE_SET), EO_TYPECHECK(const char *, file), EO_TYPECHECK(const char *, group), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_theme_set
* @since 1.8
*
* Set the edje group from the elementary theme that will be used as layout
*
* @param[in] klass
* @param[in] group
* @param[in] style
* @param[out] ret
*
* @see elm_layout_theme_set
*/
#define elm_obj_layout_theme_set(klass, group, style, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_THEME_SET), EO_TYPECHECK(const char *, klass), EO_TYPECHECK(const char *, group), EO_TYPECHECK(const char *, style), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_signal_emit
* @since 1.8
*
* Send a (Edje) signal to a given layout widget's underlying Edje
*
* @param[in] emission
* @param[in] source
*
* @see elm_layout_signal_emit
*/
#define elm_obj_layout_signal_emit(emission, source) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_SIGNAL_EMIT), EO_TYPECHECK(const char *, emission), EO_TYPECHECK(const char *, source)
/**
* @def elm_obj_layout_signal_callback_add
* @since 1.8
*
* Add a callback for a (Edje) signal emitted by a layout widget's
*
* @param[in] emission
* @param[in] source
* @param[in] func
* @param[in] data
*
* @see elm_layout_signal_callback_add
*/
#define elm_obj_layout_signal_callback_add(emission, source, func, data) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_SIGNAL_CALLBACK_ADD), EO_TYPECHECK(const char *, emission), EO_TYPECHECK(const char *, source), EO_TYPECHECK(Edje_Signal_Cb, func), EO_TYPECHECK(void *, data)
/**
* @def elm_obj_layout_signal_callback_del
* @since 1.8
*
* Remove a signal-triggered callback from a given layout widget.
*
* @param[in] emission
* @param[in] source
* @param[in] func
* @param[out] ret
*
* @see elm_layout_signal_callback_del
*/
#define elm_obj_layout_signal_callback_del(emission, source, func, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_SIGNAL_CALLBACK_DEL), EO_TYPECHECK(const char *, emission), EO_TYPECHECK(const char *, source), EO_TYPECHECK(Edje_Signal_Cb, func), EO_TYPECHECK(void **, ret)
/**
* @def elm_obj_layout_text_set
* @since 1.8
*
* Set the text of the given part
*
* @param[in] part
* @param[in] text
* @param[out] ret
*
* @see elm_layout_text_set
*/
#define elm_obj_layout_text_set(part, text, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_TEXT_SET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(const char *, text), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_text_get
* @since 1.8
*
* Get the text set in the given part
*
* @param[in] part
* @param[out] ret
*
* @see elm_layout_text_get
*/
#define elm_obj_layout_text_get(part, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_TEXT_GET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_layout_box_append
* @since 1.8
*
* Append child to layout box part.
*
* @param[in] part
* @param[in] child
* @param[out] ret
*
* @see elm_layout_box_append
*/
#define elm_obj_layout_box_append(part, child, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_BOX_APPEND), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_box_prepend
* @since 1.8
*
* Prepend child to layout box part.
*
* @param[in] part
* @param[in] child
* @param[out] ret
*
* @see elm_layout_box_prepend
*/
#define elm_obj_layout_box_prepend(part, child, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_BOX_PREPEND), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_box_insert_before
* @since 1.8
*
* Insert child to layout box part before a reference object.
*
* @param[in] part
* @param[in] child
* @param[in] reference
* @param[out] ret
*
* @see elm_layout_box_insert_before
*/
#define elm_obj_layout_box_insert_before(part, child, reference, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_BOX_INSERT_BEFORE), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(const Evas_Object *, reference), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_box_insert_at
* @since 1.8
*
* Insert child to layout box part at a given position.
*
* @param[in] part
* @param[in] child
* @param[in] pos
* @param[out] ret
*
* @see elm_layout_box_insert_at
*/
#define elm_obj_layout_box_insert_at(part, child, pos, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_BOX_INSERT_AT), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(unsigned int, pos), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_box_remove
* @since 1.8
*
* Remove a child of the given part box.
*
* @param[in] part
* @param[in] child
* @param[out] ret
*
* @see elm_layout_box_remove
*/
#define elm_obj_layout_box_remove(part, child, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_BOX_REMOVE), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(Evas_Object **, ret)
/**
* @def elm_obj_layout_box_remove_all
* @since 1.8
*
* Remove all children of the given part box.
*
* @param[in] part
* @param[in] clear
* @param[out] ret
*
* @see elm_layout_box_remove_all
*/
#define elm_obj_layout_box_remove_all(part, clear, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_BOX_REMOVE_ALL), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Eina_Bool, clear), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_table_pack
* @since 1.8
*
* Insert child to layout table part.
*
* @param[in] part
* @param[in] child
* @param[in] col
* @param[in] row
* @param[in] colspan
* @param[in] rowspan
* @param[out] ret
*
* @see elm_layout_table_pack
*/
#define elm_obj_layout_table_pack(part, child, col, row, colspan, rowspan, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_TABLE_PACK), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(unsigned short, col), EO_TYPECHECK(unsigned short, row), EO_TYPECHECK(unsigned short, colspan), EO_TYPECHECK(unsigned short, rowspan), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_table_unpack
* @since 1.8
*
* Unpack (remove) a child of the given part table.
*
* @param[in] part
* @param[in] child
* @param[out] ret
*
* @see elm_layout_table_unpack
*/
#define elm_obj_layout_table_unpack(part, child, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_TABLE_UNPACK), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(Evas_Object **, ret)
/**
* @def elm_obj_layout_table_clear
* @since 1.8
*
* Remove all the child objects of the given part table.
*
* @param[in] part
* @param[in] clear
* @param[out] ret
*
* @see elm_layout_table_clear
*/
#define elm_obj_layout_table_clear(part, clear, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_TABLE_CLEAR), EO_TYPECHECK(const char *, part), EO_TYPECHECK(Eina_Bool, clear), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_edje_get
* @since 1.8
*
* Get the edje layout
*
* @param[out] ret
*
* @see elm_layout_edje_get
*/
#define elm_obj_layout_edje_get(ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_EDJE_GET), EO_TYPECHECK(Evas_Object **, ret)
/**
* @def elm_obj_layout_data_get
* @since 1.8
*
* Get the edje data from the given layout
*
* @param[in] key
* @param[out] ret
*
* @see elm_layout_data_get
*/
#define elm_obj_layout_data_get(key, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_DATA_GET), EO_TYPECHECK(const char *, key), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_layout_sizing_eval
* @since 1.8
*
* Eval sizing
*
* @see elm_layout_sizing_eval
*/
#define elm_obj_layout_sizing_eval() ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_SIZING_EVAL)
/**
* @def elm_obj_layout_sizing_restricted_eval
* @since 1.8
*
* Eval sizing, restricted to current width and/or height
*
* @param[in] w Restrict minimum size to the current width
* @param[in] h Restrict minimum size ot the current height
*
* @see elm_layout_sizing_restricted_eval
*/
#define elm_obj_layout_sizing_restricted_eval(width, height) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_SIZING_RESTRICTED_EVAL), EO_TYPECHECK(Eina_Bool, width), EO_TYPECHECK(Eina_Bool, height)
/**
* @def elm_obj_layout_part_cursor_set
* @since 1.8
*
* Sets a specific cursor for an edje part.
*
* @param[in] part_name
* @param[in] cursor
* @param[out] ret
*
* @see elm_layout_part_cursor_set
*/
#define elm_obj_layout_part_cursor_set(part_name, cursor, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_SET), EO_TYPECHECK(const char *, part_name), EO_TYPECHECK(const char *, cursor), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_part_cursor_get
* @since 1.8
*
* Get the cursor to be shown when mouse is over an edje part
*
* @param[in] part_name
* @param[out] ret
*
* @see elm_layout_part_cursor_get
*/
#define elm_obj_layout_part_cursor_get(part_name, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_GET), EO_TYPECHECK(const char *, part_name), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_layout_part_cursor_unset
* @since 1.8
*
* Unsets a cursor previously set with elm_layout_part_cursor_set().
*
* @param[in] part_name
* @param[out] ret
*
* @see elm_layout_part_cursor_unset
*/
#define elm_obj_layout_part_cursor_unset(part_name, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_UNSET), EO_TYPECHECK(const char *, part_name), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_part_cursor_style_set
* @since 1.8
*
* Sets a specific cursor style for an edje part.
*
* @param[in] part_name
* @param[in] style
* @param[out] ret
*
* @see elm_layout_part_cursor_style_set
*/
#define elm_obj_layout_part_cursor_style_set(part_name, style, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_STYLE_SET), EO_TYPECHECK(const char *, part_name), EO_TYPECHECK(const char *, style), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_part_cursor_style_get
* @since 1.8
*
* Get a specific cursor style for an edje part.
*
* @param[in] part_name
* @param[out] ret
*
* @see elm_layout_part_cursor_style_get
*/
#define elm_obj_layout_part_cursor_style_get(part_name, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_STYLE_GET), EO_TYPECHECK(const char *, part_name), EO_TYPECHECK(const char **, ret)
/**
* @def elm_obj_layout_part_cursor_engine_only_set
* @since 1.8
*
* Sets if the cursor set should be searched on the theme or should use
*
* @param[in] part_name
* @param[in] engine_only
* @param[out] ret
*
* @see elm_layout_part_cursor_engine_only_set
*/
#define elm_obj_layout_part_cursor_engine_only_set(part_name, engine_only, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_ENGINE_ONLY_SET), EO_TYPECHECK(const char *, part_name), EO_TYPECHECK(Eina_Bool, engine_only), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_part_cursor_engine_only_get
* @since 1.8
*
* Get a specific cursor engine_only for an edje part.
*
* @param[in] part_name
* @param[out] ret
*
* @see elm_layout_part_cursor_engine_only_get
*/
#define elm_obj_layout_part_cursor_engine_only_get(part_name, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_PART_CURSOR_ENGINE_ONLY_GET), EO_TYPECHECK(const char *, part_name), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_edje_object_can_access_set
* @since 1.8
*
* Set accessibility to all texblock(text) parts in the layout object
*
* @param[in] can_access
* @param[out] ret
*
* @see elm_layout_edje_object_can_access_set
*/
#define elm_obj_layout_edje_object_can_access_set(can_access, ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_EDJE_OBJECT_CAN_ACCESS_SET), EO_TYPECHECK(Eina_Bool, can_access), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_edje_object_can_access_get
* @since 1.8
*
* Get accessibility state of texblock(text) parts in the layout object
*
* @param[out] ret
*
* @see elm_layout_edje_object_can_access_get
*/
#define elm_obj_layout_edje_object_can_access_get(ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_EDJE_OBJECT_CAN_ACCESS_GET), EO_TYPECHECK(Eina_Bool *, ret)
/**
* @def elm_obj_layout_smart_text_aliases_get
* @since 1.8
*
* No description supplied by the EAPI.
*
* @param[out] aliases
*/
#define elm_obj_layout_smart_text_aliases_get(aliases) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_TEXT_ALIASES_GET), EO_TYPECHECK(const Elm_Layout_Part_Alias_Description **, aliases)
/**
* @def elm_obj_layout_smart_content_aliases_get
* @since 1.8
*
* No description supplied by the EAPI.
*
* @param[out] aliases
*/
#define elm_obj_layout_smart_content_aliases_get(aliases) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_CONTENT_ALIASES_GET), EO_TYPECHECK(const Elm_Layout_Part_Alias_Description **, aliases)
/**
* @def elm_obj_layout_sub_object_add_enable
* @since 1.8
*
* No description supplied by the EAPI.
*
* @param[in] enable
*
* @see elm_layout_sub_object_add_enable
*/
#define elm_obj_layout_sub_object_add_enable(enable) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_SUB_OBJECT_ADD_ENABLE), EO_TYPECHECK(Eina_Bool *, enable)
/**
* @def elm_obj_layout_theme_enable
* @since 1.8
*
* No description supplied by the EAPI.
*
* @param[in] enable
*/
#define elm_obj_layout_theme_enable(enable) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_THEME_ENABLE), EO_TYPECHECK(Eina_Bool *, enable)
/**
* @def elm_obj_layout_freeze
* @since 1.8
*
* @brief Freezes the Elementary layout object.
*
* @param[out] ret
*
* @see elm_layout_freeze
*/
#define elm_obj_layout_freeze(ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_FREEZE), EO_TYPECHECK(int *, ret)
/**
* @def elm_obj_layout_thaw
* @since 1.8
*
* @brief Thaws the Elementary object.
*
* @param[out] ret
*
* @see elm_layout_thaw
*/
#define elm_obj_layout_thaw(ret) ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_THAW), EO_TYPECHECK(int *, ret)
#endif
/**
* @}
*/

View File

@ -12,555 +12,17 @@
EAPI Evas_Object *elm_layout_add(Evas_Object *parent);
/**
* Set the file that will be used as layout
*
* @param obj The layout object
* @param file The path to file (edj) that will be used as layout
* @param group The group that the layout belongs in edje file
*
* @return (1 = success, 0 = error)
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group);
/**
* @brief Freezes the Elementary layout object.
*
* @param obj A handle to an Elementary layout object.
* @return The frozen state or 0 on Error
*
* This function puts all changes on hold. Successive freezes will
* nest, requiring an equal number of thaws.
*
* @see elm_layout_thaw()
*/
EAPI int elm_layout_freeze(Evas_Object *obj);
/**
* @brief Thaws the Elementary object.
*
* @param obj A handle to an Elementary layout object.
* @return The frozen state or 0 if the object is not frozen or on error.
*
* This function thaws the given Edje object and the Elementary sizing calc.
*
* @note: If sucessives freezes were done, an equal number of
* thaws will be required.
*
* @see elm_layout_freeze()
*/
EAPI int elm_layout_thaw(Evas_Object *obj);
/**
* Set the edje group from the elementary theme that will be used as layout
*
* @param obj The layout object
* @param clas the class of the group
* @param group the group
* @param style the style to used
*
* @return (1 = success, 0 = error)
*
* Note that @a style will be the new style of @a obj too, as in an
* elm_object_style_set() call.
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style);
/**
* Send a (Edje) signal to a given layout widget's underlying Edje
* object.
*
* @param obj The layout object handle
* @param emission The signal's name string
* @param source The signal's source string
*
* This function sends a signal to the underlying Edje object of @a
* obj. An Edje program on that Edje object's definition can respond
* to a signal by specifying matching 'signal' and 'source' fields.
*
* @ingroup Layout
*/
EAPI void elm_layout_signal_emit(Evas_Object *obj, const char *emission, const char *source);
/**
* Add a callback for a (Edje) signal emitted by a layout widget's
* underlying Edje object.
*
* @param obj The layout object handle
* @param emission The signal's name string
* @param source The signal's source string
* @param func The callback function to be executed when the signal is
* emitted.
* @param data A pointer to data to pass in to the callback function.
*
* This function connects a callback function to a signal emitted by
* the underlying Edje object of @a obj. Globs are accepted in either
* the emission or source strings (see @c
* edje_object_signal_callback_add()).
*
* @ingroup Layout
*/
EAPI void elm_layout_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data);
/**
* Remove a signal-triggered callback from a given layout widget.
*
* @param obj The layout object handle
* @param emission The signal's name string
* @param source The signal's source string
* @param func The callback function being executed when the signal
* was emitted.
* @return The data pointer of the signal callback (passed on
* elm_layout_signal_callback_add()) or @c NULL, on errors.
*
* This function removes the @b last callback attached to a signal
* emitted by the undelying Edje object of @a obj, with parameters @a
* emission, @a source and @c func matching exactly those passed to a
* previous call to elm_layout_signal_callback_add(). The data pointer
* that was passed to this call will be returned.
*
* @ingroup Layout
*/
EAPI void *elm_layout_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func);
/**
* Append child to layout box part.
*
* @param obj the layout object
* @param part the box part to which the object will be appended.
* @param child the child object to append to box.
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* Once the object is appended, it will become child of the layout. Its
* lifetime will be bound to the layout, whenever the layout dies the child
* will be deleted automatically. One should use elm_layout_box_remove() to
* make this layout forget about the object.
*
* @see elm_layout_box_prepend()
* @see elm_layout_box_insert_before()
* @see elm_layout_box_insert_at()
* @see elm_layout_box_remove()
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_box_append(Evas_Object *obj, const char *part, Evas_Object *child);
/**
* Prepend child to layout box part.
*
* @param obj the layout object
* @param part the box part to prepend.
* @param child the child object to prepend to box.
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* Once the object is prepended, it will become child of the layout. Its
* lifetime will be bound to the layout, whenever the layout dies the child
* will be deleted automatically. One should use elm_layout_box_remove() to
* make this layout forget about the object.
*
* @see elm_layout_box_append()
* @see elm_layout_box_insert_before()
* @see elm_layout_box_insert_at()
* @see elm_layout_box_remove()
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_box_prepend(Evas_Object *obj, const char *part, Evas_Object *child);
/**
* Insert child to layout box part before a reference object.
*
* @param obj the layout object
* @param part the box part to insert.
* @param child the child object to insert into box.
* @param reference another reference object to insert before in box.
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* Once the object is inserted, it will become child of the layout. Its
* lifetime will be bound to the layout, whenever the layout dies the child
* will be deleted automatically. One should use elm_layout_box_remove() to
* make this layout forget about the object.
*
* @see elm_layout_box_append()
* @see elm_layout_box_prepend()
* @see elm_layout_box_insert_before()
* @see elm_layout_box_remove()
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_box_insert_before(Evas_Object *obj, const char *part, Evas_Object *child, const Evas_Object *reference);
/**
* Insert child to layout box part at a given position.
*
* @param obj the layout object
* @param part the box part to insert.
* @param child the child object to insert into box.
* @param pos the numeric position >=0 to insert the child.
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* Once the object is inserted, it will become child of the layout. Its
* lifetime will be bound to the layout, whenever the layout dies the child
* will be deleted automatically. One should use elm_layout_box_remove() to
* make this layout forget about the object.
*
* @see elm_layout_box_append()
* @see elm_layout_box_prepend()
* @see elm_layout_box_insert_before()
* @see elm_layout_box_remove()
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_box_insert_at(Evas_Object *obj, const char *part, Evas_Object *child, unsigned int pos);
/**
* Remove a child of the given part box.
*
* @param obj The layout object
* @param part The box part name to remove child.
* @param child The object to remove from box.
* @return The object that was being used, or NULL if not found.
*
* The object will be removed from the box part and its lifetime will
* not be handled by the layout anymore. This is equivalent to
* elm_layout_content_unset() for box.
*
* @see elm_layout_box_append()
* @see elm_layout_box_remove_all()
*
* @ingroup Layout
*/
EAPI Evas_Object *elm_layout_box_remove(Evas_Object *obj, const char *part, Evas_Object *child);
/**
* Remove all children of the given part box.
*
* @param obj The layout object
* @param part The box part name to remove child.
* @param clear If EINA_TRUE, then all objects will be deleted as
* well, otherwise they will just be removed and will be
* dangling on the canvas.
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* The objects will be removed from the box part and their lifetime will
* not be handled by the layout anymore. This is equivalent to
* elm_layout_box_remove() for all box children.
*
* @see elm_layout_box_append()
* @see elm_layout_box_remove()
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_box_remove_all(Evas_Object *obj, const char *part, Eina_Bool clear);
/**
* Insert child to layout table part.
*
* @param obj the layout object
* @param part the box part to pack child.
* @param child_obj the child object to pack into table.
* @param col the column to which the child should be added. (>= 0)
* @param row the row to which the child should be added. (>= 0)
* @param colspan how many columns should be used to store this object. (>=
* 1)
* @param rowspan how many rows should be used to store this object. (>= 1)
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* Once the object is inserted, it will become child of the table. Its
* lifetime will be bound to the layout, and whenever the layout dies the
* child will be deleted automatically. One should use
* elm_layout_table_unpack() to make this layout forget about the object.
*
* If @p colspan or @p rowspan are bigger than 1, that object will occupy
* more space than a single cell. For instance, the following code:
* @code
* elm_layout_table_pack(layout, "table_part", child, 0, 1, 3, 1);
* @endcode
*
* Would result in an object being added like the following picture:
*
* @image html layout_colspan.png
* @image latex layout_colspan.eps width=\textwidth
*
* @see elm_layout_table_unpack()
* @see elm_layout_table_clear()
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_table_pack(Evas_Object *obj, const char *part, Evas_Object *child_obj, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan);
/**
* Unpack (remove) a child of the given part table.
*
* @param obj The layout object
* @param part The table part name to remove child.
* @param child_obj The object to remove from table.
* @return The object that was being used, or NULL if not found.
*
* The object will be unpacked from the table part and its lifetime
* will not be handled by the layout anymore. This is equivalent to
* elm_layout_content_unset() for table.
*
* @see elm_layout_table_pack()
* @see elm_layout_table_clear()
*
* @ingroup Layout
*/
EAPI Evas_Object *elm_layout_table_unpack(Evas_Object *obj, const char *part, Evas_Object *child_obj);
/**
* Remove all the child objects of the given part table.
*
* @param obj The layout object
* @param part The table part name to remove child.
* @param clear If EINA_TRUE, then all objects will be deleted as
* well, otherwise they will just be removed and will be
* dangling on the canvas.
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* The objects will be removed from the table part and their lifetime will
* not be handled by the layout anymore. This is equivalent to
* elm_layout_table_unpack() for all table children.
*
* @see elm_layout_table_pack()
* @see elm_layout_table_unpack()
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_table_clear(Evas_Object *obj, const char *part, Eina_Bool clear);
/**
* Get the edje layout
* Get the list of swallow parts of a given container widget
*
* @param obj The layout object
*
* @return A Evas_Object with the edje layout settings loaded
* with function elm_layout_file_set
* @return list of swallow parts which should be freed by the user program with elm_list_free()
*
* This returns the edje object. It is not expected to be used to then
* swallow objects via edje_object_part_swallow() for example. Use
* elm_layout_content_set() instead so child object handling and sizing is
* done properly.
*
* @note This function should only be used if you really need to call some
* low level Edje function on this edje object. All the common stuff (setting
* text, emitting signals, hooking callbacks to signals, etc.) can be done
* with proper elementary functions.
*
* @see elm_layout_signal_callback_add()
* @see elm_layout_signal_emit()
* @see elm_layout_text_set()
* @see elm_layout_content_set()
* @see elm_layout_box_append()
* @see elm_layout_table_pack()
* @see elm_layout_data_get()
* @since 1.9
*
* @ingroup Layout
*/
EAPI Evas_Object *elm_layout_edje_get(const Evas_Object *obj);
/**
* Get the edje data from the given layout
*
* @param obj The layout object
* @param key The data key
*
* @return The edje data string
*
* This function fetches data specified inside the edje theme of this layout.
* This function return NULL if data is not found.
*
* In EDC this comes from a data block within the group block that @p
* obj was loaded from. E.g.
*
* @code
* collections {
* group {
* name: "a_group";
* data {
* item: "key1" "value1";
* item: "key2" "value2";
* }
* }
* }
* @endcode
*
* @ingroup Layout
*/
EAPI const char *elm_layout_data_get(const Evas_Object *obj, const char *key);
/**
* Eval sizing
*
* @param obj The layout object
*
* Manually forces a sizing re-evaluation. This is useful when the minimum
* size required by the edje theme of this layout has changed. The change on
* the minimum size required by the edje theme is not immediately reported to
* the elementary layout, so one needs to call this function in order to tell
* the widget (layout) that it needs to reevaluate its own size.
*
* The minimum size of the theme is calculated based on minimum size of
* parts, the size of elements inside containers like box and table, etc. All
* of this can change due to state changes, and that's when this function
* should be called.
*
* Also note that a standard signal of "size,eval" "elm" emitted from the
* edje object will cause this to happen too.
*
* @ingroup Layout
*/
EAPI void elm_layout_sizing_eval(Evas_Object *obj);
/**
* Request sizing reevaluation, restricted to current width and/or height
*
* Useful mostly when there are TEXTBLOCK parts defining the height of the
* object and nothing else restricting it to a minimum width. Calling this
* function will restrict the minimum size in the Edje calculation to whatever
* size it the layout has at the moment.
*
* @param obj The layout object
* @param w Restrict minimum size to the current width
* @param h Restrict minimum size ot the current height
*
* @since 1.8
*
* @ingroup Layout
*/
EAPI void elm_layout_sizing_restricted_eval(Evas_Object *obj, Eina_Bool w, Eina_Bool h);
/**
* Sets a specific cursor for an edje part.
*
* @param obj The layout object.
* @param part_name a part from loaded edje group.
* @param cursor cursor name to use, see Elementary_Cursor.h
*
* @return EINA_TRUE on success or EINA_FALSE on failure, that may be
* part not exists or it has "mouse_events: 0".
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char *cursor);
/**
* Get the cursor to be shown when mouse is over an edje part
*
* @param obj The layout object.
* @param part_name a part from loaded edje group.
* @return the cursor name.
*
* @ingroup Layout
*/
EAPI const char *elm_layout_part_cursor_get(const Evas_Object *obj, const char *part_name);
/**
* Unsets a cursor previously set with elm_layout_part_cursor_set().
*
* @param obj The layout object.
* @param part_name a part from loaded edje group, that had a cursor set
* with elm_layout_part_cursor_set().
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_part_cursor_unset(Evas_Object *obj, const char *part_name);
/**
* Sets a specific cursor style for an edje part.
*
* @param obj The layout object.
* @param part_name a part from loaded edje group.
* @param style the theme style to use (default, transparent, ...)
*
* @return EINA_TRUE on success or EINA_FALSE on failure, that may be
* part not exists or it did not had a cursor set.
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_part_cursor_style_set(Evas_Object *obj, const char *part_name, const char *style);
/**
* Get a specific cursor style for an edje part.
*
* @param obj The layout object.
* @param part_name a part from loaded edje group.
*
* @return the theme style in use, defaults to "default". If the
* object does not have a cursor set, then NULL is returned.
*
* @ingroup Layout
*/
EAPI const char *elm_layout_part_cursor_style_get(const Evas_Object *obj, const char *part_name);
/**
* Sets if the cursor set should be searched on the theme or should use
* the provided by the engine, only.
*
* @note before you set if should look on theme you should define a
* cursor with elm_layout_part_cursor_set(). By default it will only
* look for cursors provided by the engine.
*
* @param obj The layout object.
* @param part_name a part from loaded edje group.
* @param engine_only if cursors should be just provided by the engine (EINA_TRUE)
* or should also search on widget's theme as well (EINA_FALSE)
*
* @return EINA_TRUE on success or EINA_FALSE on failure, that may be
* part not exists or it did not had a cursor set.
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_part_cursor_engine_only_set(Evas_Object *obj, const char *part_name, Eina_Bool engine_only);
/*
* Set accessibility to all texblock(text) parts in the layout object
*
* @param obj The layout object.
* @param can_access makes all textblock(text) parts in the layout @p obj possible
* to have accessibility. @c EINA_TRUE means textblock(text) parts can be accessible
*
* @return @c EINA_TRUE on success or @c EINA_FALSE on failure. If @p obj is not
* a proper layout object, @c EINA_FALSE is returned.
*
* @since 1.7
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_edje_object_can_access_set(Evas_Object *obj, Eina_Bool can_access);
/*
* Get accessibility state of texblock(text) parts in the layout object
*
* @param obj The layout object.
*
* @return @c EINA_TRUE, if all textblock(text) parts in the layout can be accessible
* @c EINA_FALSET if those cannot be accessible. If @p obj is not a proper layout
* object, @c EINA_FALSE is returned.
*
* @see elm_layout_edje_object_access_set()
*
* @since 1.7
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_edje_object_can_access_get(const Evas_Object *obj);
/**
* Get a specific cursor engine_only for an edje part.
*
* @param obj The layout object.
* @param part_name a part from loaded edje group.
*
* @return whenever the cursor is just provided by engine or also from theme.
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_part_cursor_engine_only_get(const Evas_Object *obj, const char *part_name);
EAPI Eina_List *elm_layout_content_swallow_list_get(const Evas_Object *obj);
/**
* Set the layout content.
@ -614,39 +76,4 @@ EAPI Evas_Object *elm_layout_content_get(const Evas_Object *obj,
*/
EAPI Evas_Object *elm_layout_content_unset(Evas_Object *obj, const char *swallow);
/**
* Set the text of the given part
*
* @param obj The layout object
* @param part The TEXT part where to set the text
* @param text The text to set
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
*
* @ingroup Layout
*/
EAPI Eina_Bool elm_layout_text_set(Evas_Object *obj, const char *part, const char *text);
/**
* Get the text set in the given part
*
* @param obj The layout object
* @param part The TEXT part to retrieve the text off
*
* @return The text set in @p part
*
* @ingroup Layout
*/
EAPI const char *elm_layout_text_get(const Evas_Object *obj, const char *part);
/**
* Get the list of swallow parts of a given container widget
*
* @param obj The layout object
*
* @return list of swallow parts which should be freed by the user program with elm_list_free()
*
* @since 1.9
*
* @ingroup Layout
*/
EAPI Eina_List *elm_layout_content_swallow_list_get(const Evas_Object *obj);
#include "elm_layout.eo.legacy.h"