2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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
8 * http://floralicense.org/license/
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.
26 ORDER_ALPHABETICAL = 1
36 char *popup_title_text;
37 char *popup_content_text;
38 char *popup_confirm_text;
39 char *popup_cancel_text;
40 Elm_Popup_Orient orientation;
44 typedef void (*popup_confirm_cb)(void *data);
45 typedef void (*popup_cancel_cb)(void *data);
48 * @brief Allocates a structure for initialze popup widet
49 * @return Pointer to popup data. It must be freed manually.
51 popup_data_t *popup_create_data(void);
54 * @brief Frees p_data structure memory and its members
57 void popup_data_free(popup_data_t *p_data);
60 * @brief Function shows popup window on the screen
61 * @param data popup_data_t struct which is used for initialize popup with
63 *popup_confirm_cb - function called when confirm button will be clicked.
64 * popup_cancel_cb - function called when cancel button will be clicked.
65 * cb_data - data used in callback functions.
67 void popup_show(popup_data_t *data, popup_confirm_cb confirm_cb,
68 popup_cancel_cb cancel_cb, void *cb_data);
71 * @brief Hide popup and remove all data
72 * @returns EINA_TRUE if popup is visible otherwise EINA_FALSE
74 Eina_Bool popup_destroy(void);