pCropView->bShowMenu = true;
//_add_gesture_layer(layout, pCropView);
- pCropView->cropbox = ivug_scissorbox_add(layout);
+ pCropView->contents_area = ivug_default_layout_add(parent);
+ evas_object_name_set(pCropView->contents_area, "contets_area");
+ if ( pCropView->contents_area == NULL )
+ {
+ MSG_SETAS_ERROR("Cannot create contets_area.");
+ }
+
+ elm_object_part_content_set(pCropView->layout, "crop.contents.swallow", pCropView->contents_area);
+
+ pCropView->cropbox = ivug_scissorbox_add(pCropView->contents_area);
ivug_scissorbox_type_set(pCropView->cropbox, SCISSOR_BOX_TYPE_2);
elm_object_part_content_set(layout, "scissorbox", pCropView->cropbox);
pCropView->w = 0;
pCropView->h = 0;
-
- pCropView->contents_area = ivug_default_layout_add(parent);
- evas_object_name_set(pCropView->contents_area, "contets_area");
- if ( pCropView->contents_area == NULL )
- {
- MSG_SETAS_ERROR("Cannot create contets_area.");
- }
-
- elm_object_part_content_set(pCropView->layout, "crop.contents.swallow", pCropView->contents_area);
-
return pCropView;
}
goto error;
}
- pSetAsData->crop.box = ivug_scissorbox_add(pSetAsData->layout);
+ MSG_SETAS_HIGH("Create setas layout");
+ pSetAsData->contents_area = ivug_default_layout_add(parent);
+ evas_object_name_set(pSetAsData->contents_area, "contets_area");
+ if ( pSetAsData->contents_area == NULL )
+ {
+ MSG_SETAS_ERROR("Cannot create contets_area.");
+ }
+
+ elm_object_part_content_set(pSetAsData->layout, "setasview.contents.swallow", pSetAsData->contents_area);
+
+ pSetAsData->crop.box = ivug_scissorbox_add(pSetAsData->contents_area);
if ( pSetAsData->crop.box == NULL )
{
pSetAsData->bShowMenu = true;
//_add_gesture_layer(pSetAsData->layout, pSetAsData);
- MSG_SETAS_HIGH("Create setas layout");
- pSetAsData->contents_area = ivug_default_layout_add(parent);
- evas_object_name_set(pSetAsData->contents_area, "contets_area");
- if ( pSetAsData->contents_area == NULL )
- {
- MSG_SETAS_ERROR("Cannot create contets_area.");
- }
-
- elm_object_part_content_set(pSetAsData->layout, "setasview.contents.swallow", pSetAsData->contents_area);
-
evas_object_data_set(pSetAsData->layout, "pSetAsData", pSetAsData);
evas_object_event_callback_add(pSetAsData->layout, EVAS_CALLBACK_MOVE, _on_moved, pSetAsData->layout);
evas_object_event_callback_add(pSetAsData->layout, EVAS_CALLBACK_RESIZE, _on_resized, pSetAsData->layout);