3 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #include <Elementary.h>
19 #include <app_debug.h>
24 #include "view_photo.h"
32 static Evas_Object *_create(Evas_Object *win, void *data)
38 _ERR("Invalid argument");
42 priv = calloc(1, sizeof(*priv));
44 _ERR("failed to calloc priv");
48 base = utils_add_layout(win, GRP_PHOTO, false, NULL);
50 _ERR("failed to create base");
54 evas_object_size_hint_weight_set(base, EVAS_HINT_EXPAND,
56 elm_win_resize_object_add(win, base);
61 viewmgr_set_view_data(VIEW_PHOTO, priv);
66 static void _show(void *data)
71 _ERR("Invalid argument");
77 evas_object_show(priv->base);
80 static void _hide(void *data)
85 _ERR("Invalid argument");
91 evas_object_hide(priv->base);
94 static void _destroy(void *data)
99 _ERR("Invalid argument");
105 evas_object_del(priv->base);
109 static view_class vclass = {
110 .view_id = VIEW_PHOTO,
117 view_class *view_photo_get_vclass(void)