当前位置: 首页>>代码示例>>C++>>正文


C++ elm_widget_data_get函数代码示例

本文整理汇总了C++中elm_widget_data_get函数的典型用法代码示例。如果您正苦于以下问题:C++ elm_widget_data_get函数的具体用法?C++ elm_widget_data_get怎么用?C++ elm_widget_data_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了elm_widget_data_get函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: _signal_clicked

static void
_signal_clicked(void *data, Evas_Object * o, const char *emission,
		const char *source)
{
	Widget_Data *wd = elm_widget_data_get(data);
	evas_object_smart_callback_call(wd->widget, "clicked", emission[0]);
}
开发者ID:shr-project,项目名称:shr,代码行数:7,代码来源:elm_keypad.c

示例2: _del_hook

static void
_del_hook(Evas_Object *obj)
{
   Widget_Data *wd = elm_widget_data_get(obj);
   if (!wd) return;
   free(wd);
}
开发者ID:TizenChameleon,项目名称:uifw-elementary,代码行数:7,代码来源:elm_separator.c

示例3: _del_hook

static void
_del_hook(Evas_Object * obj)
{
	Widget_Data *wd = elm_widget_data_get(obj);
	evas_object_del(wd->keypad);
	free(wd);
}
开发者ID:shr-project,项目名称:shr,代码行数:7,代码来源:elm_keypad.c

示例4: _theme_hook

static void
_theme_hook(Evas_Object *obj)
{
   Widget_Data *wd = elm_widget_data_get(obj);
   if (!wd) return;
   _elm_widget_mirrored_reload(obj);
   _mirrored_set(obj, elm_widget_mirrored_get(obj));
   _elm_theme_object_set(obj, wd->bbl, "bubble", wd->corner,
                         elm_widget_style_get(obj));
   edje_object_part_text_set(wd->bbl, "elm.text", wd->label);
   if (wd->label) edje_object_signal_emit(wd->bbl, "elm,state,text,visible", "elm");
   else edje_object_signal_emit(wd->bbl, "elm,state,text,hidden", "elm");
   edje_object_part_text_set(wd->bbl, "elm.info", wd->info);
   if (wd->info) edje_object_signal_emit(wd->bbl, "elm,state,info,visible", "elm");
   else edje_object_signal_emit(wd->bbl, "elm,state,info,hidden", "elm");
   if (wd->content)
     {
        edje_object_part_swallow(wd->bbl, "elm.swallow.content", wd->content);
        edje_object_message_signal_process(wd->bbl);
     }
   if (wd->icon)
     edje_object_signal_emit(wd->bbl, "elm,state,icon,visible", "elm");
   else
     edje_object_signal_emit(wd->bbl, "elm,state,icon,hidden", "elm");
   edje_object_scale_set(wd->bbl,
                         elm_widget_scale_get(obj) * _elm_config->scale);
   _sizing_eval(obj);
}
开发者ID:wargio,项目名称:EFL-PS3,代码行数:28,代码来源:elm_bubble.c

示例5: _theme_hook

static void
_theme_hook(Evas_Object *obj)
{
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
    _elm_widget_mirrored_reload(obj);
    if (wd->scr)
    {
        Evas_Object *edj;
        const char *str;

        _mirrored_set(obj, elm_widget_mirrored_get(obj));
        elm_smart_scroller_object_theme_set(obj, wd->scr, "panel", "base",
                                            elm_widget_style_get(obj));
        //   scale = (elm_widget_scale_get(obj) * _elm_config->scale);
        //   edje_object_scale_set(wd->scr, scale);
        edj = elm_smart_scroller_edje_object_get(wd->scr);
        str = edje_object_data_get(edj, "focus_highlight");
        if ((str) && (!strcmp(str, "on")))
            elm_widget_highlight_in_theme_set(obj, EINA_TRUE);
        else
            elm_widget_highlight_in_theme_set(obj, EINA_FALSE);
    }

    _sizing_eval(obj);
}
开发者ID:amitesh-singh,项目名称:Enlightenment,代码行数:26,代码来源:elm_panel.c

示例6: _mirrored_set

static void
_mirrored_set(Evas_Object *obj, Eina_Bool rtl)
{
   Widget_Data *wd = elm_widget_data_get(obj);
   if (!wd) return;
   edje_object_mirrored_set(wd->sep, rtl);
}
开发者ID:TizenChameleon,项目名称:uifw-elementary,代码行数:7,代码来源:elm_separator.c

示例7: _sizing_eval

