2008-09-29 23:58:56 -07:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
|
|
|
#ifndef ELEMENTARY_H
|
|
|
|
#define ELEMENTARY_H
|
|
|
|
|
|
|
|
/* What is this?
|
|
|
|
*
|
|
|
|
* This is a VERY SIMPLE toolkit - VERY SIMPLE. It is not meant for writing
|
|
|
|
* extensive applications. Small simple ones with simple needs. It is meant
|
|
|
|
* to make the programmers work almost brainless.
|
|
|
|
*
|
|
|
|
* I'm toying with backing this with etk or ewl - or not. right now I am
|
|
|
|
* unsure as some of the widgets will be faily complex edje creations. Do
|
|
|
|
* not consider any choices permanent - but the API should stay unbroken.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
@ELM_UNIX_DEF@ ELM_UNIX
|
|
|
|
@ELM_WIN32_DEF@ ELM_WIN32
|
|
|
|
@ELM_WINCE_DEF@ ELM_WINCE
|
2008-12-18 17:22:11 -08:00
|
|
|
@ELM_EDBUS_DEF@ ELM_EDBUS
|
|
|
|
@ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
|
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
/* Standard headers for standard system calls etc. */
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <dlfcn.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <fnmatch.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <dirent.h>
|
|
|
|
#include <pwd.h>
|
|
|
|
#include <errno.h>
|
2008-12-18 17:47:42 -08:00
|
|
|
|
|
|
|
#ifdef ELM_UNIX
|
|
|
|
# include <locale.h>
|
|
|
|
# include <libintl.h>
|
|
|
|
# include <signal.h>
|
|
|
|
# include <grp.h>
|
|
|
|
# include <glob.h>
|
|
|
|
#endif
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2008-12-18 17:22:11 -08:00
|
|
|
#ifdef ELM_ALLOCA_H
|
|
|
|
# include <alloca.h>
|
|
|
|
#endif
|
2008-12-18 17:47:42 -08:00
|
|
|
|
|
|
|
#if defined (ELM_WIN32) || defined (ELM_WINCE)
|
|
|
|
# include <malloc.h>
|
|
|
|
# ifndef alloca
|
|
|
|
# define alloca _alloca
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2008-12-18 17:22:11 -08:00
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
/* EFL headers */
|
2008-10-17 07:40:54 -07:00
|
|
|
#include <Eina.h>
|
|
|
|
#include <Eet.h>
|
2008-09-29 23:58:56 -07:00
|
|
|
#include <Evas.h>
|
|
|
|
#include <Ecore.h>
|
|
|
|
#include <Ecore_Evas.h>
|
|
|
|
#include <Ecore_Job.h>
|
|
|
|
#include <Ecore_Txt.h>
|
|
|
|
#include <Ecore_File.h>
|
|
|
|
#include <Edje.h>
|
|
|
|
|
2008-12-18 17:22:11 -08:00
|
|
|
#ifdef ELM_EDBUS
|
|
|
|
# include <E_DBus.h>
|
|
|
|
# include <E_Hal.h>
|
|
|
|
#endif
|
2008-12-18 16:34:56 -08:00
|
|
|
|
|
|
|
#ifdef EAPI
|
|
|
|
# undef EAPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# ifdef ELEMENTARY_BUILD
|
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif /* ! DLL_EXPORT */
|
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
|
|
|
# endif /* ! EFL_EVAS_BUILD */
|
|
|
|
#else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif /* ! _WIN32 */
|
|
|
|
|
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
/* allow usage from c++ */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2008-10-06 18:23:49 -07:00
|
|
|
/**************************************************************************/
|
|
|
|
/* Objects */
|
2008-09-29 23:58:56 -07:00
|
|
|
typedef enum _Elm_Win_Type
|
|
|
|
{
|
|
|
|
ELM_WIN_BASIC,
|
|
|
|
ELM_WIN_DIALOG_BASIC
|
|
|
|
} Elm_Win_Type;
|
2008-11-18 02:11:57 -08:00
|
|
|
|
|
|
|
typedef enum _Elm_Win_Keyboard_Mode
|
|
|
|
{
|
|
|
|
ELM_WIN_KEYBOARD_UNKNOWN,
|
|
|
|
ELM_WIN_KEYBOARD_OFF,
|
|
|
|
ELM_WIN_KEYBOARD_ON,
|
|
|
|
ELM_WIN_KEYBOARD_ALPHA,
|
|
|
|
ELM_WIN_KEYBOARD_NUMERIC,
|
|
|
|
ELM_WIN_KEYBOARD_PIN,
|
|
|
|
ELM_WIN_KEYBOARD_PHONE_NUMBER,
|
|
|
|
ELM_WIN_KEYBOARD_HEX,
|
|
|
|
ELM_WIN_KEYBOARD_TERMINAL,
|
|
|
|
ELM_WIN_KEYBOARD_PASSWORD
|
|
|
|
} Elm_Win_Keyboard_Mode;
|
2009-01-09 03:34:55 -08:00
|
|
|
|
|
|
|
#define ELM_MAIN() int main(int argc, char **argv) {elm_init(argc, argv); return elm_main(argc, argv);}
|
2008-09-29 23:58:56 -07:00
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* General calls */
|
2008-10-06 18:23:49 -07:00
|
|
|
EAPI void elm_init(int argc, char **argv);
|
|
|
|
EAPI void elm_shutdown(void);
|
|
|
|
EAPI void elm_run(void);
|
|
|
|
EAPI void elm_exit(void);
|
|
|
|
|
|
|
|
EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
|
|
|
|
EAPI void elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj);
|
|
|
|
EAPI void elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj);
|
|
|
|
EAPI void elm_win_title_set(Evas_Object *obj, const char *title);
|
|
|
|
EAPI void elm_win_autodel_set(Evas_Object *obj, Evas_Bool autodel);
|
|
|
|
EAPI void elm_win_activate(Evas_Object *obj);
|
|
|
|
EAPI void elm_win_borderless_set(Evas_Object *obj, Evas_Bool borderless);
|
|
|
|
EAPI void elm_win_shaped_set(Evas_Object *obj, Evas_Bool shaped);
|
|
|
|
EAPI void elm_win_alpha_set(Evas_Object *obj, Evas_Bool alpha);
|
|
|
|
EAPI void elm_win_override_set(Evas_Object *obj, Evas_Bool override);
|
2008-11-18 02:11:57 -08:00
|
|
|
EAPI void elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode);
|
|
|
|
EAPI void elm_win_keyboard_win_set(Evas_Object *obj, Evas_Bool is_keyboard);
|
2008-12-30 08:19:46 -08:00
|
|
|
|
|
|
|
EAPI Evas_Object *elm_win_inwin_add(Evas_Object *obj);
|
|
|
|
EAPI void elm_win_inwin_activate(Evas_Object *obj);
|
|
|
|
EAPI void elm_win_inwin_style_set(Evas_Object *obj, const char *style);
|
2009-01-15 18:49:18 -08:00
|
|
|
/* available styles:
|
|
|
|
* default
|
|
|
|
*/
|
2008-12-30 08:19:46 -08:00
|
|
|
|
2008-11-18 22:23:08 -08:00
|
|
|
/* X specific calls - won't work on non-x engines (return 0) */
|
|
|
|
EAPI Ecore_X_Window elm_win_xwindow_get(Evas_Object *obj);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
* "delete-request" - the user requested to delete the window
|
|
|
|
*/
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2008-10-06 18:23:49 -07:00
|
|
|
EAPI Evas_Object *elm_bg_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_bg_file_set(Evas_Object *obj, const char *file, const char *group);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
*/
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2008-10-06 18:23:49 -07:00
|
|
|
EAPI Evas_Object *elm_icon_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_icon_file_set(Evas_Object *obj, const char *file, const char *group);
|
2008-10-21 05:01:00 -07:00
|
|
|
EAPI void elm_icon_standard_set(Evas_Object *obj, const char *name);
|
2008-10-06 18:23:49 -07:00
|
|
|
EAPI void elm_icon_smooth_set(Evas_Object *obj, Evas_Bool smooth);
|
|
|
|
EAPI void elm_icon_no_scale_set(Evas_Object *obj, Evas_Bool no_scale);
|
|
|
|
EAPI void elm_icon_scale_set(Evas_Object *obj, Evas_Bool scale_up, Evas_Bool scale_down);
|
|
|
|
EAPI void elm_icon_fill_outside_set(Evas_Object *obj, Evas_Bool fill_outside);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-08 02:33:05 -07:00
|
|
|
* "clicked" - the user clicked the icon
|
2008-10-06 18:23:49 -07:00
|
|
|
*/
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2008-10-06 18:23:49 -07:00
|
|
|
EAPI Evas_Object *elm_box_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_box_horizontal_set(Evas_Object *obj, Evas_Bool horizontal);
|
|
|
|
EAPI void elm_box_homogenous_set(Evas_Object *obj, Evas_Bool homogenous);
|
|
|
|
EAPI void elm_box_pack_start(Evas_Object *obj, Evas_Object *subobj);
|
|
|
|
EAPI void elm_box_pack_end(Evas_Object *obj, Evas_Object *subobj);
|
|
|
|
EAPI void elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before);
|
|
|
|
EAPI void elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
EAPI Evas_Object *elm_button_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_button_label_set(Evas_Object *obj, const char *label);
|
|
|
|
EAPI void elm_button_icon_set(Evas_Object *obj, Evas_Object *icon);
|
2008-12-08 01:24:46 -08:00
|
|
|
EAPI void elm_button_style_set(Evas_Object *obj, const char *style);
|
2009-01-15 18:49:18 -08:00
|
|
|
/* available styles:
|
|
|
|
* default
|
|
|
|
* hoversel_vertical
|
|
|
|
* hoversel_vertical_entry
|
|
|
|
*/
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
* "clicked" - the user clicked the button
|
|
|
|
*/
|
|
|
|
|
|
|
|
EAPI Evas_Object *elm_scroller_add(Evas_Object *parent);
|
2008-10-06 23:55:11 -07:00
|
|
|
EAPI void elm_scroller_content_set(Evas_Object *obj, Evas_Object *child);
|
2008-10-22 01:58:56 -07:00
|
|
|
EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Evas_Bool w, Evas_Bool h);
|
2009-01-08 23:35:52 -08:00
|
|
|
EAPI void elm_scroller_region_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
*/
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2008-10-06 18:23:49 -07:00
|
|
|
EAPI Evas_Object *elm_label_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_label_label_set(Evas_Object *obj, const char *label);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
EAPI Evas_Object *elm_toggle_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_toggle_label_set(Evas_Object *obj, const char *label);
|
|
|
|
EAPI void elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon);
|
|
|
|
EAPI void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel);
|
|
|
|
EAPI void elm_toggle_state_set(Evas_Object *obj, Evas_Bool state);
|
|
|
|
EAPI void elm_toggle_state_pointer_set(Evas_Object *obj, Evas_Bool *statep);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
* "changed" - the user toggled the state
|
|
|
|
*/
|
|
|
|
|
|
|
|
EAPI Evas_Object *elm_frame_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_frame_label_set(Evas_Object *obj, const char *label);
|
|
|
|
EAPI void elm_frame_content_set(Evas_Object *obj, Evas_Object *content);
|
2008-12-08 01:24:46 -08:00
|
|
|
EAPI void elm_frame_style_set(Evas_Object *obj, const char *style);
|
2009-01-15 18:49:18 -08:00
|
|
|
/* available styles:
|
|
|
|
* default
|
|
|
|
* pad_small
|
|
|
|
* pad_medium
|
|
|
|
* pad_large
|
|
|
|
* pad_huge
|
|
|
|
* outdent_top
|
|
|
|
* outdent_bottom
|
|
|
|
*/
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
EAPI Evas_Object *elm_table_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_table_homogenous_set(Evas_Object *obj, Evas_Bool homogenous);
|
|
|
|
EAPI void elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
EAPI Evas_Object *elm_clock_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_clock_time_set(Evas_Object *obj, int hrs, int min, int sec);
|
|
|
|
EAPI void elm_clock_time_get(Evas_Object *obj, int *hrs, int *min, int *sec);
|
|
|
|
EAPI void elm_clock_edit_set(Evas_Object *obj, Evas_Bool edit);
|
|
|
|
EAPI void elm_clock_show_am_pm_set(Evas_Object *obj, Evas_Bool am_pm);
|
|
|
|
EAPI void elm_clock_show_seconds_set(Evas_Object *obj, Evas_Bool seconds);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-06 18:23:49 -07:00
|
|
|
* "changed" - the user changed the time
|
|
|
|
*/
|
2008-10-02 05:45:23 -07:00
|
|
|
|
2008-10-07 00:45:49 -07:00
|
|
|
EAPI Evas_Object *elm_layout_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_layout_file_set(Evas_Object *obj, const char *file, const char *group);
|
|
|
|
EAPI void elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content);
|
|
|
|
EAPI Evas_Object *elm_layout_edje_get(Evas_Object *obj);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-07 00:45:49 -07:00
|
|
|
*/
|
|
|
|
|
2008-11-26 21:41:13 -08:00
|
|
|
typedef enum _Elm_Hover_Axis
|
|
|
|
{
|
|
|
|
ELM_HOVER_AXIS_NONE,
|
|
|
|
ELM_HOVER_AXIS_HORIZONTAL,
|
|
|
|
ELM_HOVER_AXIS_VERTICAL,
|
|
|
|
ELM_HOVER_AXIS_BOTH
|
|
|
|
} Elm_Hover_Axis;
|
2008-10-07 23:38:20 -07:00
|
|
|
EAPI Evas_Object *elm_hover_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target);
|
|
|
|
EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent);
|
2008-10-08 01:48:09 -07:00
|
|
|
EAPI void elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content);
|
2008-10-09 01:10:20 -07:00
|
|
|
EAPI void elm_hover_style_set(Evas_Object *obj, const char *style);
|
2009-01-15 18:49:18 -08:00
|
|
|
/* available styles:
|
|
|
|
* default
|
|
|
|
* popout
|
|
|
|
* hoversel_vertical
|
|
|
|
*/
|
2008-11-26 21:41:13 -08:00
|
|
|
EAPI const char *elm_hover_best_content_location_get(Evas_Object *obj, Elm_Hover_Axis pref_axis);
|
2008-10-08 08:09:00 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-24 19:11:06 -07:00
|
|
|
* "clicked" - the user clicked the empty space in the hover to dismiss
|
2008-10-07 23:38:20 -07:00
|
|
|
*/
|
2008-10-14 01:05:30 -07:00
|
|
|
|
2008-10-24 19:11:06 -07:00
|
|
|
typedef struct _Elm_Entry_Anchor_Info Elm_Entry_Anchor_Info;
|
|
|
|
struct _Elm_Entry_Anchor_Info
|
|
|
|
{
|
|
|
|
const char *name;
|
|
|
|
int button;
|
|
|
|
Evas_Coord x, y, w, h;
|
|
|
|
};
|
2008-10-14 01:05:30 -07:00
|
|
|
EAPI Evas_Object *elm_entry_add(Evas_Object *parent);
|
2008-10-22 01:58:56 -07:00
|
|
|
EAPI void elm_entry_single_line_set(Evas_Object *obj, Evas_Bool single_line);
|
|
|
|
EAPI void elm_entry_password_set(Evas_Object *obj, Evas_Bool password);
|
2008-10-16 02:17:57 -07:00
|
|
|
EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry);
|
|
|
|
EAPI const char *elm_entry_entry_get(Evas_Object *obj);
|
|
|
|
EAPI const char *elm_entry_selection_get(Evas_Object *obj);
|
|
|
|
EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry);
|
2008-10-17 07:40:54 -07:00
|
|
|
EAPI void elm_entry_line_wrap_set(Evas_Object *obj, Evas_Bool wrap);
|
2008-10-24 19:11:06 -07:00
|
|
|
EAPI void elm_entry_editable_set(Evas_Object *obj, Evas_Bool editable);
|
2008-11-18 00:45:38 -08:00
|
|
|
EAPI void elm_entry_select_none(Evas_Object *obj);
|
|
|
|
EAPI void elm_entry_select_all(Evas_Object *obj);
|
|
|
|
|
2008-10-16 02:17:57 -07:00
|
|
|
/* smart callbacks called:
|
2008-10-17 20:55:44 -07:00
|
|
|
* "changed" - the text content changed
|
2008-10-20 22:40:01 -07:00
|
|
|
* "selection,start" - the user started selecting text
|
|
|
|
* "selection,changed" - the user modified the selection size/location
|
|
|
|
* "selection,cleared" - the user cleared the selection
|
|
|
|
* "selection,paste" - the user rrequested a paste of text
|
|
|
|
* "selection,copy" - the user copied the text
|
|
|
|
* "selection,cut" - the user cut the text
|
|
|
|
* "cursor,changed" - the cursor changed position
|
2008-10-24 19:11:06 -07:00
|
|
|
* "anchor,clicked" - achor called was clicked | event_info = Elm_Entry_Anchor_Info
|
2008-10-22 01:58:56 -07:00
|
|
|
* "activated" - when the enter key is pressed (useful for single line)
|
2008-10-16 02:17:57 -07:00
|
|
|
*/
|
2008-10-21 05:01:00 -07:00
|
|
|
|
|
|
|
/* composite widgets - these basically put together basic widgets above
|
|
|
|
* in convenient packages that do more than basic stuff */
|
|
|
|
|
|
|
|
typedef enum _Elm_Text_Format
|
|
|
|
{
|
|
|
|
ELM_TEXT_FORMAT_PLAIN_UTF8,
|
|
|
|
ELM_TEXT_FORMAT_MARKUP_UTF8
|
|
|
|
} Elm_Text_Format;
|
|
|
|
EAPI Evas_Object *elm_notepad_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_notepad_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format);
|
|
|
|
/* smart callbacks called:
|
|
|
|
*/
|
2008-10-24 19:11:06 -07:00
|
|
|
|
|
|
|
typedef struct _Elm_Entry_Anchorview_Info Elm_Entry_Anchorview_Info;
|
|
|
|
struct _Elm_Entry_Anchorview_Info
|
|
|
|
{
|
|
|
|
const char *name;
|
|
|
|
int button;
|
|
|
|
Evas_Object *hover;
|
|
|
|
struct {
|
|
|
|
Evas_Coord x, y, w, h;
|
|
|
|
} anchor, hover_parent;
|
|
|
|
Evas_Bool hover_left : 1;
|
|
|
|
Evas_Bool hover_right : 1;
|
|
|
|
Evas_Bool hover_top : 1;
|
|
|
|
Evas_Bool hover_bottom : 1;
|
|
|
|
};
|
|
|
|
EAPI Evas_Object *elm_anchorview_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_anchorview_text_set(Evas_Object *obj, const char *text);
|
2008-11-15 05:58:50 -08:00
|
|
|
EAPI void elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent);
|
2008-10-24 19:11:06 -07:00
|
|
|
EAPI void elm_anchorview_hover_style_set(Evas_Object *obj, const char *style);
|
|
|
|
EAPI void elm_anchorview_hover_end(Evas_Object *obj);
|
|
|
|
/* smart callbacks called:
|
|
|
|
* "anchor,clicked" - achor called was clicked | event_info = Elm_Entry_Anchorview_Info
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct _Elm_Entry_Anchorblock_Info Elm_Entry_Anchorblock_Info;
|
|
|
|
struct _Elm_Entry_Anchorblock_Info
|
|
|
|
{
|
|
|
|
const char *name;
|
|
|
|
int button;
|
|
|
|
Evas_Object *hover;
|
|
|
|
struct {
|
|
|
|
Evas_Coord x, y, w, h;
|
|
|
|
} anchor, hover_parent;
|
|
|
|
Evas_Bool hover_left : 1;
|
|
|
|
Evas_Bool hover_right : 1;
|
|
|
|
Evas_Bool hover_top : 1;
|
|
|
|
Evas_Bool hover_bottom : 1;
|
|
|
|
};
|
|
|
|
EAPI Evas_Object *elm_anchorblock_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_anchorblock_text_set(Evas_Object *obj, const char *text);
|
2008-11-15 05:58:50 -08:00
|
|
|
EAPI void elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent);
|
2008-10-24 19:11:06 -07:00
|
|
|
EAPI void elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style);
|
|
|
|
EAPI void elm_anchorblock_hover_end(Evas_Object *obj);
|
|
|
|
/* smart callbacks called:
|
|
|
|
* "anchor,clicked" - achor called was clicked | event_info = Elm_Entry_Anchorblock_Info
|
|
|
|
*/
|
|
|
|
|
2008-10-28 18:51:45 -07:00
|
|
|
EAPI Evas_Object *elm_bubble_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_bubble_label_set(Evas_Object *obj, const char *label);
|
2008-11-15 05:58:50 -08:00
|
|
|
EAPI void elm_bubble_info_set(Evas_Object *obj, const char *info);
|
2008-10-28 18:51:45 -07:00
|
|
|
EAPI void elm_bubble_content_set(Evas_Object *obj, Evas_Object *content);
|
|
|
|
EAPI void elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon);
|
2008-12-04 23:42:14 -08:00
|
|
|
EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner);
|
2008-10-28 18:51:45 -07:00
|
|
|
/* smart callbacks called:
|
|
|
|
*/
|
2008-11-17 17:41:49 -08:00
|
|
|
|
2008-12-04 23:42:14 -08:00
|
|
|
EAPI Evas_Object *elm_photo_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_photo_file_set(Evas_Object *obj, const char *file);
|
|
|
|
EAPI void elm_photo_size_set(Evas_Object *obj, int size);
|
|
|
|
/* smart callbacks called:
|
|
|
|
* "clicked" - the user clicked the icon
|
|
|
|
*/
|
|
|
|
|
2008-12-15 16:15:34 -08:00
|
|
|
typedef enum _Elm_Icon_Type
|
|
|
|
{
|
|
|
|
ELM_ICON_NONE,
|
2008-12-18 16:34:56 -08:00
|
|
|
ELM_ICON_FILE,
|
|
|
|
ELM_ICON_STANDARD
|
2008-12-15 16:15:34 -08:00
|
|
|
} Elm_Icon_Type;
|
|
|
|
typedef struct _Elm_Hoversel_Item Elm_Hoversel_Item;
|
|
|
|
EAPI Evas_Object *elm_hoversel_add(Evas_Object *parent);
|
|
|
|
EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent);
|
|
|
|
EAPI void elm_hoversel_label_set(Evas_Object *obj, const char *label);
|
|
|
|
EAPI void elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon);
|
|
|
|
EAPI void elm_hoversel_hover_end(Evas_Object *obj);
|
|
|
|
EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
|
|
|
|
EAPI void elm_hoversel_item_del(Elm_Hoversel_Item *item);
|
2008-12-18 16:34:56 -08:00
|
|
|
/* smart callbacks called:
|
2008-12-18 20:26:24 -08:00
|
|
|
* "clicked" - the user clicked the hoversel button and popped up the sel
|
|
|
|
* "selected" - an item in the hoversel list is selected
|
|
|
|
* "dismissed" - the hover is dismissed
|
2008-12-18 16:34:56 -08:00
|
|
|
*/
|
|
|
|
|
2008-12-18 05:38:58 -08:00
|
|
|
typedef struct _Elm_Toolbar_Item Elm_Toolbar_Item;
|
|
|
|
EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent);
|
|
|
|
EAPI Elm_Toolbar_Item *elm_toolbar_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
|
|
|
|
EAPI void elm_toolbar_item_del(Elm_Toolbar_Item *item);
|
|
|
|
EAPI void elm_toolbar_item_select(Elm_Toolbar_Item *item);
|
|
|
|
EAPI void elm_toolbar_scrollable_set(Evas_Object *obj, Evas_Bool scrollable);
|
2008-12-18 16:34:56 -08:00
|
|
|
/* smart callbacks called:
|
2008-12-18 20:26:24 -08:00
|
|
|
* "clicked" - when the user clicks on a toolbar item and becomes selected
|
2008-12-18 16:34:56 -08:00
|
|
|
*/
|
2008-12-18 05:38:58 -08:00
|
|
|
|
2009-01-07 05:49:08 -08:00
|
|
|
typedef enum _Elementary_List_Mode
|
|
|
|
{
|
|
|
|
ELM_LIST_COMPRESS,
|
|
|
|
ELM_LIST_SCROLL,
|
|
|
|
ELM_LIST_LIMIT
|
|
|
|
} Elementary_List_Mode;
|
|
|
|
typedef struct _Elm_List_Item Elm_List_Item;
|
|
|
|
EAPI Evas_Object *elm_list_add(Evas_Object *parent);
|
2009-01-08 06:29:13 -08:00
|
|
|
EAPI Elm_List_Item *elm_list_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
|
2009-01-08 23:35:52 -08:00
|
|
|
EAPI Elm_List_Item *elm_list_item_prepend(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *end, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
|
|
|
|
EAPI Elm_List_Item *elm_list_item_insert_before(Evas_Object *obj, Elm_List_Item *before, const char *label, Evas_Object *icon, Evas_Object *end, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
|
|
|
|
EAPI Elm_List_Item *elm_list_item_insert_after(Evas_Object *obj, Elm_List_Item *after, const char *label, Evas_Object *icon, Evas_Object *end, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
|
|
|
|
EAPI void elm_list_go(Evas_Object *obj);
|
|
|
|
EAPI void elm_list_multi_select_set(Evas_Object *obj, Evas_Bool multi);
|
|
|
|
EAPI void elm_list_horizontal_mode_set(Evas_Object *obj, Elementary_List_Mode mode);
|
|
|
|
EAPI const Eina_List *elm_list_items_get(Evas_Object *obj);
|
|
|
|
EAPI const Elm_List_Item *elm_list_selected_item_get(Evas_Object *obj);
|
|
|
|
EAPI const Eina_List *elm_list_selected_items_get(Evas_Object *obj);
|
|
|
|
EAPI void elm_list_item_selected_set(Elm_List_Item *item, Evas_Bool selected);
|
|
|
|
EAPI void elm_list_item_show(Elm_List_Item *item);
|
|
|
|
EAPI void elm_list_item_del(Elm_List_Item *item);
|
|
|
|
EAPI const void *elm_list_item_data_get(Elm_List_Item *item);
|
|
|
|
EAPI Evas_Object *elm_list_item_icon_get(Elm_List_Item *item);
|
|
|
|
EAPI Evas_Object *elm_list_item_end_get(Elm_List_Item *item);
|
2009-01-07 05:49:08 -08:00
|
|
|
/* smart callbacks called:
|
|
|
|
* "clicked" - when the user double-clicked an item
|
2009-01-08 23:35:52 -08:00
|
|
|
* "selected" - when the user selected an item
|
|
|
|
* "unselected" - when the user selected an item
|
2009-01-07 05:49:08 -08:00
|
|
|
*/
|
2009-01-13 01:20:53 -08:00
|
|
|
|
|
|
|
typedef struct _Elm_Carousel_Item Elm_Carousel_Item;
|
|
|
|
EAPI Evas_Object *elm_carousel_add(Evas_Object *parent);
|
|
|
|
EAPI Elm_Carousel_Item *elm_carousel_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
|
|
|
|
EAPI void elm_carousel_item_del(Elm_Carousel_Item *item);
|
|
|
|
EAPI void elm_carousel_item_select(Elm_Carousel_Item *item);
|
|
|
|
/* smart callbacks called:
|
|
|
|
* "clicked" - when the user clicks on a carousel item and becomes selected
|
|
|
|
*/
|
|
|
|
|
2008-11-18 22:23:08 -08:00
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// FIXME: TODO LIST ///////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////////
|
2008-11-17 17:41:49 -08:00
|
|
|
//
|
|
|
|
//// (bugs - high priority)
|
2008-11-16 21:58:21 -08:00
|
|
|
// * scale change for hover doesnt seem to do new size alloc nicely
|
2008-11-18 00:45:38 -08:00
|
|
|
// * left/right arrow broken with password mode for entry + utf8 chars...
|
2008-12-04 19:20:51 -08:00
|
|
|
// * entry signal "changed" not called when deleting
|
|
|
|
// * bubble doesnt handle child size changes right
|
2008-12-18 20:26:24 -08:00
|
|
|
// * table doesnt do homogenous properly
|
2008-11-16 21:58:21 -08:00
|
|
|
//
|
2008-11-17 17:41:49 -08:00
|
|
|
//// (incomplete - medium priority)
|
2008-12-17 18:01:36 -08:00
|
|
|
// * entry selection conflicts with finger scroll (make selection start/stop work on signals?)
|
2008-11-16 21:58:21 -08:00
|
|
|
// * disabled not supported
|
2008-10-07 00:45:49 -07:00
|
|
|
// * tab widget focusing (not useful for touchscreen tho...)
|
2008-11-16 21:58:21 -08:00
|
|
|
// * on the fly theme changes - test (should work)
|
2008-11-18 02:11:57 -08:00
|
|
|
// * need a hold-scroll counter in elm_widget
|
2008-11-26 17:56:56 -08:00
|
|
|
// * add fullscreen mode on/off for windows
|
2008-12-18 00:12:27 -08:00
|
|
|
// * hoversel only vertical right now - make horizontal
|
2009-01-09 05:58:48 -08:00
|
|
|
// * set scaling per widget (and if scaling should be inherited by children)
|
2008-11-16 21:58:21 -08:00
|
|
|
//
|
2008-11-17 17:41:49 -08:00
|
|
|
//// (more widgets/features - medium priority)
|
2008-12-17 18:01:36 -08:00
|
|
|
// * biglist widget (restricted format label + icon intended for massive lists)
|
|
|
|
// * listitem widget (can contain anything)
|
|
|
|
// * treeview widget (like biglist - but items can expand to sub-items)
|
2008-11-02 03:00:21 -08:00
|
|
|
// * radio widget + group handling
|
|
|
|
// * checkbox widget (like toggle)
|
2008-12-17 18:01:36 -08:00
|
|
|
// * page widget (for pushing/popping pages and going back and forward and flipping)
|
|
|
|
// * slider widget
|
|
|
|
//
|
2008-12-23 06:05:56 -08:00
|
|
|
// * carousel selector widget
|
2008-12-30 08:19:46 -08:00
|
|
|
// * in-window dialog container widget (push/pop)
|
2008-12-17 18:01:36 -08:00
|
|
|
// * separator widget (h/v)
|
|
|
|
// * slide-open "panel" that can hold stuff and optionally scroll
|
|
|
|
// * calendar widget (select date)
|
|
|
|
// * range selector (select range of values from X to Y over an interval)
|
|
|
|
// * "dialogbutton" widget (bigger button for bottom of wins)
|
|
|
|
// * dialog window widget
|
|
|
|
// * phone-number widget (hilight country dial prefixes, add flags, photos of contacts that match etc.)
|
|
|
|
// * imageview widget (for large not iconic images)
|
2008-11-14 21:18:36 -08:00
|
|
|
// * tiled image + zoom widget (tiled map viewer)
|
|
|
|
// * dialpad widget - need one with a phone dialpad
|
2009-01-08 06:29:13 -08:00
|
|
|
// * file selector widget
|
2008-11-16 21:58:21 -08:00
|
|
|
//
|
2008-11-17 17:41:49 -08:00
|
|
|
//// (improvements - low priority)
|
2009-01-15 03:34:39 -08:00
|
|
|
// * need a way to set a preferred size of a widget (but not min or max).
|
2009-01-09 05:58:48 -08:00
|
|
|
// * merge with gurana
|
2008-12-18 20:26:24 -08:00
|
|
|
// * use evas's new box instead of a box smart
|
|
|
|
// * use evas's table instead of a table smart
|
|
|
|
// * use stack for win widget
|
2008-12-18 05:38:58 -08:00
|
|
|
// * somehow a pdf(ps) viewer widget that doesnt make it gpl (lgpl)
|
|
|
|
// * emotion widget?
|
|
|
|
// * ewebkit widget
|
2008-12-18 00:12:27 -08:00
|
|
|
// * need url and path entry modes for vkbd
|
2008-12-04 19:20:51 -08:00
|
|
|
// * return list of toplevel window objects
|
2008-11-16 21:58:21 -08:00
|
|
|
// * widgets should show who is focused (not useful for touchscreen)
|
2008-12-17 18:01:36 -08:00
|
|
|
// * scroller could do with page up/down/left/right buttons and and idea of a page size
|
2008-11-16 21:58:21 -08:00
|
|
|
// * current sizing tree inefficient
|
|
|
|
// * need a way to filter entry data for entry (eg for phone numbers)
|
2008-11-18 02:11:57 -08:00
|
|
|
// * win should emit signals based on vkbd type - if it gets a message and is a vkbd win
|
|
|
|
// * win needs a way of setting aspect too
|
|
|
|
// * use the wrong call on the wrong widget and *BOOM*
|
2008-11-16 21:58:21 -08:00
|
|
|
//
|
2008-11-18 22:23:08 -08:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
2008-09-29 23:58:56 -07:00
|
|
|
#endif
|