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://www.tizenopensource.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_CROP_VIEW_H__
18 #define __IVUG_CROP_VIEW_H__
20 #include "ivug-define.h"
25 CROP_ERROR_TYPE_UNKNOWN_FORMAT,
26 CROP_ERROR_TYPE_PERMISSION_DENIED,
27 CROP_ERROR_TYPE_INVALID_FILE,
28 CROP_ERROR_TYPE_GENERAL,
35 Evas_Object *photocam;
40 Evas_Object *btn_back;
42 Evas_Object *contents_area;
43 Evas_Object *notify_area;
61 Ecore_Timer *box_timer;
68 "loaded" with error code
69 "ok,clicked" - Button "OK" clicked with filepath
70 "cancel,clicked" - Button "Cancel" clicked
78 /* this api is for trasition */
79 void _ivug_crop_view_box_delete(IvugCropView *pCropView);
81 IvugCropView *ivug_crop_view_create(Evas_Object *parent);
83 bool ivug_crop_view_box_size_set(IvugCropView *pCropView, int w, int h);
85 bool ivug_crop_view_box_ratio_fix(IvugCropView *pCropView, bool bFix);
87 bool ivug_crop_view_file_set(IvugCropView *pCropView, const char *file);
89 bool ivug_crop_view_destination_set(IvugCropView *pCropView, const char *dir, const char *name);
91 void ivug_crop_view_destroy(IvugCropView *pCropView);
93 Evas_Object *ivug_crop_view_get_object(IvugCropView *pCropView);
95 void ivug_crop_view_create_menu(IvugCropView *pCropView, Evas_Object *navi_bar);
101 #endif // __IVUG_CROP_VIEW_H__