X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Factors%2Fimage-actor-api.cpp;h=d8644a5f233bd1e67aac09f874bec1c13285f6bb;hp=fa93c7f46ca2e71f202b10c2f7ab9a915087d4b6;hb=c386ab67713f45fadefd131e047bcab65a00e8da;hpb=4c85a797e24c20bfb1670c079e5f66a9a5d6fa0e diff --git a/plugins/dali-script-v8/src/actors/image-actor-api.cpp b/plugins/dali-script-v8/src/actors/image-actor-api.cpp index fa93c7f..d8644a5 100644 --- a/plugins/dali-script-v8/src/actors/image-actor-api.cpp +++ b/plugins/dali-script-v8/src/actors/image-actor-api.cpp @@ -150,62 +150,6 @@ void ImageActorApi::GetImage( const v8::FunctionCallbackInfo& args ) args.GetReturnValue().Set( localObject ); } -/** - * Tell the image actor to use the natural size of the current image - * or future images. - * - * Calling SetSize on this actor or animating the size of the actor - * overrides this behaviour. - * - * The image actor uses the natural image size after an image - * has been loaded. - * @for ImageActor - * @method setToNaturalSize - */ -void ImageActorApi::SetToNaturalSize( const v8::FunctionCallbackInfo& args ) -{ - v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope handleScope( isolate ); - ImageActor imageActor = GetImageActor( isolate, args ); - - imageActor.SetToNaturalSize(); - -} - -/** - * Query whether a pixel area has been set. - * @for ImageActor - * @method isPixelAreaSet - * @return {Boolean} True if a pixel area has been set. - */ -void ImageActorApi::IsPixelAreaSet( const v8::FunctionCallbackInfo& args ) -{ - v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope handleScope( isolate ); - ImageActor imageActor = GetImageActor( isolate, args ); - - args.GetReturnValue().Set( v8::Boolean::New( isolate, imageActor.IsPixelAreaSet() ) ); -} - -/** - * Remove any pixel areas specified with SetPixelArea; the entire image will be displayed. - * - * The actor size will change to that of the Image unless a custom size was set, e.g. via - * actor.size - * @for ImageActor - * @method clearPixelArea - */ -void ImageActorApi::ClearPixelArea( const v8::FunctionCallbackInfo& args ) -{ - v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope handleScope( isolate ); - ImageActor imageActor = GetImageActor( isolate, args ); - - imageActor.ClearPixelArea(); -} - - - } // namespace V8Plugin } // namespace Dali