타이젠 BasicUI 템플릿 소스코드 주석
#include "basicui.h" // 헤더파일을 링크 typedef struct appdata { Evas_Object *win; Evas_Object *conform; Evas_Object *label; } appdata_s; // 앱에서 사용하는 데이터를 저장하는 구조체 static void // 종료버튼을 눌렀을때 일어나는 이벤트 win_delete_request_cb(void *data, Evas_Object *obj, void *event_info) { ui_app_exit(); } static void // 뒤로가기 버튼을 눌렀을때 일어나는 이벤트 win_back_cb(void *data, Evas_Object *obj, void *event_info) { appdata_s *ad = data; /* Let window go to hide state. */ elm_win_lower(ad->win); } static void // UI의 기본틀을 만드는 부분 화면을 구성하는 각종 윈도우와 위젯 컴포넌트의 초기화를 하는 함수 create_base_gui(appdata_s *ad) { /* Window */ /* Create and initialize elm_win. elm_win is mandatory to manipulate window. */ ad->win = elm_win_util_standard_add(PACKAGE, PACKAGE); //앱의 최상위 객체인 윈도우를 생성 elm_win_autodel_set(ad->win, EINA_TRUE); if (elm_win_wm_rotation_supported_get(ad->win)) { int rots[4] = { 0, 90, 180, 270 }; // 0도 90도 180도 270도...