Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
[Widget]How a widget get it’s smart class
Actually I was reading the source code of Elementary currently.
I found some problems ,could you Please help me:
when I trace an widget about how it is created(Elm_layout, For example). It’s marvelous that I cannot find out how a widget’s Smart Class was created!
———————————————–elementary-1.7.1————————————————————-
————Elm_layout.c
EAPI Evas_Object * elm_layout_add(Evas_Object *parent)
The detail is:
EAPI Evas_Object *
elm_layout_add(Evas_Object *parent)
{
Evas_Object *obj;
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
obj = elm_widget_add( _elm_layout_widget_smart_class_new() , parent);
if (!obj) return NULL;
…….
}
I tried all I could do to find out the implementation of the new fuction(in bold) :
_elm_layout_widget_smart_class_new()
But failed!
And , I have noticed that many widgets(Maybe all) get its Smart class by this function.
Waiting for your answer!
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio