summaryrefslogtreecommitdiff
path: root/main/src/effect/template.c
blob: 22868eb21aca340f6c39e517d6fc6a61f6477da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
 *
 * 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.
 */


#include "ivug-common.h"
#include "ivug-effect.h"


typedef struct {
	Evas_Object *src;
	Evas_Object *dst;

	Evas_Object *object;
	Evas_Object *orig_cliper;

	Evas_Object *cliper;

	int screen_w;
	int screen_h;
} effect_data;


static Effect_Data __ivug_init(Evas_Object *src, Evas_Object *dst, int screen_w, int screen_h, int rotation)
{
	IVUG_FUNC_ENTER();

	IVUG_FUNC_LEAVE();
}

static void __ivug_anim(Effect_Data data, double percent)
{
/*      IVUG_FUNC_ENTER(); */

/*      IVUG_FUNC_LEAVE(); */
}

static void __ivug_pause(Effect_Data data)
{
	IVUG_FUNC_ENTER();

	IVUG_FUNC_LEAVE();
}

static void __ivug_resume(Effect_Data data)
{
	IVUG_FUNC_ENTER();

	IVUG_FUNC_LEAVE();
}

static void __ivug_spin_finialize(Effect_Data data)
{
	IVUG_FUNC_ENTER();

	IVUG_FUNC_LEAVE();
}

Effect_Engine *ivug_xxx_add(void)
{
	Effect_Engine *eng_spin = calloc(1, sizeof(Effect_Engine));
	ivug_retvm_if(eng_spin == NULL, NULL, "calloc failed");

	eng_spin->func.init = &__ivug_init;
	eng_spin->func.animate = &__ivug_anim;
	eng_spin->func.pause = &__ivug_pause;
	eng_spin->func.resume = &__ivug_resume;
	eng_spin->func.finalize = &__ivug_finialize;

	return eng_spin;
}