summaryrefslogtreecommitdiff
path: root/include/grid
diff options
context:
space:
mode:
authorJehun Lim <jehun.lim@samsung.com>2015-09-04 13:15:25 +0900
committerJehun Lim <jehun.lim@samsung.com>2015-09-04 13:24:28 +0900
commit743cb3ad51d3319cf2088aa38d034cf152ce61bd (patch)
tree7ef25c44cd02621454812515d4d3f688e82b3eeb /include/grid
parentadb8da498d89db262adb90769661dc2e21b09ad2 (diff)
downloadair_mediahub-743cb3ad51d3319cf2088aa38d034cf152ce61bd.tar.gz
air_mediahub-743cb3ad51d3319cf2088aa38d034cf152ce61bd.tar.bz2
air_mediahub-743cb3ad51d3319cf2088aa38d034cf152ce61bd.zip
separate grid related code from layout
Change-Id: Ibe8b46bc30a08248891adcf747a065956919aa7e Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
Diffstat (limited to 'include/grid')
-rw-r--r--include/grid/grid.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/include/grid/grid.h b/include/grid/grid.h
new file mode 100644
index 0000000..425843c
--- /dev/null
+++ b/include/grid/grid.h
@@ -0,0 +1,76 @@
+/*
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __AIR_MEDIAHUB_GRID_H__
+#define __AIR_MEDIAHUB_GRID_H__
+
+enum movie_grid_type {
+ E_MOVIE_NAME = 0,
+ E_MOVIE_GENRE,
+ E_MOVIE_DATE,
+ E_MOVIE_FOLDER,
+ E_MOVIE_MAX
+};
+
+enum gallery_grid_type {
+ E_GALLERY_EVENT,
+ E_GALLERY_PLACE,
+ E_GALLERY_VIDEO,
+ E_GALLERY_FOLDER,
+ E_GALLERY_MAX
+};
+
+enum music_grid_type {
+ E_MUSIC_SONG,
+ E_MUSIC_ALBUM,
+ E_MUSIC_ARTIST,
+ E_MUSIC_GENRE,
+ E_MUSIC_FOLDER,
+ E_MUSIC_MAX
+};
+
+struct grid_data {
+ int item_x;
+ int item_y;
+ int item_num;
+ struct grid_class *gclass;
+ Eina_List *(*get_item_list)(struct mediadata *md);
+ void (*item_selected)(Eina_List *list, app_media *am);
+};
+
+struct grid_data *get_movie_grid_data(int type);
+struct grid_data *get_gallery_grid_data(int type);
+struct grid_data *get_music_grid_data(int type);
+
+#define STYLE_MOVIE_NAME "movie_item"
+#define MOVIE_NAME_PADDING 26
+#define MOVIE_NAME_ITEM_X (378 + MOVIE_NAME_PADDING)
+#define MOVIE_NAME_ITEM_Y (294 + MOVIE_NAME_PADDING)
+#define MOVIE_NAME_ITEM_NUM 2
+
+#define STYLE_GALLERY_EVENT "gallery_item"
+#define GALLERY_EVENT_PADDING 6
+#define GALLERY_EVENT_ITEM_X (200 + GALLERY_EVENT_PADDING)
+#define GALLERY_EVENT_ITEM_Y (200 + GALLERY_EVENT_PADDING)
+#define GALLERY_EVENT_ITEM_NUM 3
+
+#define STYLE_MUSIC_SONG "song_item"
+#define MUSIC_SONG_PADDING 26
+#define MUSIC_SONG_ITEM_X (488 + MUSIC_SONG_PADDING)
+#define MUSIC_SONG_ITEM_Y (134 + MUSIC_SONG_PADDING)
+#define MUSIC_SONG_ITEM_NUM 4
+
+#endif /* __AIR_MEDIAHUB_GRID_H__ */