2 * Copyright 2012 Samsung Electronics Co., Ltd
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
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.
17 #ifndef __IVUG_NAME_VIEW_H__
18 #define __IVUG_NAME_VIEW_H__
20 #include "ivug-common.h"
21 #include "ivug-media.h"
24 NAME_VIEW_RESPONSE_OK,
25 NAME_VIEW_RESPONSE_CANCEL,
28 typedef void (*FNResponse)(ivug_name_response resp, const char *string, void *pClientData);
30 typedef struct _Ivug_NameView
38 Evas_Object *editfield;
40 Evas_Object *btn_done;
42 FNResponse fnresponse;
52 ivug_name_view_create(Evas_Object *parent, const char *title);
55 ivug_name_view_set_title(Ivug_NameView *pNameView, const char *title);
58 ivug_name_view_set_entry(Ivug_NameView *pNameView, const char *str);
61 ivug_name_view_set_response_callback(Ivug_NameView *pNameView, FNResponse resp, void *data);
64 ivug_name_view_destroy(Ivug_NameView *pNameView);
67 ivug_name_view_object_get(Ivug_NameView *pNameView);
70 ivug_name_view_set_focus(Ivug_NameView *pNameView);
73 ivug_name_view_set_max_length(Ivug_NameView *pNameView, int max_len);
79 #endif // __IVUG_NAME_VIEW_H__