2 * Copyright (c) 2015 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.
19 #include <dali-toolkit/public-api/controls/buttons/push-button.h>
22 #include <dali/integration-api/debug.h>
24 #include <dali/public-api/images/resource-image.h>
27 #include <dali-toolkit/internal/controls/buttons/push-button-impl.h>
35 PushButton::PushButton()
40 PushButton::PushButton( Internal::PushButton& implementation )
41 : Button( implementation )
45 PushButton::PushButton( const PushButton& pushButton )
46 : Button( pushButton )
50 PushButton& PushButton::operator=( const PushButton& pushButton )
52 if( &pushButton != this )
54 Button::operator=( pushButton );
59 PushButton::PushButton( Dali::Internal::CustomActor* internal )
62 VerifyCustomActorPointer<Internal::PushButton>(internal);
65 PushButton::~PushButton()
69 PushButton PushButton::New()
71 return Internal::PushButton::New();
74 PushButton PushButton::DownCast( BaseHandle handle )
76 return Control::DownCast<PushButton, Internal::PushButton>(handle);
81 void PushButton::SetButtonImage( Actor image )
83 DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetButtonImage() is deprecated and will be removed from next release. Use Button.SetProperty UNSELECTED_STATE_IMAGE or Styling file instead.\n" );
85 // Passing Image as Actor not supported
88 void PushButton::SetBackgroundImage( Actor image )
90 DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetBackgroundImage() is deprecated and will be removed from next release.\n" );
92 // Passing Image as Actor not supported}
95 void PushButton::SetSelectedImage( Actor image )
97 DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetSelectedImage() is deprecated and will be removed from next release. Use Button.SetProperty SELECTED_STATE_IMAGE or Styling file instead.\n" );
99 // Passing Image as Actor not supported}
102 void PushButton::SetSelectedBackgroundImage( Actor image )
104 DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetSelectedBackgroundImage() is deprecated and will be removed from next release.\n" );
106 // Passing Image as Actor not supported}
109 void PushButton::SetDisabledBackgroundImage( Actor image )
111 DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetDisabledBackgroundImage() is deprecated and will be removed from next release.\n" );
112 // Passing Image as Actor not supported}
115 void PushButton::SetDisabledImage( Actor image )
117 DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetDisabledImage() is deprecated and will be removed from next release. Use Button.SetProperty DISABLED_STATE_IMAGE or Styling file instead.\n" );
118 // Passing Image as Actor not supported
121 void PushButton::SetDisabledSelectedImage( Actor image )
123 DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetDisabledSelectedImage() is deprecated and will be removed from next release.\n" );
124 // Passing Image as Actor not supported
127 } // namespace Toolkit