forked from enlightenment/efl
Eolian: Eo headers clean and legacy integration for:
Elc File Selector Elc File Selector Entry Elc File Selector Button Elementary Datetime Elementary Day Selector Elementary Disk Selector Elementary Entry Elementary Flip Elementary Flip Selector
This commit is contained in:
parent
4ed35ccc04
commit
40a65560f6
|
@ -593,22 +593,31 @@ BUILT_SOURCES = \
|
||||||
elc_ctxpopup.eo.legacy.h \
|
elc_ctxpopup.eo.legacy.h \
|
||||||
elm_datetime.eo.c \
|
elm_datetime.eo.c \
|
||||||
elm_datetime.eo.h \
|
elm_datetime.eo.h \
|
||||||
|
elm_datetime.eo.legacy.h \
|
||||||
elm_dayselector.eo.c \
|
elm_dayselector.eo.c \
|
||||||
elm_dayselector.eo.h \
|
elm_dayselector.eo.h \
|
||||||
|
elm_dayselector.eo.legacy.h \
|
||||||
elm_diskselector.eo.c \
|
elm_diskselector.eo.c \
|
||||||
elm_diskselector.eo.h \
|
elm_diskselector.eo.h \
|
||||||
|
elm_diskselector.eo.legacy.h \
|
||||||
elm_entry.eo.c \
|
elm_entry.eo.c \
|
||||||
elm_entry.eo.h \
|
elm_entry.eo.h \
|
||||||
|
elm_entry.eo.legacy.h \
|
||||||
elc_fileselector.eo.c \
|
elc_fileselector.eo.c \
|
||||||
elc_fileselector.eo.h \
|
elc_fileselector.eo.h \
|
||||||
|
elc_fileselector.eo.legacy.h \
|
||||||
elc_fileselector_button.eo.c \
|
elc_fileselector_button.eo.c \
|
||||||
elc_fileselector_button.eo.h \
|
elc_fileselector_button.eo.h \
|
||||||
|
elc_fileselector_button.eo.legacy.h \
|
||||||
elc_fileselector_entry.eo.c \
|
elc_fileselector_entry.eo.c \
|
||||||
elc_fileselector_entry.eo.h \
|
elc_fileselector_entry.eo.h \
|
||||||
|
elc_fileselector_entry.eo.legacy.h \
|
||||||
elm_flipselector.eo.c \
|
elm_flipselector.eo.c \
|
||||||
elm_flipselector.eo.h \
|
elm_flipselector.eo.h \
|
||||||
|
elm_flipselector.eo.legacy.h \
|
||||||
elm_flip.eo.c \
|
elm_flip.eo.c \
|
||||||
elm_flip.eo.h \
|
elm_flip.eo.h \
|
||||||
|
elm_flip.eo.legacy.h \
|
||||||
elm_gengrid.eo.c \
|
elm_gengrid.eo.c \
|
||||||
elm_gengrid.eo.h \
|
elm_gengrid.eo.h \
|
||||||
elm_gengrid_pan.eo.c \
|
elm_gengrid_pan.eo.c \
|
||||||
|
@ -904,4 +913,13 @@ nodist_includesunstable_HEADERS = \
|
||||||
elm_check.eo.legacy.h \
|
elm_check.eo.legacy.h \
|
||||||
elm_clock.eo.legacy.h \
|
elm_clock.eo.legacy.h \
|
||||||
elm_colorselector.eo.legacy.h \
|
elm_colorselector.eo.legacy.h \
|
||||||
elc_ctxpopup.eo.legacy.h
|
elc_ctxpopup.eo.legacy.h \
|
||||||
|
elm_datetime.eo.legacy.h \
|
||||||
|
elm_dayselector.eo.legacy.h \
|
||||||
|
elm_diskselector.eo.legacy.h \
|
||||||
|
elm_entry.eo.legacy.h \
|
||||||
|
elc_fileselector.eo.legacy.h \
|
||||||
|
elc_fileselector_button.eo.legacy.h \
|
||||||
|
elc_fileselector_entry.eo.legacy.h \
|
||||||
|
elm_flipselector.eo.legacy.h \
|
||||||
|
elm_flip.eo.legacy.h
|
||||||
|
|
|
@ -1,115 +1 @@
|
||||||
#include "elc_fileselector_button.eo.h"
|
#include "elc_fileselector_button.eo.h"
|
||||||
|
|
||||||
#if 0
|
|
||||||
#define ELM_OBJ_FILESELECTOR_BUTTON_CLASS elm_obj_fileselector_button_class_get()
|
|
||||||
|
|
||||||
const Eo_Class *elm_obj_fileselector_button_class_get(void) EINA_CONST;
|
|
||||||
|
|
||||||
extern EAPI Eo_Op ELM_OBJ_FILESELECTOR_BUTTON_BASE_ID;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_TITLE_SET,
|
|
||||||
ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_TITLE_GET,
|
|
||||||
ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_SIZE_SET,
|
|
||||||
ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_SIZE_GET,
|
|
||||||
ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_INWIN_MODE_SET,
|
|
||||||
ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_INWIN_MODE_GET,
|
|
||||||
ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_LAST
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ELM_OBJ_FILESELECTOR_BUTTON_ID(sub_id) (ELM_OBJ_FILESELECTOR_BUTTON_BASE_ID + sub_id)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_button_window_title_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the title for a given file selector button widget's window
|
|
||||||
*
|
|
||||||
* @param[in] title
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_window_title_set
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_button_window_title_set(title) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_TITLE_SET), EO_TYPECHECK(const char *, title)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_button_window_title_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the title for a given file selector button widget's
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_window_title_get
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_button_window_title_get(ret) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_TITLE_GET), EO_TYPECHECK(const char **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_button_window_size_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the size of a given file selector button widget's window,
|
|
||||||
* holding the file selector itself.
|
|
||||||
*
|
|
||||||
* @param[in] width
|
|
||||||
* @param[in] height
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_window_size_set
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_button_window_size_set(width, height) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_SIZE_SET), EO_TYPECHECK(Evas_Coord, width), EO_TYPECHECK(Evas_Coord, height)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_button_window_size_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the size of a given file selector button widget's window,
|
|
||||||
* holding the file selector itself.
|
|
||||||
*
|
|
||||||
* @param[out] width
|
|
||||||
* @param[out] height
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_window_size_get
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_button_window_size_get(width, height) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_WINDOW_SIZE_GET), EO_TYPECHECK(Evas_Coord *, width), EO_TYPECHECK(Evas_Coord *, height)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_button_inwin_mode_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set whether a given file selector button widget's internal file
|
|
||||||
* selector will raise an Elementary "inner window", instead of a
|
|
||||||
* dedicated Elementary window. By default, it won't.
|
|
||||||
*
|
|
||||||
* @param[in] value
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_inwin_mode_set
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_button_inwin_mode_set(value) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_INWIN_MODE_SET), EO_TYPECHECK(Eina_Bool, value)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_button_inwin_mode_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get whether a given file selector button widget's internal file
|
|
||||||
* selector will raise an Elementary "inner window", instead of a
|
|
||||||
* dedicated Elementary window.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_inwin_mode_get
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_button_inwin_mode_get(ret) ELM_OBJ_FILESELECTOR_BUTTON_ID(ELM_OBJ_FILESELECTOR_BUTTON_SUB_ID_INWIN_MODE_GET), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
#endif
|
|
|
@ -10,101 +10,4 @@
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent);
|
EAPI Evas_Object *elm_fileselector_button_add(Evas_Object *parent);
|
||||||
|
|
||||||
/**
|
#include "elc_fileselector_button.eo.legacy.h"
|
||||||
* Set the title for a given file selector button widget's window
|
|
||||||
*
|
|
||||||
* @param obj The file selector button widget
|
|
||||||
* @param title The title string
|
|
||||||
*
|
|
||||||
* This will change the popup window's title, when the file selector pops
|
|
||||||
* out after a click on the button. Those windows have the default
|
|
||||||
* (unlocalized) value of @c "Select a file" as titles.
|
|
||||||
*
|
|
||||||
* @note It will only take effect if the file selector
|
|
||||||
* button widget is @b not under "inwin mode".
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_window_title_get()
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the title for a given file selector button widget's
|
|
||||||
* window
|
|
||||||
*
|
|
||||||
* @param obj The file selector button widget
|
|
||||||
* @return Title of the file selector button's window
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_window_title_get() for more details
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
EAPI const char *elm_fileselector_button_window_title_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the size of a given file selector button widget's window,
|
|
||||||
* holding the file selector itself.
|
|
||||||
*
|
|
||||||
* @param obj The file selector button widget
|
|
||||||
* @param width The window's width
|
|
||||||
* @param height The window's height
|
|
||||||
*
|
|
||||||
* @note it will only take any effect if the file selector button
|
|
||||||
* widget is @b not under "inwin mode". The default size for the
|
|
||||||
* window (when applicable) is 400x400 pixels.
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_window_size_get()
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_button_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the size of a given file selector button widget's window,
|
|
||||||
* holding the file selector itself.
|
|
||||||
*
|
|
||||||
* @param obj The file selector button widget
|
|
||||||
* @param width Pointer into which to store the width value
|
|
||||||
* @param height Pointer into which to store the height value
|
|
||||||
*
|
|
||||||
* @note Use @c NULL pointers on the size values you're not
|
|
||||||
* interested in: they'll be ignored by the function.
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_window_size_set(), for more details
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_button_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set whether a given file selector button widget's internal file
|
|
||||||
* selector will raise an Elementary "inner window", instead of a
|
|
||||||
* dedicated Elementary window. By default, it depends on the current
|
|
||||||
* profile.
|
|
||||||
*
|
|
||||||
* @param obj The file selector button widget
|
|
||||||
* @param value @c EINA_TRUE to make it use an inner window, @c
|
|
||||||
* EINA_FALSE to make it use a dedicated window
|
|
||||||
*
|
|
||||||
* @see elm_win_inwin_add() for more information on inner windows
|
|
||||||
* @see elm_fileselector_button_inwin_mode_get()
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_button_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get whether a given file selector button widget's internal file
|
|
||||||
* selector will raise an Elementary "inner window", instead of a
|
|
||||||
* dedicated Elementary window.
|
|
||||||
*
|
|
||||||
* @param obj The file selector button widget
|
|
||||||
* @return @c EINA_TRUE if will use an inner window, @c EINA_TRUE
|
|
||||||
* if it will use a dedicated window
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_button_inwin_mode_set() for more details
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Button
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_fileselector_button_inwin_mode_get(const Evas_Object *obj);
|
|
||||||
|
|
|
@ -1,111 +1 @@
|
||||||
#include "elc_fileselector_entry.eo.h"
|
#include "elc_fileselector_entry.eo.h"
|
||||||
|
|
||||||
#if 0
|
|
||||||
#define ELM_OBJ_FILESELECTOR_ENTRY_CLASS elm_obj_fileselector_entry_class_get()
|
|
||||||
|
|
||||||
const Eo_Class *elm_obj_fileselector_entry_class_get(void) EINA_CONST;
|
|
||||||
|
|
||||||
extern EAPI Eo_Op ELM_OBJ_FILESELECTOR_ENTRY_BASE_ID;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_TITLE_SET,
|
|
||||||
ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_TITLE_GET,
|
|
||||||
ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_SIZE_SET,
|
|
||||||
ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_SIZE_GET,
|
|
||||||
ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_INWIN_MODE_SET,
|
|
||||||
ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_INWIN_MODE_GET,
|
|
||||||
ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_LAST
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ELM_OBJ_FILESELECTOR_ENTRY_ID(sub_id) (ELM_OBJ_FILESELECTOR_ENTRY_BASE_ID + sub_id)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_entry_window_title_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the title for a given file selector entry widget's window
|
|
||||||
*
|
|
||||||
* @param[in] title
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_window_title_set
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_entry_window_title_set(title) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_TITLE_SET), EO_TYPECHECK(const char *, title)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_entry_window_title_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the title set for a given file selector entry widget's
|
|
||||||
* window
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_window_title_get
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_entry_window_title_get(ret) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_TITLE_GET), EO_TYPECHECK(const char **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_entry_window_size_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the size of a given file selector entry widget's window,
|
|
||||||
* holding the file selector itself.
|
|
||||||
*
|
|
||||||
* @param[in] width
|
|
||||||
* @param[in] height
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_window_size_set
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_entry_window_size_set(width, height) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_SIZE_SET), EO_TYPECHECK(Evas_Coord, width), EO_TYPECHECK(Evas_Coord, height)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_entry_window_size_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the size of a given file selector entry widget's window,
|
|
||||||
* holding the file selector itself.
|
|
||||||
*
|
|
||||||
* @param[out] width
|
|
||||||
* @param[out] height
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_window_size_get
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_entry_window_size_get(width, height) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_WINDOW_SIZE_GET), EO_TYPECHECK(Evas_Coord *, width), EO_TYPECHECK(Evas_Coord *, height)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_entry_inwin_mode_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set whether a given file selector entry widget's internal file
|
|
||||||
*
|
|
||||||
* @param[in] value
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_inwin_mode_set
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_entry_inwin_mode_set(value) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_INWIN_MODE_SET), EO_TYPECHECK(Eina_Bool, value)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_entry_inwin_mode_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get whether a given file selector entry widget's internal file
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_inwin_mode_get
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_entry_inwin_mode_get(ret) ELM_OBJ_FILESELECTOR_ENTRY_ID(ELM_OBJ_FILESELECTOR_ENTRY_SUB_ID_INWIN_MODE_GET), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
#endif
|
|
|
@ -11,101 +11,4 @@
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent);
|
EAPI Evas_Object *elm_fileselector_entry_add(Evas_Object *parent);
|
||||||
|
|
||||||
/**
|
#include "elc_fileselector_entry.eo.legacy.h"
|
||||||
* Set the title for a given file selector entry widget's window
|
|
||||||
*
|
|
||||||
* @param obj The file selector entry widget
|
|
||||||
* @param title The title string
|
|
||||||
*
|
|
||||||
* This will change the window's title, when the file selector pops
|
|
||||||
* out after a click on the entry's button. Those windows have the
|
|
||||||
* default (unlocalized) value of @c "Select a file" as titles.
|
|
||||||
*
|
|
||||||
* @note It will only take any effect if the file selector
|
|
||||||
* entry widget is @b not under "inwin mode".
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_window_title_get()
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the title set for a given file selector entry widget's
|
|
||||||
* window
|
|
||||||
*
|
|
||||||
* @param obj The file selector entry widget
|
|
||||||
* @return Title of the file selector entry's window
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_window_title_get() for more details
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
EAPI const char *elm_fileselector_entry_window_title_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the size of a given file selector entry widget's window,
|
|
||||||
* holding the file selector itself.
|
|
||||||
*
|
|
||||||
* @param obj The file selector entry widget
|
|
||||||
* @param width The window's width
|
|
||||||
* @param height The window's height
|
|
||||||
*
|
|
||||||
* @note it will only take any effect if the file selector entry
|
|
||||||
* widget is @b not under "inwin mode". The default size for the
|
|
||||||
* window (when applicable) is 400x400 pixels.
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_window_size_get()
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the size of a given file selector entry widget's window,
|
|
||||||
* holding the file selector itself.
|
|
||||||
*
|
|
||||||
* @param obj The file selector entry widget
|
|
||||||
* @param width Pointer into which to store the width value
|
|
||||||
* @param height Pointer into which to store the height value
|
|
||||||
*
|
|
||||||
* @note Use @c NULL pointers on the size values you're not
|
|
||||||
* interested in: they'll be ignored by the function.
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_window_size_set(), for more details
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_entry_window_size_get(const Evas_Object *obj, Evas_Coord *width, Evas_Coord *height);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set whether a given file selector entry widget's internal file
|
|
||||||
* selector will raise an Elementary "inner window", instead of a
|
|
||||||
* dedicated Elementary window. By default, it depends on the current
|
|
||||||
* profile.
|
|
||||||
*
|
|
||||||
* @param obj The file selector entry widget
|
|
||||||
* @param value @c EINA_TRUE to make it use an inner window, @c
|
|
||||||
* EINA_FALSE to make it use a dedicated window
|
|
||||||
*
|
|
||||||
* @see elm_win_inwin_add() for more information on inner windows
|
|
||||||
* @see elm_fileselector_entry_inwin_mode_get()
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_entry_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get whether a given file selector entry widget's internal file
|
|
||||||
* selector will raise an Elementary "inner window", instead of a
|
|
||||||
* dedicated Elementary window.
|
|
||||||
*
|
|
||||||
* @param obj The file selector entry widget
|
|
||||||
* @return @c EINA_TRUE if will use an inner window, @c EINA_FALSE
|
|
||||||
* if it will use a dedicated window
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_entry_inwin_mode_set() for more details
|
|
||||||
*
|
|
||||||
* @ingroup File_Selector_Entry
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj);
|
|
||||||
|
|
|
@ -3,48 +3,9 @@
|
||||||
*
|
*
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "elc_fileselector.eo.h"
|
#include "elc_fileselector.eo.h"
|
||||||
|
|
||||||
#if 0
|
|
||||||
#define ELM_OBJ_FILESELECTOR_CLASS elm_obj_fileselector_class_get()
|
|
||||||
|
|
||||||
const Eo_Class *elm_obj_fileselector_class_get(void) EINA_CONST;
|
|
||||||
|
|
||||||
extern EAPI Eo_Op ELM_OBJ_FILESELECTOR_BASE_ID;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_SET,
|
|
||||||
ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_GET,
|
|
||||||
ELM_OBJ_FILESELECTOR_SUB_ID_LAST
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ELM_OBJ_FILESELECTOR_ID(sub_id) (ELM_OBJ_FILESELECTOR_BASE_ID + sub_id)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_buttons_ok_cancel_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Enable/disable the "ok" and "cancel" buttons on a given file
|
|
||||||
*
|
|
||||||
* @param[in] visible
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_buttons_ok_cancel_set
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_buttons_ok_cancel_set(visible) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_SET), EO_TYPECHECK(Eina_Bool, visible)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_fileselector_buttons_ok_cancel_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get whether the "ok" and "cancel" buttons on a given file
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_buttons_ok_cancel_get
|
|
||||||
*/
|
|
||||||
#define elm_obj_fileselector_buttons_ok_cancel_get(ret) ELM_OBJ_FILESELECTOR_ID(ELM_OBJ_FILESELECTOR_SUB_ID_BUTTONS_OK_CANCEL_GET), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
#endif
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -75,37 +75,6 @@ EAPI void elm_fileselector_folder_only_set(Evas_Object *obj, Ei
|
||||||
*/
|
*/
|
||||||
EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj);
|
EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj);
|
||||||
|
|
||||||
/**
|
|
||||||
* Enable/disable the "ok" and "cancel" buttons on a given file
|
|
||||||
* selector widget
|
|
||||||
*
|
|
||||||
* @param obj The file selector object
|
|
||||||
* @param buttons @c EINA_TRUE to show buttons, @c EINA_FALSE to hide.
|
|
||||||
*
|
|
||||||
* @note A file selector without those buttons will never emit the
|
|
||||||
* @c "done" smart event, and is only usable if one is just hooking
|
|
||||||
* to the other two events.
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_buttons_ok_cancel_get()
|
|
||||||
*
|
|
||||||
* @ingroup Fileselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get whether the "ok" and "cancel" buttons on a given file
|
|
||||||
* selector widget are being shown.
|
|
||||||
*
|
|
||||||
* @param obj The file selector object
|
|
||||||
* @return @c EINA_TRUE if they are being shown, @c EINA_FALSE
|
|
||||||
* otherwise (and on errors)
|
|
||||||
*
|
|
||||||
* @see elm_fileselector_buttons_ok_cancel_set() for more details
|
|
||||||
*
|
|
||||||
* @ingroup Fileselector
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable/disable a tree view in the given file selector widget,
|
* Enable/disable a tree view in the given file selector widget,
|
||||||
* <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
|
* <b>if it's in @c #ELM_FILESELECTOR_LIST mode</b>
|
||||||
|
@ -437,3 +406,5 @@ EAPI Elm_Fileselector_Sort elm_fileselector_sort_method_get(const Evas_Object *o
|
||||||
* @ingroup Fileselector
|
* @ingroup Fileselector
|
||||||
*/
|
*/
|
||||||
EAPI void elm_fileselector_sort_method_set(Evas_Object *obj, Elm_Fileselector_Sort method);
|
EAPI void elm_fileselector_sort_method_set(Evas_Object *obj, Elm_Fileselector_Sort method);
|
||||||
|
|
||||||
|
#include "elc_fileselector.eo.legacy.h"
|
||||||
|
|
|
@ -1,209 +1 @@
|
||||||
#include "elm_datetime.eo.h"
|
#include "elm_datetime.eo.h"
|
||||||
|
|
||||||
#if 0
|
|
||||||
#define ELM_OBJ_DATETIME_CLASS elm_obj_datetime_class_get()
|
|
||||||
|
|
||||||
const Eo_Class *elm_obj_datetime_class_get(void) EINA_CONST;
|
|
||||||
|
|
||||||
extern EAPI Eo_Op ELM_OBJ_DATETIME_BASE_ID;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_FORMAT_GET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_FORMAT_SET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_FIELD_VISIBLE_GET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_FIELD_VISIBLE_SET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_FIELD_LIMIT_GET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_FIELD_LIMIT_SET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_VALUE_GET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_VALUE_SET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_VALUE_MIN_GET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_VALUE_MIN_SET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_VALUE_MAX_GET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_VALUE_MAX_SET,
|
|
||||||
ELM_OBJ_DATETIME_SUB_ID_LAST
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ELM_OBJ_DATETIME_ID(sub_id) (ELM_OBJ_DATETIME_BASE_ID + sub_id)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_format_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the datetime format.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_datetime_format_get
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_format_get(ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FORMAT_GET), EO_TYPECHECK(const char **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_format_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the datetime format.
|
|
||||||
*
|
|
||||||
* @param[in] fmt
|
|
||||||
*
|
|
||||||
* @see elm_datetime_format_set
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_format_set(fmt) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FORMAT_SET), EO_TYPECHECK(const char *, fmt)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_field_visible_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get whether a field can be visible/not
|
|
||||||
*
|
|
||||||
* @param[in] fieldtype
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_datetime_field_visible_get
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_field_visible_get(fieldtype, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FIELD_VISIBLE_GET), EO_TYPECHECK(Elm_Datetime_Field_Type, fieldtype), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_field_visible_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Set a field to be visible or not.
|
|
||||||
*
|
|
||||||
* @param[in] fieldtype
|
|
||||||
* @param[in] visible
|
|
||||||
*
|
|
||||||
* @see elm_datetime_field_visible_set
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_field_visible_set(fieldtype, visible) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FIELD_VISIBLE_SET), EO_TYPECHECK(Elm_Datetime_Field_Type, fieldtype), EO_TYPECHECK(Eina_Bool, visible)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_field_limit_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get the field limits of a field.
|
|
||||||
*
|
|
||||||
* @param[in] fieldtype
|
|
||||||
* @param[out] min
|
|
||||||
* @param[out] max
|
|
||||||
*
|
|
||||||
* @see elm_datetime_field_limit_get
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_field_limit_get(fieldtype, min, max) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FIELD_LIMIT_GET), EO_TYPECHECK(Elm_Datetime_Field_Type, fieldtype), EO_TYPECHECK(int *, min), EO_TYPECHECK(int *, max)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_field_limit_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Set the field limits of a field.
|
|
||||||
*
|
|
||||||
* @param[in] fieldtype
|
|
||||||
* @param[in] min
|
|
||||||
* @param[in] max
|
|
||||||
*
|
|
||||||
* @see elm_datetime_field_limit_set
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_field_limit_set(fieldtype, min, max) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FIELD_LIMIT_SET), EO_TYPECHECK(Elm_Datetime_Field_Type, fieldtype), EO_TYPECHECK(int, min), EO_TYPECHECK(int, max)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_value_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get the current value of a Datetime object.
|
|
||||||
*
|
|
||||||
* @param[in,out] currtime
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_get
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_value_get(currtime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_GET), EO_TYPECHECK(struct tm *, currtime), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_value_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Set the current value of a Datetime object.
|
|
||||||
*
|
|
||||||
* @param[in] newtime
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_set
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_value_set(newtime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_SET), EO_TYPECHECK(const struct tm *, newtime), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_value_min_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get the lower boundary of a field.
|
|
||||||
*
|
|
||||||
* @param[in,out] mintime
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_min_get
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_value_min_get(mintime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_MIN_GET), EO_TYPECHECK(struct tm *, mintime), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_value_min_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Set the lower boundary of a field.
|
|
||||||
*
|
|
||||||
* @param[in] mintime
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_min_set
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_value_min_set(mintime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_MIN_SET), EO_TYPECHECK(const struct tm *, mintime), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_value_max_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get the upper boundary of a field.
|
|
||||||
*
|
|
||||||
* @param[in,out] maxtime
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_max_get
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_value_max_get(maxtime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_MAX_GET), EO_TYPECHECK(struct tm *, maxtime), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_datetime_value_max_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Set the upper boundary of a field.
|
|
||||||
*
|
|
||||||
* @param[in] maxtime
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_max_set
|
|
||||||
*
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
#define elm_obj_datetime_value_max_set(maxtime, ret) ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_VALUE_MAX_SET), EO_TYPECHECK(const struct tm *, maxtime), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
#endif
|
|
|
@ -12,371 +12,4 @@
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *elm_datetime_add(Evas_Object *parent);
|
EAPI Evas_Object *elm_datetime_add(Evas_Object *parent);
|
||||||
|
|
||||||
/**
|
#include "elm_datetime.eo.legacy.h"
|
||||||
* Get the datetime format. Format is a combination of allowed Libc date format
|
|
||||||
* specifiers like: "%b %d, %Y %I : %M %p".
|
|
||||||
*
|
|
||||||
* Maximum allowed format length is 64 chars.
|
|
||||||
*
|
|
||||||
* Format can include separators for each individual datetime field except
|
|
||||||
* for AM/PM field.
|
|
||||||
*
|
|
||||||
* Each separator can be a maximum of 6 UTF-8 bytes.
|
|
||||||
* Space is also taken as a separator.
|
|
||||||
*
|
|
||||||
* Following are the allowed set of format specifiers for each datetime field.
|
|
||||||
*
|
|
||||||
* @b %%Y : The year as a decimal number including the century.
|
|
||||||
*
|
|
||||||
* @b %%y : The year as a decimal number without a century (range 00 to 99).
|
|
||||||
*
|
|
||||||
* @b %%m : The month as a decimal number (range 01 to 12).
|
|
||||||
*
|
|
||||||
* @b %%b : The abbreviated month name according to the current locale.
|
|
||||||
*
|
|
||||||
* @b %%B : The full month name according to the current locale.
|
|
||||||
*
|
|
||||||
* @b %%h : The abbreviated month name according to the current locale(same as %%b).
|
|
||||||
*
|
|
||||||
* @b %%d : The day of the month as a decimal number (range 01 to 31).
|
|
||||||
*
|
|
||||||
* @b %%e : The day of the month as a decimal number (range 1 to 31). single
|
|
||||||
* digits are preceded by a blank.
|
|
||||||
*
|
|
||||||
* @b %%I : The hour as a decimal number using a 12-hour clock (range 01 to 12).
|
|
||||||
*
|
|
||||||
* @b %%H : The hour as a decimal number using a 24-hour clock (range 00 to 23).
|
|
||||||
*
|
|
||||||
* @b %%k : The hour (24-hour clock) as a decimal number (range 0 to 23). single
|
|
||||||
* digits are preceded by a blank.
|
|
||||||
*
|
|
||||||
* @b %%l : The hour (12-hour clock) as a decimal number (range 1 to 12); single
|
|
||||||
* digits are preceded by a blank.
|
|
||||||
*
|
|
||||||
* @b %%M : The minute as a decimal number (range 00 to 59).
|
|
||||||
*
|
|
||||||
* @b %%p : Either 'AM' or 'PM' according to the given time value, or the
|
|
||||||
* corresponding strings for the current locale. Noon is treated as 'PM'
|
|
||||||
* and midnight as 'AM'.
|
|
||||||
*
|
|
||||||
* @b %%P : Like %p but in lower case: 'am' or 'pm' or a corresponding string for
|
|
||||||
* the current locale.
|
|
||||||
*
|
|
||||||
* @b %%c : The preferred date and time representation for the current locale.
|
|
||||||
*
|
|
||||||
* @b %%x : The preferred date representation for the current locale without the time.
|
|
||||||
*
|
|
||||||
* @b %%X : The preferred time representation for the current locale without the date.
|
|
||||||
*
|
|
||||||
* @b %%r : The complete calendar time using the AM/PM format of the current locale.
|
|
||||||
*
|
|
||||||
* @b %%R : The hour and minute in decimal numbers using the format %H:%M.
|
|
||||||
*
|
|
||||||
* @b %%T : The time of day in decimal numbers using the format %H:%M:%S.
|
|
||||||
*
|
|
||||||
* @b %%D : The date using the format %%m/%%d/%%y.
|
|
||||||
*
|
|
||||||
* @b %%F : The date using the format %%Y-%%m-%%d.
|
|
||||||
*
|
|
||||||
* These specifiers can be arranged in any order and the widget will display the
|
|
||||||
* fields accordingly.
|
|
||||||
*
|
|
||||||
* Default format is taken as per the system locale settings.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @return The datetime format string. Example: "%b %d, %Y %I : %M %p"
|
|
||||||
*
|
|
||||||
* @see elm_datetime_format_set()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI const char *elm_datetime_format_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the datetime format. Format is a combination of allowed Libc date format
|
|
||||||
* specifiers like: "%b %d, %Y %I : %M %p".
|
|
||||||
*
|
|
||||||
* Maximum allowed format length is 64 chars.
|
|
||||||
*
|
|
||||||
* Format can include separators for each individual datetime field except
|
|
||||||
* for AM/PM field.
|
|
||||||
*
|
|
||||||
* Each separator can be a maximum of 6 UTF-8 bytes.
|
|
||||||
* Space is also taken as a separator.
|
|
||||||
*
|
|
||||||
* Following are the allowed set of format specifiers for each datetime field.
|
|
||||||
*
|
|
||||||
* @b %%Y : The year as a decimal number including the century.
|
|
||||||
*
|
|
||||||
* @b %%y : The year as a decimal number without a century (range 00 to 99).
|
|
||||||
*
|
|
||||||
* @b %%m : The month as a decimal number (range 01 to 12).
|
|
||||||
*
|
|
||||||
* @b %%b : The abbreviated month name according to the current locale.
|
|
||||||
*
|
|
||||||
* @b %%B : The full month name according to the current locale.
|
|
||||||
*
|
|
||||||
* @b %%h : The abbreviated month name according to the current locale(same as %%b).
|
|
||||||
*
|
|
||||||
* @b %%d : The day of the month as a decimal number (range 01 to 31).
|
|
||||||
*
|
|
||||||
* @b %%e : The day of the month as a decimal number (range 1 to 31). single
|
|
||||||
* digits are preceded by a blank.
|
|
||||||
*
|
|
||||||
* @b %%I : The hour as a decimal number using a 12-hour clock (range 01 to 12).
|
|
||||||
*
|
|
||||||
* @b %%H : The hour as a decimal number using a 24-hour clock (range 00 to 23).
|
|
||||||
*
|
|
||||||
* @b %%k : The hour (24-hour clock) as a decimal number (range 0 to 23). single
|
|
||||||
* digits are preceded by a blank.
|
|
||||||
*
|
|
||||||
* @b %%l : The hour (12-hour clock) as a decimal number (range 1 to 12); single
|
|
||||||
* digits are preceded by a blank.
|
|
||||||
*
|
|
||||||
* @b %%M : The minute as a decimal number (range 00 to 59).
|
|
||||||
*
|
|
||||||
* @b %%p : Either 'AM' or 'PM' according to the given time value, or the
|
|
||||||
* corresponding strings for the current locale. Noon is treated as 'PM'
|
|
||||||
* and midnight as 'AM'.
|
|
||||||
*
|
|
||||||
* @b %%P : Like %p but in lower case: 'am' or 'pm' or a corresponding string for
|
|
||||||
* the current locale.
|
|
||||||
*
|
|
||||||
* @b %%c : The preferred date and time representation for the current locale.
|
|
||||||
*
|
|
||||||
* @b %%x : The preferred date representation for the current locale without the time.
|
|
||||||
*
|
|
||||||
* @b %%X : The preferred time representation for the current locale without the date.
|
|
||||||
*
|
|
||||||
* @b %%r : The complete calendar time using the AM/PM format of the current locale.
|
|
||||||
*
|
|
||||||
* @b %%R : The hour and minute in decimal numbers using the format %H:%M.
|
|
||||||
*
|
|
||||||
* @b %%T : The time of day in decimal numbers using the format %H:%M:%S.
|
|
||||||
*
|
|
||||||
* @b %%D : The date using the format %%m/%%d/%%y.
|
|
||||||
*
|
|
||||||
* @b %%F : The date using the format %%Y-%%m-%%d.
|
|
||||||
*
|
|
||||||
* These specifiers can be arranged in any order and the widget will display the
|
|
||||||
* fields accordingly.
|
|
||||||
*
|
|
||||||
* Default format is taken as per the system locale settings.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @param fmt The datetime format
|
|
||||||
*
|
|
||||||
* @see elm_datetime_format_get()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI void elm_datetime_format_set(Evas_Object *obj, const char *fmt);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get whether a field can be visible/not
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @param fieldtype Type of the field. ELM_DATETIME_YEAR etc
|
|
||||||
* @return bool @c EINA_TRUE, if field can be visible. @c EINA_FALSE otherwise.
|
|
||||||
*
|
|
||||||
* @see elm_datetime_field_visible_set()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_datetime_field_visible_get(const Evas_Object *obj, Elm_Datetime_Field_Type fieldtype);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Set a field to be visible or not.
|
|
||||||
* Setting this API True does not ensure that the field is visible, apart from
|
|
||||||
* this, the field's format must be present in Datetime overall format.
|
|
||||||
* If a field's visibility is set to False then it won't appear even though
|
|
||||||
* its format is present in overall format.
|
|
||||||
* So if and only if this API is set true and the corresponding field's format
|
|
||||||
* is present in Datetime format, the field is visible.
|
|
||||||
*
|
|
||||||
* By default the field visibility is set to True.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @param fieldtype Type of the field. ELM_DATETIME_YEAR etc.
|
|
||||||
* @param visible @c EINA_TRUE field can be visible, @c EINA_FALSE otherwise.
|
|
||||||
*
|
|
||||||
* @see elm_datetime_field_visible_get()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI void elm_datetime_field_visible_set(Evas_Object *obj, Elm_Datetime_Field_Type fieldtype, Eina_Bool visible);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the field limits of a field.
|
|
||||||
*
|
|
||||||
* Limits can be set to individual fields, independently, except for AM/PM field.
|
|
||||||
* Any field can display the values only in between these Minimum and Maximum limits unless
|
|
||||||
* the corresponding time value is restricted from MinTime to MaxTime.
|
|
||||||
* That is, Min/ Max field limits always works under the limitations of MinTime/ MaxTime.
|
|
||||||
*
|
|
||||||
* There is no provision to set the limits of AM/PM field.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @param fieldtype Type of the field. ELM_DATETIME_YEAR etc.
|
|
||||||
* @param min Reference to field's minimum value
|
|
||||||
* @param max Reference to field's maximum value
|
|
||||||
*
|
|
||||||
* @see elm_datetime_field_limit_set()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI void elm_datetime_field_limit_get(const Evas_Object *obj, Elm_Datetime_Field_Type fieldtype, int *min, int *max);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Set the field limits of a field.
|
|
||||||
*
|
|
||||||
* Limits can be set to individual fields, independently, except for AM/PM field.
|
|
||||||
* Any field can display the values only in between these Minimum and Maximum limits unless
|
|
||||||
* the corresponding time value is restricted from MinTime to MaxTime.
|
|
||||||
* That is, Min/ Max field limits always works under the limitations of MinTime/ MaxTime.
|
|
||||||
*
|
|
||||||
* There is no provision to set the limits of AM/PM field.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @param fieldtype Type of the field. ELM_DATETIME_YEAR etc.
|
|
||||||
* @param min Reference to field's minimum value
|
|
||||||
* @param max Reference to field's maximum value
|
|
||||||
*
|
|
||||||
* @see elm_datetime_field_limit_set()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI void elm_datetime_field_limit_set(Evas_Object *obj, Elm_Datetime_Field_Type fieldtype, int min, int max);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the current value of a Datetime object.
|
|
||||||
*
|
|
||||||
* Year: years since 1900. Negative value represents year below 1900 (year
|
|
||||||
* value -30 represents 1870). Year default range is from 70 to 137.
|
|
||||||
*
|
|
||||||
* Month: default value range is from 0 to 11.
|
|
||||||
*
|
|
||||||
* Date: default value range is from 1 to 31 according to the month value.
|
|
||||||
*
|
|
||||||
* Hour: default value will be in terms of 24 hr format (0~23)
|
|
||||||
*
|
|
||||||
* Minute: default value range is from 0 to 59.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object.
|
|
||||||
* @param currtime Time structure.
|
|
||||||
* @return @c EINA_TRUE if current time is returned successfully.
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_set()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_datetime_value_get(const Evas_Object *obj, struct tm *currtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Set the current value of a Datetime object.
|
|
||||||
*
|
|
||||||
* Year: years since 1900. Negative value represents year below 1900 (year
|
|
||||||
* value -30 represents 1870). Year default range is from 70 to 137.
|
|
||||||
*
|
|
||||||
* Month: default value range is from 0 to 11.
|
|
||||||
*
|
|
||||||
* Date: default value range is from 1 to 31 according to the month value.
|
|
||||||
*
|
|
||||||
* Hour: default value will be in terms of 24 hr format (0~23)
|
|
||||||
*
|
|
||||||
* Minute: default value range is from 0 to 59.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @param obj The datetime object.
|
|
||||||
* @param newtime Time structure filled with values to be set.
|
|
||||||
* @return @c EINA_TRUE if current time is set successfully.
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_set()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_datetime_value_set(Evas_Object *obj, const struct tm *newtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the lower boundary of a field.
|
|
||||||
*
|
|
||||||
* Year: years since 1900. Negative value represents year below 1900 (year
|
|
||||||
* value -30 represents 1870). Year default range is from 70 to 137.
|
|
||||||
*
|
|
||||||
* Month: default value range is from 0 to 11.
|
|
||||||
*
|
|
||||||
* Date: default value range is from 1 to 31 according to the month value.
|
|
||||||
*
|
|
||||||
* Hour: default value will be in terms of 24 hr format (0~23)
|
|
||||||
*
|
|
||||||
* Minute: default value range is from 0 to 59.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @param mintime Time structure.
|
|
||||||
* @return @c EINA_TRUE if minimum value is successfully returned.
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_min_set()
|
|
||||||
* @ingroup Datepicker
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_datetime_value_min_get(const Evas_Object *obj, struct tm *mintime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Set the lower boundary of a field.
|
|
||||||
*
|
|
||||||
* Year: years since 1900. Negative value represents year below 1900 (year
|
|
||||||
* value -30 represents 1870). Year default range is from 70 to 137.
|
|
||||||
*
|
|
||||||
* Month: default value range is from 0 to 11.
|
|
||||||
*
|
|
||||||
* Date: default value range is from 1 to 31 according to the month value.
|
|
||||||
*
|
|
||||||
* Hour: default value will be in terms of 24 hr format (0~23)
|
|
||||||
*
|
|
||||||
* Minute: default value range is from 0 to 59.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object.
|
|
||||||
* @param mintime Time structure containing the minimum time value.
|
|
||||||
* @return @c EINA_TRUE if minimum value is accepted.
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_min_get()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_datetime_value_min_set(Evas_Object *obj, const struct tm *mintime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the upper boundary of a field.
|
|
||||||
*
|
|
||||||
* Year: years since 1900. Negative value represents year below 1900 (year
|
|
||||||
* value -30 represents 1870). Year default range is from 70 to 137.
|
|
||||||
*
|
|
||||||
* Month: default value range is from 0 to 11.
|
|
||||||
*
|
|
||||||
* Date: default value range is from 1 to 31 according to the month value.
|
|
||||||
*
|
|
||||||
* Hour: default value will be in terms of 24 hr format (0~23)
|
|
||||||
*
|
|
||||||
* Minute: default value range is from 0 to 59.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @param maxtime Time structure containing the maximum time value.
|
|
||||||
* @return @c EINA_TRUE if maximum value is returned successfully.
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_max_set()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_datetime_value_max_get(const Evas_Object *obj, struct tm *maxtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Set the upper boundary of a field.
|
|
||||||
*
|
|
||||||
* Year: years since 1900. Negative value represents year below 1900 (year
|
|
||||||
* value -30 represents 1870). Year default range is from 70 to 137.
|
|
||||||
*
|
|
||||||
* Month: default value range is from 0 to 11.
|
|
||||||
*
|
|
||||||
* Date: default value range is from 1 to 31 according to the month value.
|
|
||||||
*
|
|
||||||
* Hour: default value will be in terms of 24 hr format (0~23)
|
|
||||||
*
|
|
||||||
* Minute: default value range is from 0 to 59.
|
|
||||||
*
|
|
||||||
* @param obj The datetime object
|
|
||||||
* @param maxtime Time structure containing the maximum time value.
|
|
||||||
* @return @c EINA_TRUE if maximum value is accepted.
|
|
||||||
*
|
|
||||||
* @see elm_datetime_value_max_get()
|
|
||||||
* @ingroup Datetime
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_datetime_value_max_set(Evas_Object *obj, const struct tm *maxtime);
|
|
||||||
|
|
|
@ -1,170 +1 @@
|
||||||
#include "elm_dayselector.eo.h"
|
#include "elm_dayselector.eo.h"
|
||||||
|
|
||||||
#if 0
|
|
||||||
#define ELM_OBJ_DAYSELECTOR_CLASS elm_obj_dayselector_class_get()
|
|
||||||
|
|
||||||
const Eo_Class *elm_obj_dayselector_class_get(void) EINA_CONST;
|
|
||||||
|
|
||||||
extern EAPI Eo_Op ELM_OBJ_DAYSELECTOR_BASE_ID;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_DAY_SELECTED_SET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_DAY_SELECTED_GET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_WEEK_START_SET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_WEEK_START_GET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_START_SET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_START_GET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_LENGTH_SET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_LENGTH_GET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKDAYS_NAMES_SET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKDAYS_NAMES_GET,
|
|
||||||
ELM_OBJ_DAYSELECTOR_SUB_ID_LAST
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ELM_OBJ_DAYSELECTOR_ID(sub_id) (ELM_OBJ_DAYSELECTOR_BASE_ID + sub_id)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_day_selected_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the state of given Dayselector_Day.
|
|
||||||
*
|
|
||||||
* @param[in] day
|
|
||||||
* @param[in] selected
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_day_selected_set
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_day_selected_set(day, selected) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_DAY_SELECTED_SET), EO_TYPECHECK(Elm_Dayselector_Day, day), EO_TYPECHECK(Eina_Bool, selected)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_day_selected_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the state of given Dayselector_Day.
|
|
||||||
*
|
|
||||||
* @param[in] day
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_day_selected_get
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_day_selected_get(day, ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_DAY_SELECTED_GET), EO_TYPECHECK(Elm_Dayselector_Day, day), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_week_start_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the starting day of Dayselector.
|
|
||||||
*
|
|
||||||
* @param[in] day
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_week_start_set
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_week_start_set(day) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEK_START_SET), EO_TYPECHECK(Elm_Dayselector_Day, day)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_week_start_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the starting day of Dayselector.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_week_start_get
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_week_start_get(ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEK_START_GET), EO_TYPECHECK(Elm_Dayselector_Day *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_weekend_start_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the weekend starting day of Dayselector.
|
|
||||||
*
|
|
||||||
* @param[in] day
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekend_start_set
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_weekend_start_set(day) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_START_SET), EO_TYPECHECK(Elm_Dayselector_Day, day)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_weekend_start_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the weekend starting day of Dayselector.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekend_start_get
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_weekend_start_get(ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_START_GET), EO_TYPECHECK(Elm_Dayselector_Day *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_weekend_length_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the weekend length of Dayselector.
|
|
||||||
*
|
|
||||||
* @param[in] length
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekend_length_set
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_weekend_length_set(length) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_LENGTH_SET), EO_TYPECHECK(unsigned int, length)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_weekend_length_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the weekend length of Dayselector.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekend_length_get
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_weekend_length_get(ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKEND_LENGTH_GET), EO_TYPECHECK(unsigned int *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_weekdays_names_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the weekdays's names
|
|
||||||
*
|
|
||||||
* @param[in] weekdays
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekdays_names_set
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_weekdays_names_set(weekdays) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKDAYS_NAMES_SET), EO_TYPECHECK(const char **, weekdays)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_dayselector_weekdays_names_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the weekdays' names
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekdays_names_get
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_dayselector_weekdays_names_get(ret) ELM_OBJ_DAYSELECTOR_ID(ELM_OBJ_DAYSELECTOR_SUB_ID_WEEKDAYS_NAMES_GET), EO_TYPECHECK(Eina_List **, ret)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
@ -8,157 +8,4 @@
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *elm_dayselector_add(Evas_Object *parent);
|
EAPI Evas_Object *elm_dayselector_add(Evas_Object *parent);
|
||||||
|
|
||||||
/**
|
#include "elm_dayselector.eo.legacy.h"
|
||||||
* Set the state of given Dayselector_Day.
|
|
||||||
*
|
|
||||||
* @param obj Dayselector object
|
|
||||||
* @param day Dayselector_Day that the user want to set state.
|
|
||||||
* @param selected state of the day. @c EINA_TRUE is selected.
|
|
||||||
*
|
|
||||||
* @see Elm_Dayselector_Day
|
|
||||||
* @see elm_dayselector_day_selected_get()
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_dayselector_day_selected_set(Evas_Object *obj, Elm_Dayselector_Day day, Eina_Bool selected);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the state of given Dayselector_Day.
|
|
||||||
*
|
|
||||||
* @param obj Dayselector object
|
|
||||||
* @param day Dayselector_Day that the user want to know state.
|
|
||||||
* @return @c EINA_TRUE, if the Day is selected
|
|
||||||
*
|
|
||||||
* @see Elm_Dayselector_Day
|
|
||||||
* @see elm_dayselector_day_selected_set()
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_dayselector_day_selected_get(const Evas_Object *obj, Elm_Dayselector_Day day);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the starting day of Dayselector.
|
|
||||||
*
|
|
||||||
* @param obj Dayselector object
|
|
||||||
* @param day Dayselector_Day the first day that the user wants to display.
|
|
||||||
*
|
|
||||||
* @see Elm_Dayselector_Day
|
|
||||||
* @see elm_dayselector_week_start_get()
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_dayselector_week_start_set(Evas_Object *obj, Elm_Dayselector_Day day);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the starting day of Dayselector.
|
|
||||||
*
|
|
||||||
* @param obj Dayselector object
|
|
||||||
* @return Day from where Dayselector displays all the weekdays in order.
|
|
||||||
*
|
|
||||||
* @see Elm_Dayselector_Day
|
|
||||||
* @see elm_dayselector_week_start_set()
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Dayselector_Day elm_dayselector_week_start_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the weekend starting day of Dayselector.
|
|
||||||
*
|
|
||||||
* @param obj Dayselector object
|
|
||||||
* @param day Dayselector_Day the first day from where weekend starts.
|
|
||||||
*
|
|
||||||
* @see Elm_Dayselector_Day
|
|
||||||
* @see elm_dayselector_weekend_start_get()
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_dayselector_weekend_start_set(Evas_Object *obj, Elm_Dayselector_Day day);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the weekend starting day of Dayselector.
|
|
||||||
*
|
|
||||||
* @param obj Dayselector object
|
|
||||||
* @return Elm_Dayselector_Day Day from where weekend starts.
|
|
||||||
*
|
|
||||||
* @see Elm_Dayselector_Day
|
|
||||||
* @see elm_dayselector_weekend_start_set()
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Dayselector_Day elm_dayselector_weekend_start_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the weekend length of Dayselector.
|
|
||||||
*
|
|
||||||
* @param obj Dayselector object
|
|
||||||
* @param length Weekend length, number of days as an integer.
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekend_length_get()
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_dayselector_weekend_length_set(Evas_Object *obj, unsigned int length);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the weekend length of Dayselector.
|
|
||||||
*
|
|
||||||
* @param obj Dayselector object
|
|
||||||
* @return Number of days marked as a weekend.
|
|
||||||
*
|
|
||||||
* @see Elm_Dayselector_Day
|
|
||||||
* @see elm_dayselector_weekend_length_set()
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI unsigned int elm_dayselector_weekend_length_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set weekdays names to be displayed by the Dayselector.
|
|
||||||
*
|
|
||||||
* @param obj The Dayselector object.
|
|
||||||
* @param weekdays Array of seven strings to be used as weekday names.
|
|
||||||
* @warning It must have 7 elements, or it will access invalid memory.
|
|
||||||
* @warning The strings must be NULL terminated ('@\0').
|
|
||||||
*
|
|
||||||
* By default or if @a weekdays is @c NULL, weekdays abbreviations get from system are displayed:
|
|
||||||
* E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
|
||||||
*
|
|
||||||
* The first string should be related to Sunday, the second to Monday...
|
|
||||||
*
|
|
||||||
* The usage should be like this:
|
|
||||||
* @code
|
|
||||||
* const char *weekdays[] =
|
|
||||||
* {
|
|
||||||
* "Sunday", "Monday", "Tuesday", "Wednesday",
|
|
||||||
* "Thursday", "Friday", "Saturday"
|
|
||||||
* };
|
|
||||||
* elm_dayselector_wekdays_names_set(calendar, weekdays);
|
|
||||||
* @endcode
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekdays_name_get()
|
|
||||||
* @see elm_dayselector_weekend_start_set()
|
|
||||||
*
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_dayselector_weekdays_names_set(Evas_Object *obj, const char *weekdays[]);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get weekdays names displayed by the calendar.
|
|
||||||
*
|
|
||||||
* @param obj The Dayselector object.
|
|
||||||
* @return A list of seven strings to be used as weekday names.
|
|
||||||
*
|
|
||||||
* By default, weekdays abbreviations get from system are displayed:
|
|
||||||
* E.g. for an en_US locale: "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
|
||||||
* The first string is related to Sunday, the second to Monday...
|
|
||||||
*
|
|
||||||
* @see elm_dayselector_weekdays_name_set()
|
|
||||||
*
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @ingroup Dayselector
|
|
||||||
*/
|
|
||||||
EAPI Eina_List *elm_dayselector_weekdays_names_get(const Evas_Object *obj);
|
|
||||||
|
|
|
@ -1,199 +1 @@
|
||||||
#include "elm_diskselector.eo.h"
|
#include "elm_diskselector.eo.h"
|
||||||
|
|
||||||
#if 0
|
|
||||||
#define ELM_OBJ_DISKSELECTOR_CLASS elm_obj_diskselector_class_get()
|
|
||||||
|
|
||||||
const Eo_Class *elm_obj_diskselector_class_get(void) EINA_CONST;
|
|
||||||
|
|
||||||
extern EAPI Eo_Op ELM_OBJ_DISKSELECTOR_BASE_ID;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_ROUND_ENABLED_GET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_ROUND_ENABLED_SET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_SIDE_TEXT_MAX_LENGTH_GET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_SIDE_TEXT_MAX_LENGTH_SET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_CLEAR,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_ITEMS_GET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_ITEM_APPEND,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_SELECTED_ITEM_GET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_FIRST_ITEM_GET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_LAST_ITEM_GET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_DISPLAY_ITEM_NUM_SET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_DISPLAY_ITEM_NUM_GET,
|
|
||||||
ELM_OBJ_DISKSELECTOR_SUB_ID_LAST
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ELM_OBJ_DISKSELECTOR_ID(sub_id) (ELM_OBJ_DISKSELECTOR_BASE_ID + sub_id)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_round_enabled_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get a value whether round mode is enabled or not.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_round_enabled_get
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_round_enabled_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_ROUND_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_round_enabled_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Enable or disable round mode.
|
|
||||||
*
|
|
||||||
* @param[in] enabled
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_round_enabled_set
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_round_enabled_set(enabled) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_ROUND_ENABLED_SET), EO_TYPECHECK(Eina_Bool, enabled)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_side_text_max_length_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the side labels max length.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_side_text_max_length_get
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_side_text_max_length_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_SIDE_TEXT_MAX_LENGTH_GET), EO_TYPECHECK(int *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_side_text_max_length_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the side labels max length.
|
|
||||||
*
|
|
||||||
* @param[in] len
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_side_text_max_length_set
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_side_text_max_length_set(len) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_SIDE_TEXT_MAX_LENGTH_SET), EO_TYPECHECK(int, len)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_clear
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Remove all diskselector's items.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_clear
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_clear() ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_CLEAR)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_items_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get a list of all the diskselector items.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_items_get
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_items_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_item_append
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Appends a new item to the diskselector object.
|
|
||||||
*
|
|
||||||
* @param[in] label
|
|
||||||
* @param[in] icon
|
|
||||||
* @param[in] func
|
|
||||||
* @param[in] data
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_item_append
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_item_append(label, icon, func, data, ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_ITEM_APPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(Evas_Object *, icon), EO_TYPECHECK(Evas_Smart_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Object_Item **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_selected_item_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the selected item.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_selected_item_get
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_selected_item_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_SELECTED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_first_item_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the first item of the diskselector.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_first_item_get
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_first_item_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_FIRST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_last_item_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the last item of the diskselector.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_last_item_get
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_last_item_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_LAST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_display_item_num_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the number of items to be displayed.
|
|
||||||
*
|
|
||||||
* @param[in] num
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_display_item_num_set
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_display_item_num_set(num) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_DISPLAY_ITEM_NUM_SET), EO_TYPECHECK(int, num)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_diskselector_display_item_num_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the number of items in the diskselector object.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_display_item_num_get
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_diskselector_display_item_num_get(ret) ELM_OBJ_DISKSELECTOR_ID(ELM_OBJ_DISKSELECTOR_SUB_ID_DISPLAY_ITEM_NUM_GET), EO_TYPECHECK(int *, ret)
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -11,230 +11,4 @@
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent);
|
EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent);
|
||||||
|
|
||||||
/**
|
#include "elm_diskselector.eo.legacy.h"
|
||||||
* Get a value whether round mode is enabled or not.
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_round_enabled_set() for details.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @return @c EINA_TRUE means round mode is enabled. @c EINA_FALSE indicates
|
|
||||||
* it's disabled. If @p obj is @c NULL, @c EINA_FALSE is returned.
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_diskselector_round_enabled_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Enable or disable round mode.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @param enabled @c EINA_TRUE to enable round mode or @c EINA_FALSE to
|
|
||||||
* disable it.
|
|
||||||
*
|
|
||||||
* Disabled by default. If round mode is enabled the items list will
|
|
||||||
* work like a circular list, so when the user reaches the last item,
|
|
||||||
* the first one will popup.
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_round_enabled_get()
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_diskselector_round_enabled_set(Evas_Object *obj, Eina_Bool enabled);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the side labels max length.
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_side_text_max_length_set() for details.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @return The max length defined for side labels, or 0 if not a valid
|
|
||||||
* diskselector.
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI int elm_diskselector_side_text_max_length_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the side labels max length.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @param len The max length defined for side labels.
|
|
||||||
*
|
|
||||||
* Length is the number of characters of items' label that will be
|
|
||||||
* visible when it's set on side positions. It will just crop
|
|
||||||
* the string after defined size. E.g.:
|
|
||||||
*
|
|
||||||
* An item with label "January" would be displayed on side position as
|
|
||||||
* "Jan" if max length is set to 3, or "Janu", if this property
|
|
||||||
* is set to 4.
|
|
||||||
*
|
|
||||||
* When it's selected, the entire label will be displayed, except for
|
|
||||||
* width restrictions. In this case label will be cropped and "..."
|
|
||||||
* will be concatenated.
|
|
||||||
*
|
|
||||||
* Default side label max length is 3.
|
|
||||||
*
|
|
||||||
* This property will be applied over all items, included before or
|
|
||||||
* later this function call.
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_diskselector_side_text_max_length_set(Evas_Object *obj, int len);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove all diskselector's items.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
*
|
|
||||||
* @see elm_object_item_del()
|
|
||||||
* @see elm_diskselector_item_append()
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_diskselector_clear(Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a list of all the diskselector items.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @return An @c Eina_List of diskselector items, #Elm_Object_Item,
|
|
||||||
* or @c NULL on failure.
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_item_append()
|
|
||||||
* @see elm_object_item_del()
|
|
||||||
* @see elm_diskselector_clear()
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Appends a new item to the diskselector object.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @param label The label of the diskselector item.
|
|
||||||
* @param icon The icon object to use at left side of the item. An
|
|
||||||
* icon can be any Evas object, but usually it is an icon created
|
|
||||||
* with elm_icon_add().
|
|
||||||
* @param func The function to call when the item is selected.
|
|
||||||
* @param data The data to associate with the item for related callbacks.
|
|
||||||
*
|
|
||||||
* @return The created item or @c NULL upon failure.
|
|
||||||
*
|
|
||||||
* A new item will be created and appended to the diskselector, i.e., will
|
|
||||||
* be set as last item. Also, if there is no selected item, it will
|
|
||||||
* be selected. This will always happens for the first appended item.
|
|
||||||
*
|
|
||||||
* If no icon is set, label will be centered on item position, otherwise
|
|
||||||
* the icon will be placed at left of the label, that will be shifted
|
|
||||||
* to the right.
|
|
||||||
*
|
|
||||||
* Items created with this method can be deleted with
|
|
||||||
* elm_object_item_del().
|
|
||||||
*
|
|
||||||
* Associated @p data can be properly freed when item is deleted if a
|
|
||||||
* callback function is set with elm_object_item_del_cb_set().
|
|
||||||
*
|
|
||||||
* If a function is passed as argument, it will be called every time this item
|
|
||||||
* is selected, i.e., the user stops the diskselector with this
|
|
||||||
* item on center position. If such function isn't needed, just passing
|
|
||||||
* @c NULL as @p func is enough. The same should be done for @p data.
|
|
||||||
*
|
|
||||||
* Simple example (with no function callback or data associated):
|
|
||||||
* @code
|
|
||||||
* disk = elm_diskselector_add(win);
|
|
||||||
* ic = elm_icon_add(win);
|
|
||||||
* elm_image_file_set(ic, "path/to/image", NULL);
|
|
||||||
* elm_icon_resizable_set(ic, EINA_TRUE, EINA_TRUE);
|
|
||||||
* elm_diskselector_item_append(disk, "label", ic, NULL, NULL);
|
|
||||||
* @endcode
|
|
||||||
*
|
|
||||||
* @see elm_object_item_del()
|
|
||||||
* @see elm_diskselector_clear()
|
|
||||||
* @see elm_icon_add()
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_diskselector_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the selected item.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @return The selected diskselector item.
|
|
||||||
*
|
|
||||||
* The selected item can be unselected with function
|
|
||||||
* elm_diskselector_item_selected_set(), and the first item of
|
|
||||||
* diskselector will be selected.
|
|
||||||
*
|
|
||||||
* The selected item always will be centered on diskselector, with
|
|
||||||
* full label displayed, i.e., max length set to side labels won't
|
|
||||||
* apply on the selected item. More details on
|
|
||||||
* elm_diskselector_side_text_max_length_set().
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_diskselector_selected_item_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the first item of the diskselector.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @return The first item, or @c NULL if none.
|
|
||||||
*
|
|
||||||
* The list of items follows append order. So it will return the first
|
|
||||||
* item appended to the widget that wasn't deleted.
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_item_append()
|
|
||||||
* @see elm_diskselector_items_get()
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_diskselector_first_item_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the last item of the diskselector.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @return The last item, or @c NULL if none.
|
|
||||||
*
|
|
||||||
* The list of items follows append order. So it will return last first
|
|
||||||
* item appended to the widget that wasn't deleted.
|
|
||||||
*
|
|
||||||
* @see elm_diskselector_item_append()
|
|
||||||
* @see elm_diskselector_items_get()
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_diskselector_last_item_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the number of items to be displayed.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
* @param num The number of items the diskselector will display.
|
|
||||||
*
|
|
||||||
* Default value is 3, and also it's the minimum. If @p num is less
|
|
||||||
* than 3, it will be set to 3.
|
|
||||||
*
|
|
||||||
* Also, it can be set on theme, using data item @c display_item_num
|
|
||||||
* on group "elm/diskselector/item/X", where X is style set.
|
|
||||||
* E.g.:
|
|
||||||
*
|
|
||||||
* group { name: "elm/diskselector/item/X";
|
|
||||||
* data {
|
|
||||||
* item: "display_item_num" "5";
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_diskselector_display_item_num_set(Evas_Object *obj, int num);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the number of items in the diskselector object.
|
|
||||||
*
|
|
||||||
* @param obj The diskselector object.
|
|
||||||
*
|
|
||||||
* @ingroup Diskselector
|
|
||||||
*/
|
|
||||||
EAPI int elm_diskselector_display_item_num_get(const Evas_Object *obj);
|
|
||||||
|
|
|
@ -129,6 +129,7 @@ class Elm_Entry (Elm_Layout, Elm_Interface_Scrollable, Evas_Clickable_Interface)
|
||||||
}
|
}
|
||||||
get {
|
get {
|
||||||
/*@ This returns whether the entry's selection handlers are disabled. */
|
/*@ This returns whether the entry's selection handlers are disabled. */
|
||||||
|
legacy null;
|
||||||
}
|
}
|
||||||
values {
|
values {
|
||||||
Eina_Bool disabled; /*@ If true, the selection handlers are disabled. */
|
Eina_Bool disabled; /*@ If true, the selection handlers are disabled. */
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,158 +1 @@
|
||||||
#include "elm_flip.eo.h"
|
#include "elm_flip.eo.h"
|
||||||
|
|
||||||
#if 0
|
|
||||||
#define ELM_OBJ_FLIP_CLASS elm_obj_flip_class_get()
|
|
||||||
|
|
||||||
const Eo_Class *elm_obj_flip_class_get(void) EINA_CONST;
|
|
||||||
|
|
||||||
extern EAPI Eo_Op ELM_OBJ_FLIP_BASE_ID;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_FRONT_VISIBLE_GET,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_PERSPECTIVE_SET,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_GO,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_GO_TO,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_INTERACTION_SET,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_INTERACTION_GET,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_ENABLED_SET,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_ENABLED_GET,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_HITSIZE_SET,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_HITSIZE_GET,
|
|
||||||
ELM_OBJ_FLIP_SUB_ID_LAST
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ELM_OBJ_FLIP_ID(sub_id) (ELM_OBJ_FLIP_BASE_ID + sub_id)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_front_visible_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get flip front visibility state
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flip_front_visible_get
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_front_visible_get(ret) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_FRONT_VISIBLE_GET), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_go_to
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Runs the flip animation to front or back.
|
|
||||||
*
|
|
||||||
* @param[in] front
|
|
||||||
* @param[in] mode
|
|
||||||
*
|
|
||||||
* @see elm_flip_go_to
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_go_to(front, mode) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_GO_TO), EO_TYPECHECK(Eina_Bool, front), EO_TYPECHECK(Elm_Flip_Mode, mode)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_go
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Runs the flip animation
|
|
||||||
*
|
|
||||||
* @param[in] mode
|
|
||||||
*
|
|
||||||
* @see elm_flip_go
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_go(mode) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_GO), EO_TYPECHECK(Elm_Flip_Mode, mode)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_interaction_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Set the interactive flip mode
|
|
||||||
*
|
|
||||||
* @param[in] mode
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_set
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_interaction_set(mode) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_SET), EO_TYPECHECK(Elm_Flip_Interaction, mode)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_interaction_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get the interactive flip mode
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_get
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_interaction_get(ret) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_GET), EO_TYPECHECK(Elm_Flip_Interaction *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_interaction_direction_enabled_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Set which directions of the flip respond to interactive flip
|
|
||||||
*
|
|
||||||
* @param[in] dir
|
|
||||||
* @param[in] enabled
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_direction_enabled_set
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_interaction_direction_enabled_set(dir, enabled) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_ENABLED_SET), EO_TYPECHECK(Elm_Flip_Direction, dir), EO_TYPECHECK(Eina_Bool, enabled)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_interaction_direction_enabled_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get the enabled state of that flip direction
|
|
||||||
*
|
|
||||||
* @param[in] dir
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_direction_enabled_get
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_interaction_direction_enabled_get(dir, ret) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_ENABLED_GET), EO_TYPECHECK(Elm_Flip_Direction, dir), EO_TYPECHECK(Eina_Bool *, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_interaction_direction_hitsize_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Set the amount of the flip that is sensitive to interactive flip
|
|
||||||
*
|
|
||||||
* @param[in] dir
|
|
||||||
* @param[in] hitsize
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_direction_hitsize_set
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_interaction_direction_hitsize_set(dir, hitsize) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_HITSIZE_SET), EO_TYPECHECK(Elm_Flip_Direction, dir), EO_TYPECHECK(double, hitsize)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flip_interaction_direction_hitsize_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* @brief Get the amount of the flip that is sensitive to interactive flip
|
|
||||||
*
|
|
||||||
* @param[in] dir
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_direction_hitsize_get
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
#define elm_obj_flip_interaction_direction_hitsize_get(dir, ret) ELM_OBJ_FLIP_ID(ELM_OBJ_FLIP_SUB_ID_INTERACTION_DIRECTION_HITSIZE_GET), EO_TYPECHECK(Elm_Flip_Direction, dir), EO_TYPECHECK(double *, ret)
|
|
||||||
#endif
|
|
|
@ -8,17 +8,6 @@
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *elm_flip_add(Evas_Object *parent);
|
EAPI Evas_Object *elm_flip_add(Evas_Object *parent);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get flip front visibility state
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @return EINA_TRUE if front front is showing, EINA_FALSE if the back is
|
|
||||||
* showing.
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_flip_front_visible_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set flip perspective
|
* @brief Set flip perspective
|
||||||
*
|
*
|
||||||
|
@ -33,222 +22,4 @@ EAPI Eina_Bool elm_flip_front_visible_get(const Evas_Object *obj);
|
||||||
*/
|
*/
|
||||||
EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y);
|
EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y);
|
||||||
|
|
||||||
/**
|
#include "elm_flip.eo.legacy.h"
|
||||||
* @brief Runs the flip animation
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @param mode The mode type
|
|
||||||
*
|
|
||||||
* Flips the front and back contents using the @p mode animation. This
|
|
||||||
* effectively hides the currently visible content and shows the hidden one.
|
|
||||||
*
|
|
||||||
* There a number of possible animations to use for the flipping:
|
|
||||||
* @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
|
|
||||||
* around a horizontal axis in the middle of its height, the other content
|
|
||||||
* is shown as the other side of the flip.
|
|
||||||
* @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
|
|
||||||
* around a vertical axis in the middle of its width, the other content is
|
|
||||||
* shown as the other side of the flip.
|
|
||||||
* @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
|
|
||||||
* around a diagonal axis in the middle of its width, the other content is
|
|
||||||
* shown as the other side of the flip.
|
|
||||||
* @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
|
|
||||||
* around a diagonal axis in the middle of its height, the other content is
|
|
||||||
* shown as the other side of the flip.
|
|
||||||
* @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
|
|
||||||
* as if the flip was a cube, the other content is show as the right face of
|
|
||||||
* the cube.
|
|
||||||
* @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
|
|
||||||
* right as if the flip was a cube, the other content is show as the left
|
|
||||||
* face of the cube.
|
|
||||||
* @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
|
|
||||||
* flip was a cube, the other content is show as the bottom face of the cube.
|
|
||||||
* @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
|
|
||||||
* the flip was a cube, the other content is show as the upper face of the
|
|
||||||
* cube.
|
|
||||||
* @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
|
|
||||||
* if the flip was a book, the other content is shown as the page below that.
|
|
||||||
* @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
|
|
||||||
* as if the flip was a book, the other content is shown as the page below
|
|
||||||
* that.
|
|
||||||
* @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
|
|
||||||
* flip was a book, the other content is shown as the page below that.
|
|
||||||
* @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
|
|
||||||
* flip was a book, the other content is shown as the page below that.
|
|
||||||
*
|
|
||||||
* @image html elm_flip.png
|
|
||||||
* @image latex elm_flip.eps width=\textwidth
|
|
||||||
*
|
|
||||||
* @see elm_flip_go_to()
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Runs the flip animation to front or back.
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @param front if @c EINA_TRUE, makes front visible, otherwise makes back.
|
|
||||||
* @param mode The mode type
|
|
||||||
*
|
|
||||||
* Flips the front and back contents using the @p mode animation. This
|
|
||||||
* effectively hides the currently visible content and shows the hidden one.
|
|
||||||
*
|
|
||||||
* There a number of possible animations to use for the flipping:
|
|
||||||
* @li ELM_FLIP_ROTATE_X_CENTER_AXIS - Rotate the currently visible content
|
|
||||||
* around a horizontal axis in the middle of its height, the other content
|
|
||||||
* is shown as the other side of the flip.
|
|
||||||
* @li ELM_FLIP_ROTATE_Y_CENTER_AXIS - Rotate the currently visible content
|
|
||||||
* around a vertical axis in the middle of its width, the other content is
|
|
||||||
* shown as the other side of the flip.
|
|
||||||
* @li ELM_FLIP_ROTATE_XZ_CENTER_AXIS - Rotate the currently visible content
|
|
||||||
* around a diagonal axis in the middle of its width, the other content is
|
|
||||||
* shown as the other side of the flip.
|
|
||||||
* @li ELM_FLIP_ROTATE_YZ_CENTER_AXIS - Rotate the currently visible content
|
|
||||||
* around a diagonal axis in the middle of its height, the other content is
|
|
||||||
* shown as the other side of the flip.
|
|
||||||
* @li ELM_FLIP_CUBE_LEFT - Rotate the currently visible content to the left
|
|
||||||
* as if the flip was a cube, the other content is show as the right face of
|
|
||||||
* the cube.
|
|
||||||
* @li ELM_FLIP_CUBE_RIGHT - Rotate the currently visible content to the
|
|
||||||
* right as if the flip was a cube, the other content is show as the left
|
|
||||||
* face of the cube.
|
|
||||||
* @li ELM_FLIP_CUBE_UP - Rotate the currently visible content up as if the
|
|
||||||
* flip was a cube, the other content is show as the bottom face of the cube.
|
|
||||||
* @li ELM_FLIP_CUBE_DOWN - Rotate the currently visible content down as if
|
|
||||||
* the flip was a cube, the other content is show as the upper face of the
|
|
||||||
* cube.
|
|
||||||
* @li ELM_FLIP_PAGE_LEFT - Move the currently visible content to the left as
|
|
||||||
* if the flip was a book, the other content is shown as the page below that.
|
|
||||||
* @li ELM_FLIP_PAGE_RIGHT - Move the currently visible content to the right
|
|
||||||
* as if the flip was a book, the other content is shown as the page below
|
|
||||||
* that.
|
|
||||||
* @li ELM_FLIP_PAGE_UP - Move the currently visible content up as if the
|
|
||||||
* flip was a book, the other content is shown as the page below that.
|
|
||||||
* @li ELM_FLIP_PAGE_DOWN - Move the currently visible content down as if the
|
|
||||||
* flip was a book, the other content is shown as the page below that.
|
|
||||||
*
|
|
||||||
* @image html elm_flip.png
|
|
||||||
* @image latex elm_flip.eps width=\textwidth
|
|
||||||
*
|
|
||||||
* @since 1.7
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI void elm_flip_go_to(Evas_Object *obj, Eina_Bool front, Elm_Flip_Mode mode);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Set the interactive flip mode
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @param mode The interactive flip mode to use
|
|
||||||
*
|
|
||||||
* This sets if the flip should be interactive (allow user to click and
|
|
||||||
* drag a side of the flip to reveal the back page and cause it to flip).
|
|
||||||
* By default a flip is not interactive. You may also need to set which
|
|
||||||
* sides of the flip are "active" for flipping and how much space they use
|
|
||||||
* (a minimum of a finger size) with elm_flip_interaction_direction_enabled_set()
|
|
||||||
* and elm_flip_interaction_direction_hitsize_set()
|
|
||||||
*
|
|
||||||
* The four available mode of interaction are:
|
|
||||||
* @li ELM_FLIP_INTERACTION_NONE - No interaction is allowed
|
|
||||||
* @li ELM_FLIP_INTERACTION_ROTATE - Interaction will cause rotate animation
|
|
||||||
* @li ELM_FLIP_INTERACTION_CUBE - Interaction will cause cube animation
|
|
||||||
* @li ELM_FLIP_INTERACTION_PAGE - Interaction will cause page animation
|
|
||||||
*
|
|
||||||
* @note ELM_FLIP_INTERACTION_ROTATE won't cause
|
|
||||||
* ELM_FLIP_ROTATE_XZ_CENTER_AXIS or ELM_FLIP_ROTATE_YZ_CENTER_AXIS to
|
|
||||||
* happen, those can only be achieved with elm_flip_go();
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the interactive flip mode
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @return The interactive flip mode
|
|
||||||
*
|
|
||||||
* Returns the interactive flip mode set by elm_flip_interaction_set()
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Set which directions of the flip respond to interactive flip
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @param dir The direction to change
|
|
||||||
* @param enabled If that direction is enabled or not
|
|
||||||
*
|
|
||||||
* By default all directions are disabled, so you may want to enable the
|
|
||||||
* desired directions for flipping if you need interactive flipping. You must
|
|
||||||
* call this function once for each direction that should be enabled.
|
|
||||||
*
|
|
||||||
* You can also set the appropriate hit area size by calling
|
|
||||||
* @c elm_flip_interaction_direction_hitsize_set(). By default, a minimum
|
|
||||||
* hit area will be created on the opposite edge of the flip.
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_set()
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI void elm_flip_interaction_direction_enabled_set(Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the enabled state of that flip direction
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @param dir The direction to check
|
|
||||||
* @return If that direction is enabled or not
|
|
||||||
*
|
|
||||||
* Get the enabled state set by elm_flip_interaction_direction_enabled_set()
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_set()
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI Eina_Bool elm_flip_interaction_direction_enabled_get(Evas_Object *obj, Elm_Flip_Direction dir);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Set the amount of the flip that is sensitive to interactive flip
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @param dir The hit area to set
|
|
||||||
* @param hitsize The amount of that dimension (0.0 to 1.0) to use
|
|
||||||
*
|
|
||||||
* Set the amount of the flip that is sensitive to interactive flip, with 0
|
|
||||||
* representing no area in the flip and 1 representing the entire flip. There
|
|
||||||
* is however a consideration to be made in that the area will never be
|
|
||||||
* smaller than the finger size set (as set in your Elementary configuration),
|
|
||||||
* and dragging must always start from the opposite half of the flip (eg. right
|
|
||||||
* half of the flip when dragging to the left).
|
|
||||||
*
|
|
||||||
* Note that the @c dir parameter is not actually related to the direction of
|
|
||||||
* the drag, it only refers to the area in the flip where interaction can
|
|
||||||
* occur (top, bottom, left, right).
|
|
||||||
*
|
|
||||||
* Negative values of @c hitsize will disable this hit area.
|
|
||||||
*
|
|
||||||
* @see elm_flip_interaction_set()
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI void elm_flip_interaction_direction_hitsize_set(Evas_Object *obj, Elm_Flip_Direction dir, double hitsize);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the amount of the flip that is sensitive to interactive flip
|
|
||||||
*
|
|
||||||
* @param obj The flip object
|
|
||||||
* @param dir The direction to check
|
|
||||||
* @return The size set for that direction
|
|
||||||
*
|
|
||||||
* Returns the amount of sensitive area set by
|
|
||||||
* elm_flip_interaction_direction_hitsize_set().
|
|
||||||
*
|
|
||||||
* @ingroup Flip
|
|
||||||
*/
|
|
||||||
EAPI double elm_flip_interaction_direction_hitsize_get(Evas_Object *obj, Elm_Flip_Direction dir);
|
|
||||||
|
|
|
@ -1,175 +1,3 @@
|
||||||
typedef void (*flipselector_func_type)(void *, Evas_Object *, void *);
|
typedef void (*flipselector_func_type)(void *, Evas_Object *, void *);
|
||||||
|
|
||||||
#include "elm_flipselector.eo.h"
|
#include "elm_flipselector.eo.h"
|
||||||
|
|
||||||
#if 0
|
|
||||||
#define ELM_OBJ_FLIPSELECTOR_CLASS elm_obj_flipselector_class_get()
|
|
||||||
|
|
||||||
const Eo_Class *elm_obj_flipselector_class_get(void) EINA_CONST;
|
|
||||||
|
|
||||||
extern EAPI Eo_Op ELM_OBJ_FLIPSELECTOR_BASE_ID;
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_FLIP_NEXT,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_FLIP_PREV,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEM_APPEND,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEM_PREPEND,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEMS_GET,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_ITEM_GET,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_LAST_ITEM_GET,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_SELECTED_ITEM_GET,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_INTERVAL_SET,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_INTERVAL_GET,
|
|
||||||
ELM_OBJ_FLIPSELECTOR_SUB_ID_LAST
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ELM_OBJ_FLIPSELECTOR_ID(sub_id) (ELM_OBJ_FLIPSELECTOR_BASE_ID + sub_id)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_flip_next
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Programmatically select the next item of a flip selector widget
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_flip_next
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_flip_next() ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FLIP_NEXT)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_flip_prev
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Programmatically select the previous item of a flip selector
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_flip_prev
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_flip_prev() ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FLIP_PREV)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_item_append
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Append a (text) item to a flip selector widget
|
|
||||||
*
|
|
||||||
* @param[in] label
|
|
||||||
* @param[in] func
|
|
||||||
* @param[in] data
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_item_append
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_item_append(label, func, data, ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEM_APPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(flipselector_func_type, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(Elm_Flipselector_Item **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_item_prepend
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Prepend a (text) item to a flip selector widget
|
|
||||||
*
|
|
||||||
* @param[in] label
|
|
||||||
* @param[in] func
|
|
||||||
* @param[in] data
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_item_prepend
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_item_prepend(label, func, data, ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEM_PREPEND), EO_TYPECHECK(const char *, label), EO_TYPECHECK(flipselector_func_type, func), EO_TYPECHECK(void *, data), EO_TYPECHECK(Elm_Flipselector_Item **, ret)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_items_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the internal list of items in a given flip selector widget.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_items_get
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_items_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_ITEMS_GET), EO_TYPECHECK(const Eina_List **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_first_item_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the first item in the given flip selector widget's list of
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_first_item_get
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_first_item_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_last_item_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the last item in the given flip selector widget's list of
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_last_item_get
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_last_item_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_LAST_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_selected_item_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the currently selected item in a flip selector widget.
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_selected_item_get
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_selected_item_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_SELECTED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_first_interval_set
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Set the interval on time updates for a user mouse button hold
|
|
||||||
*
|
|
||||||
* @param[in] interval
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_first_interval_set
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_first_interval_set(interval) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_INTERVAL_SET), EO_TYPECHECK(double, interval)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @def elm_obj_flipselector_first_interval_get
|
|
||||||
* @since 1.8
|
|
||||||
*
|
|
||||||
* Get the interval on time updates for an user mouse button hold
|
|
||||||
*
|
|
||||||
* @param[out] ret
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_first_interval_get
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
#define elm_obj_flipselector_first_interval_get(ret) ELM_OBJ_FLIPSELECTOR_ID(ELM_OBJ_FLIPSELECTOR_SUB_ID_FIRST_INTERVAL_GET), EO_TYPECHECK(double *, ret)
|
|
||||||
#endif
|
|
|
@ -11,186 +11,4 @@
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent);
|
EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent);
|
||||||
|
|
||||||
/**
|
#include "elm_flipselector.eo.legacy.h"
|
||||||
* Programmatically select the next item of a flip selector widget
|
|
||||||
*
|
|
||||||
* @param obj The flipselector object
|
|
||||||
*
|
|
||||||
* @note The selection will be animated. Also, if it reaches the
|
|
||||||
* end of its list of member items, it will continue with the first
|
|
||||||
* one onwards.
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_flipselector_flip_next(Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Programmatically select the previous item of a flip selector
|
|
||||||
* widget
|
|
||||||
*
|
|
||||||
* @param obj The flipselector object
|
|
||||||
*
|
|
||||||
* @note The selection will be animated. Also, if it reaches the
|
|
||||||
* beginning of its list of member items, it will continue with the
|
|
||||||
* last one backwards.
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_flipselector_flip_prev(Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Append a (text) item to a flip selector widget
|
|
||||||
*
|
|
||||||
* @param obj The flipselector object
|
|
||||||
* @param label The (text) label of the new item
|
|
||||||
* @param func Convenience callback function to take place when
|
|
||||||
* item is selected
|
|
||||||
* @param data Data passed to @p func, above
|
|
||||||
* @return A handle to the item added or @c NULL, on errors
|
|
||||||
*
|
|
||||||
* The widget's list of labels to show will be appended with the
|
|
||||||
* given value. If the user wishes so, a callback function pointer
|
|
||||||
* can be passed, which will get called when this same item is
|
|
||||||
* selected.
|
|
||||||
*
|
|
||||||
* @note The current selection @b won't be modified by appending an
|
|
||||||
* element to the list.
|
|
||||||
*
|
|
||||||
* @note The maximum length of the text label is going to be
|
|
||||||
* determined <b>by the widget's theme</b>. Strings larger than
|
|
||||||
* that value are going to be @b truncated.
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_flipselector_item_append(Evas_Object *obj, const char *label, Evas_Smart_Cb func, const void *data);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Prepend a (text) item to a flip selector widget
|
|
||||||
*
|
|
||||||
* @param obj The flipselector object
|
|
||||||
* @param label The (text) label of the new item
|
|
||||||
* @param func Convenience callback function to take place when
|
|
||||||
* item is selected
|
|
||||||
* @param data Data passed to @p func, above
|
|
||||||
* @return A handle to the item added or @c NULL, on errors
|
|
||||||
*
|
|
||||||
* The widget's list of labels to show will be prepended with the
|
|
||||||
* given value. If the user wishes so, a callback function pointer
|
|
||||||
* can be passed, which will get called when this same item is
|
|
||||||
* selected.
|
|
||||||
*
|
|
||||||
* @note The current selection @b won't be modified by prepending
|
|
||||||
* an element to the list.
|
|
||||||
*
|
|
||||||
* @note The maximum length of the text label is going to be
|
|
||||||
* determined <b>by the widget's theme</b>. Strings larger than
|
|
||||||
* that value are going to be @b truncated.
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_flipselector_item_prepend(Evas_Object *obj, const char *label, Evas_Smart_Cb func, void *data);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the internal list of items in a given flip selector widget.
|
|
||||||
*
|
|
||||||
* @param obj The flipselector object
|
|
||||||
* @return The list of items (#Elm_Object_Item as data) or
|
|
||||||
* @c NULL on errors.
|
|
||||||
*
|
|
||||||
* This list is @b not to be modified in any way and must not be
|
|
||||||
* freed. Use the list members with functions like
|
|
||||||
* elm_object_item_text_set(),
|
|
||||||
* elm_object_item_text_get(),
|
|
||||||
* elm_object_item_del(),
|
|
||||||
* elm_flipselector_item_selected_get(),
|
|
||||||
* elm_flipselector_item_selected_set().
|
|
||||||
*
|
|
||||||
* @warning This list is only valid until @p obj object's internal
|
|
||||||
* items list is changed. It should be fetched again with another
|
|
||||||
* call to this function when changes happen.
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI const Eina_List *elm_flipselector_items_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the first item in the given flip selector widget's list of
|
|
||||||
* items.
|
|
||||||
*
|
|
||||||
* @param obj The flipselector object
|
|
||||||
* @return The first item or @c NULL, if it has no items (and on
|
|
||||||
* errors)
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_item_append()
|
|
||||||
* @see elm_flipselector_last_item_get()
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_flipselector_first_item_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the last item in the given flip selector widget's list of
|
|
||||||
* items.
|
|
||||||
*
|
|
||||||
* @param obj The flipselector object
|
|
||||||
* @return The last item or @c NULL, if it has no items (and on
|
|
||||||
* errors)
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_item_prepend()
|
|
||||||
* @see elm_flipselector_first_item_get()
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_flipselector_last_item_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the currently selected item in a flip selector widget.
|
|
||||||
*
|
|
||||||
* @param obj The flipselector object
|
|
||||||
* @return The selected item or @c NULL, if the widget has no items
|
|
||||||
* (and on errors)
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI Elm_Object_Item *elm_flipselector_selected_item_get(const Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the interval on time updates for a user mouse button hold
|
|
||||||
* on a flip selector widget.
|
|
||||||
*
|
|
||||||
* @param obj The flip selector object
|
|
||||||
* @param interval The (first) interval value in seconds
|
|
||||||
*
|
|
||||||
* This interval value is @b decreased while the user holds the
|
|
||||||
* mouse pointer either flipping up or flipping down a given flip
|
|
||||||
* selector.
|
|
||||||
*
|
|
||||||
* This helps the user to get to a given item distant from the
|
|
||||||
* current one easier/faster, as it will start to flip quicker and
|
|
||||||
* quicker on mouse button holds.
|
|
||||||
*
|
|
||||||
* The calculation for the next flip interval value, starting from
|
|
||||||
* the one set with this call, is the previous interval divided by
|
|
||||||
* 1.05, so it decreases a little bit.
|
|
||||||
*
|
|
||||||
* The default starting interval value for automatic flips is
|
|
||||||
* @b 0.85 seconds.
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_first_interval_get()
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI void elm_flipselector_first_interval_set(Evas_Object *obj, double interval);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the interval on time updates for an user mouse button hold
|
|
||||||
* on a flip selector widget.
|
|
||||||
*
|
|
||||||
* @param obj The flip selector object
|
|
||||||
* @return The (first) interval value, in seconds, set on it
|
|
||||||
*
|
|
||||||
* @see elm_flipselector_first_interval_set() for more details
|
|
||||||
*
|
|
||||||
* @ingroup Flipselector
|
|
||||||
*/
|
|
||||||
EAPI double elm_flipselector_first_interval_get(const Evas_Object *obj);
|
|
||||||
|
|
Loading…
Reference in New Issue