static void
_sizing_eval(Evas_Object *obj)
{
   Widget_Data *wd = elm_widget_data_get(obj);
   Evas_Coord minw = -1, minh = -1;
   int i;

   if (!wd) return;
   elm_coords_finger_size_adjust(1, &minw, 1, &minh);
   for (i = 0; i < 4; i++)
     {
        if (wd->cp[i]->bg_rect)
          _colorselector_set_size_hints(wd->cp[i]->bg_rect, 1, 1);
        _colorselector_set_size_hints(wd->cp[i]->bar, 1, 1);
        _colorselector_set_size_hints(wd->cp[i]->rbt, 1, 1);
        _colorselector_set_size_hints(wd->cp[i]->lbt, 1, 1);

        _colorselector_set_size_hints(wd->cp[i]->colorbar, 4, 1);
     }

   elm_coords_finger_size_adjust(4, &minw, 4, &minh);
   edje_object_size_min_restricted_calc(wd->base, &minw, &minh, minw, minh);
   evas_object_size_hint_min_set(obj, minw, minh);
   evas_object_size_hint_max_set(obj, -1, -1);
}
开发者ID:wargio,项目名称:EFL-PS3,代码行数:25,代码来源:elm_colorselector.c

示例8: _plus_trigered

static void
_plus_trigered(void *data)
{
	Widget_Data *wd = elm_widget_data_get(data);
	ecore_timer_del(wd->plus_timer);
	wd->plus_timer = NULL;
	evas_object_smart_callback_call(wd->widget, "clicked", '+');
}
开发者ID:shr-project,项目名称:shr,代码行数:8,代码来源:elm_keypad.c

示例9: _del_pre_hook

static void
_del_pre_hook(Evas_Object *obj)
{
   Widget_Data *wd = elm_widget_data_get(obj);

   if (!wd) return;
   evas_object_del(wd->img);
}
开发者ID:amitesh-singh,项目名称:Enlightenment,代码行数:8,代码来源:elm_plug.c

示例10: elm_separator_horizontal_get

EAPI Eina_Bool
elm_separator_horizontal_get(const Evas_Object *obj)
{
   ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
   Widget_Data *wd = elm_widget_data_get(obj);
   if (!wd) return EINA_FALSE;
   return wd->horizontal;
}
开发者ID:TizenChameleon,项目名称:uifw-elementary,代码行数:8,代码来源:elm_separator.c

示例11: _del_hook

static void
_del_hook(Evas_Object *obj)
{
   Widget_Data *wd = elm_widget_data_get(obj);
   if (!wd) return;
   if (wd->label) eina_stringshare_del(wd->label);
   free(wd);
}
开发者ID:TizenChameleon,项目名称:uifw-elementary,代码行数:8,代码来源:elm_frame.c

示例12: _zero_mouse_down

static void
_zero_mouse_down(void *data, Evas_Object * o, const char *emission,
		 const char *source)
{
	Widget_Data *wd = elm_widget_data_get(data);
	if (wd->plus_timer == NULL)
		wd->plus_timer = ecore_timer_add(0.5, _plus_trigered, data);
}
开发者ID:shr-project,项目名称:shr,代码行数:8,代码来源:elm_keypad.c

示例13: _del_pre_hook

static void
_del_pre_hook(Evas_Object *obj)
{
   Widget_Data *wd = elm_widget_data_get(obj);
   if (!wd) return;
   evas_object_event_callback_del_full(wd->btn, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
                                       _changed_size_hints, obj);
   evas_object_smart_callback_del(wd->btn, "clicked", _button_clicked);
}
开发者ID:wargio,项目名称:EFL-PS3,代码行数:9,代码来源:elc_fileselector_button.c

示例14: _focus_next_hook

static Eina_Bool
_focus_next_hook(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_Object **next)
{
   Widget_Data *wd = elm_widget_data_get(obj);
   Evas_Object *cur;

   if ((!wd) || (!wd->content)) return EINA_FALSE;
   cur = wd->content;
   return elm_widget_focus_next_get(cur, dir, next);
}
开发者ID:rzr,项目名称:testing-elementary18,代码行数:10,代码来源:elm_factory.c

示例15: _del_hook

static void
_del_hook(Evas_Object *obj)
{
   Widget_Data *wd = elm_widget_data_get(obj);
   int i = 0;

   if (!wd) return;
   for (i = 0; i < 4; i++) free(wd->cp[i]);
   free(wd);
}
开发者ID:wargio,项目名称:EFL-PS3,代码行数:10,代码来源:elm_colorselector.c


注:本文中的elm_widget_data_get函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。