apply FSL(Flora Software License)
[apps/home/gallery.git] / libug / libug-gallery-efl / include / ge-button.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://www.tizenopensource.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 _GE_BUTTON_H_
18 #define _GE_BUTTON_H_
19
20 #include "gallery-efl.h"
21
22 typedef enum _ge_but_mode {
23         GE_BUT_CANCEL,
24         GE_BUT_OK,
25         GE_BUT_DONE,
26 } ge_but_mode;
27
28 typedef void (*But_Smart_Cb) (void *data, Evas_Object *obj, void *event_info); /**< Evas smart objects' "smart callback" function signature */
29
30 Evas_Object *ge_but_create_title_but(ge_ugdata *ugd, Evas_Object *parent, ge_but_mode mode);
31 Evas_Object *_ge_but_create_but(Evas_Object *parent, ge_but_mode mode, But_Smart_Cb cb_func, const void *data);
32
33 #endif /* _GE_BUTTON_H_ */