summaryrefslogtreecommitdiff
path: root/main/src/util/ivug-widget.h
blob: 151ee1e734a6b90c317169461f5133dac6c9156d (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
/*
 * 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.
 */


#ifndef __IVUG_WIDGET_H__
#define __IVUG_WIDGET_H__


typedef void(*OnClickCB)(void *data, Evas_Object *obj, void *event_info);

#ifdef __cplusplus
extern "C" {
#endif

/*
	Internal use only... use macro DELETE_LOG instead
*/
void ivug_on_obj_deleted(Evas_Object* obj, char *msg, const char *func, int line);


#define DELETE_NOTIFY(obj)	\
	ivug_on_obj_deleted(obj, #obj, __func__, __LINE__)

/*
	Create elm_bg with color - r,g,b
*/
Evas_Object *
ivug_bg_add(Evas_Object* parent, int r, int g, int b);

Evas_Object *
ivug_layout_add(Evas_Object *win, const char *edjname, const char *groupname);

Evas_Object*
ivug_default_layout_add( Evas_Object *win);

Evas_Object *
ivug_button_add(Evas_Object *parent, char *style, char *caption, Evas_Object *icon, OnClickCB pFunc, const void *data );

Evas_Object *
ivug_icon_add(Evas_Object *parent, char *edjname, char *groupname);

Evas_Object *
ivug_controlbar_add(Evas_Object *parent, const char *style);

void
ivug_object_del(Evas_Object *obj);


#ifdef __cplusplus
}
#endif


#endif // __IVUG_WIDGET_H__