951ac06d98348d621d783a7e234c703f8240ee56
[apps/home/quickpanel.git] / daemon / notifications / noti_win.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *  http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __NOTI_WIN_H__
18 #define __NOTI_WIN_H__
19 #include <Evas.h>
20
21 enum Noti_Orient {
22         NOTI_ORIENT_TOP = 0,
23         NOTI_ORIENT_BOTTOM,
24         NOTI_ORIENT_LAST
25         } ;
26
27 /* Creates and return a new window (of widget type elm_win) of width equal to
28 root window
29 */
30 Evas_Object *noti_win_add(Evas_Object *parent);
31
32 /* Sets an Evas Object as content of the notification window created using
33 noti_win_add
34 */
35 void noti_win_content_set(Evas_Object *obj, Evas_Object *content);
36
37 /* Sets the orientation of the notification window, this can be of type
38 Noti_Orient
39 */
40 void noti_win_orient_set(Evas_Object *obj, enum Noti_Orient orient);
41 #endif