X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fstyling%2Fimage-channel-control.cpp;h=c6254e37b093c35680a86a8c3f7f94edfd4e9101;hb=50c46006658a2ce15af301840b041320aa3585ce;hp=afe870ddd219bc7f0e366b4b9552dd2f1829d076;hpb=0a28d6445ef0ce95e46769a0c4208291ff094603;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/styling/image-channel-control.cpp b/examples/styling/image-channel-control.cpp index afe870d..c6254e3 100644 --- a/examples/styling/image-channel-control.cpp +++ b/examples/styling/image-channel-control.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,21 +19,20 @@ namespace Demo { - ImageChannelControl::ImageChannelControl() { } -ImageChannelControl::ImageChannelControl( const ImageChannelControl& imageChannelControl ) -: Control( imageChannelControl ) +ImageChannelControl::ImageChannelControl(const ImageChannelControl& imageChannelControl) +: Control(imageChannelControl) { } -ImageChannelControl& ImageChannelControl::operator= ( const ImageChannelControl& rhs ) +ImageChannelControl& ImageChannelControl::operator=(const ImageChannelControl& rhs) { - if( &rhs != this ) + if(&rhs != this) { - Control::operator=( rhs ); + Control::operator=(rhs); } return *this; } @@ -48,33 +47,37 @@ ImageChannelControl ImageChannelControl::New() return imageChannelControl; } -ImageChannelControl ImageChannelControl::New( const std::string& url ) +ImageChannelControl ImageChannelControl::New(const std::string& url) { ImageChannelControl imageChannelControl = Internal::ImageChannelControl::New(); - imageChannelControl.SetImage( url ); + imageChannelControl.SetImage(url); return imageChannelControl; } -ImageChannelControl ImageChannelControl::DownCast( BaseHandle handle ) +ImageChannelControl ImageChannelControl::DownCast(BaseHandle handle) { - return Control::DownCast< ImageChannelControl, Internal::ImageChannelControl > ( handle ); + return Control::DownCast(handle); } -void ImageChannelControl::SetImage( const std::string& url ) +void ImageChannelControl::SetImage(const std::string& url) { - GetImpl( *this ).SetImage( url ); + GetImpl(*this).SetImage(url); } -ImageChannelControl::ImageChannelControl( Internal::ImageChannelControl& implementation ) -: Control( implementation ) +void ImageChannelControl::SetVisibility(bool visibility) { + GetImpl(*this).SetVisibility(visibility); } -ImageChannelControl::ImageChannelControl( Dali::Internal::CustomActor* internal ) -: Control( internal ) +ImageChannelControl::ImageChannelControl(Internal::ImageChannelControl& implementation) +: Control(implementation) { - VerifyCustomActorPointer< Internal::ImageChannelControl >( internal ) ; } +ImageChannelControl::ImageChannelControl(Dali::Internal::CustomActor* internal) +: Control(internal) +{ + VerifyCustomActorPointer(internal); +} } //namespace Demo