parent
8bf716e895
commit
a8a0794777
|
@ -12,6 +12,7 @@ collections
|
||||||
image: "move_right.png" COMP;
|
image: "move_right.png" COMP;
|
||||||
image: "thumb_shadow.png" COMP;
|
image: "thumb_shadow.png" COMP;
|
||||||
image: "left_arrow.png" COMP;
|
image: "left_arrow.png" COMP;
|
||||||
|
image: "window_fullscreen.png" COMP;
|
||||||
}
|
}
|
||||||
group
|
group
|
||||||
{
|
{
|
||||||
|
@ -67,6 +68,25 @@ collections
|
||||||
rel2.offset: -1 -1;
|
rel2.offset: -1 -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
part
|
||||||
|
{
|
||||||
|
name: "ephoto.window.fullscreen";
|
||||||
|
type: IMAGE;
|
||||||
|
mouse_events: 1;
|
||||||
|
description
|
||||||
|
{
|
||||||
|
state: "default" 0.0;
|
||||||
|
min: 24 24;
|
||||||
|
max: 24 24;
|
||||||
|
rel1.to: "background";
|
||||||
|
rel1.relative: 1.0 1.0;
|
||||||
|
rel1.offset: -25 -20;
|
||||||
|
rel2.to: "background";
|
||||||
|
rel2.relative: 1.0 1.0;
|
||||||
|
rel2.offset: -25 -20;
|
||||||
|
image.normal: "window_fullscreen.png";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
group
|
group
|
||||||
|
|
|
@ -18,4 +18,5 @@ move_left.png \
|
||||||
move_right.png \
|
move_right.png \
|
||||||
selected.png \
|
selected.png \
|
||||||
thumb_shadow.png \
|
thumb_shadow.png \
|
||||||
left_arrow.png
|
left_arrow.png \
|
||||||
|
window_fullscreen.png
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -4,6 +4,7 @@
|
||||||
static void window_close(Ecore_Evas *ee);
|
static void window_close(Ecore_Evas *ee);
|
||||||
static void window_resize(Ecore_Evas *ee);
|
static void window_resize(Ecore_Evas *ee);
|
||||||
static void window_shown(void *data, Evas *e, Evas_Object *obj, void *event_info);
|
static void window_shown(void *data, Evas *e, Evas_Object *obj, void *event_info);
|
||||||
|
static void go_fullscreen(void *data, Evas_Object *obj, const char *emission, const char *source);
|
||||||
|
|
||||||
/*Ephoto Main Global*/
|
/*Ephoto Main Global*/
|
||||||
Ephoto *em;
|
Ephoto *em;
|
||||||
|
@ -32,6 +33,8 @@ void create_main_window(void)
|
||||||
evas_object_move(em->bg, 0, 0);
|
evas_object_move(em->bg, 0, 0);
|
||||||
evas_object_event_callback_add(em->bg, EVAS_CALLBACK_SHOW, window_shown, NULL);
|
evas_object_event_callback_add(em->bg, EVAS_CALLBACK_SHOW, window_shown, NULL);
|
||||||
evas_object_show(em->bg);
|
evas_object_show(em->bg);
|
||||||
|
|
||||||
|
edje_object_signal_callback_add(em->bg, "mouse,up,1", "ephoto.window.fullscreen", go_fullscreen, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -70,3 +73,15 @@ static void window_resize(Ecore_Evas *ee)
|
||||||
evas_object_resize(em->flow, w, h);
|
evas_object_resize(em->flow, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void go_fullscreen(void *data, Evas_Object *obj, const char *emission, const char *source)
|
||||||
|
{
|
||||||
|
int full;
|
||||||
|
|
||||||
|
full = ecore_evas_fullscreen_get(em->ee);
|
||||||
|
|
||||||
|
if (full == 0)
|
||||||
|
ecore_evas_fullscreen_set(em->ee, 1);
|
||||||
|
if (full == 1)
|
||||||
|
ecore_evas_fullscreen_set(em->ee, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue