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/text-controls/text-field.h>
22 #include <dali-toolkit/internal/controls/text-controls/text-field-impl.h>
30 const std::string TextField::PLACEHOLDER_TEXT_PROPERTY_NAME("placeholder-text");
31 const std::string TextField::TEXT_PROPERTY_NAME("text");
32 const std::string TextField::CURSOR_IMAGE_PROPERTY_NAME("cursor-image");
33 const std::string TextField::PRIMARY_CURSOR_COLOR_PROPERTY_NAME("primary-cursor-color");
34 const std::string TextField::SECONDARY_CURSOR_COLOR_PROPERTY_NAME("secondary-cursor-color");
35 const std::string TextField::ENABLE_CURSOR_BLINK_PROPERTY_NAME("enable-cursor-blink");
36 const std::string TextField::CURSOR_BLINK_INTERVAL_PROPERTY_NAME("cursor-blink-interval");
37 const std::string TextField::CURSOR_BLINK_DURATION_PROPERTY_NAME("cursor-blink-duration");
39 TextField TextField::New()
41 return Internal::TextField::New();
44 TextField::TextField()
48 TextField::TextField( const TextField& handle )
53 TextField& TextField::operator=( const TextField& handle )
57 Control::operator=( handle );
62 TextField::~TextField()
66 TextField TextField::DownCast( BaseHandle handle )
68 return Control::DownCast<TextField, Internal::TextField>(handle);
71 void TextField::SetRenderer( Text::RendererPtr renderer )
73 GetImpl(*this).SetRenderer( renderer );
76 TextField::TextField( Internal::TextField& implementation )
77 : Control(implementation)
81 TextField::TextField( Dali::Internal::CustomActor* internal )
84 VerifyCustomActorPointer<Internal::TextField>( internal );
87 } // namespace Toolkit