1 #ifndef GEN_GROUP_ITEM_DATA_HPP
2 #define GEN_GROUP_ITEM_DATA_HPP
4 #include "TranslatedString.hpp"
8 enum class SwallowType : int {
16 CHECK_RIGHT_INVISIBLE,
22 RADIO_RIGHT_PROPAGATE_EVENTS_SET,
28 LAYOUT_SIMPLE_PASSWORD, /* for simple password */
35 using SettingCallback = void (*)(void*, Evas_Object*, void*);
38 * an item node in genlist
39 * @todo begings_to is requried?
41 class GenGroupItemData {
43 void **pBack = nullptr;
44 Evas_Object *window = nullptr;
47 Elm_Object_Item *item = nullptr;
49 SwallowType swallow_type;
50 std::string l_swallow_path; /**< left image */
51 std::string r_swallow_path; /**< right image */
54 /**< slider, button, check, editfield, datefield */
55 Evas_Object *eo_check = nullptr;
56 /**< represent check value, slider value, datefield value etc.. */
59 SettingCallback chk_change_cb;
63 Evas_Object *rgd = nullptr;
65 TranslatedString keyStr; /**< title */
66 TranslatedString sub_desc; /**< sub text */
69 /**< input panel type */
70 Elm_Input_Panel_Layout input_type;
71 /** the return key type in input method panel*/
72 Elm_Input_Panel_Return_Key_Type return_key_type;
73 bool input_panel_disable_flag;
74 /** do not autocapital the first char in edit field*/
77 void *userdata = nullptr; /**< just a reference, do not need release. */
80 Evas_Object *notify = nullptr; /**< act as any popup to show user any message */
82 /*record itc style for all genlist item with check/radio/toggle */