2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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 #include "image-channel-control.h"
18 #include "image-channel-control-impl.h"
23 ImageChannelControl::ImageChannelControl()
27 ImageChannelControl::ImageChannelControl( const ImageChannelControl& imageChannelControl )
28 : Control( imageChannelControl )
32 ImageChannelControl& ImageChannelControl::operator= ( const ImageChannelControl& rhs )
36 Control::operator=( rhs );
41 ImageChannelControl::~ImageChannelControl()
45 ImageChannelControl ImageChannelControl::New()
47 ImageChannelControl imageChannelControl = Internal::ImageChannelControl::New();
48 return imageChannelControl;
51 ImageChannelControl ImageChannelControl::New( const std::string& url )
53 ImageChannelControl imageChannelControl = Internal::ImageChannelControl::New();
54 imageChannelControl.SetImage( url );
55 return imageChannelControl;
58 ImageChannelControl ImageChannelControl::DownCast( BaseHandle handle )
60 return Control::DownCast< ImageChannelControl, Internal::ImageChannelControl > ( handle );
63 void ImageChannelControl::SetImage( const std::string& url )
65 GetImpl( *this ).SetImage( url );
68 void ImageChannelControl::SetVisibility( bool visibility )
70 GetImpl( *this ).SetVisibility( visibility );
73 ImageChannelControl::ImageChannelControl( Internal::ImageChannelControl& implementation )
74 : Control( implementation )
78 ImageChannelControl::ImageChannelControl( Dali::Internal::CustomActor* internal )
81 VerifyCustomActorPointer< Internal::ImageChannelControl >( internal ) ;