#define DALI_TOOLKIT_INTERNAL_TEXT_FIELD_H
/*
- * Copyright (c) 2017 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.
*/
void SelectWholeText();
+ /**
+ * @brief Called to unselect the whole texts.
+ */
+ void SelectNone();
+
private: // From Control
/**
virtual void OnLongPress( const LongPressGesture& gesture );
/**
- * @copydoc Control::OnStageConnection()
+ * @copydoc Control::OnSceneConnection()
*/
- virtual void OnStageConnection( int depth );
+ virtual void OnSceneConnection( int depth );
/**
* @copydoc Dali::CustomActorImpl::OnKeyEvent(const KeyEvent&)
* @param[in] actor TextField touched
* @param[in] touch Touch information
*/
- bool OnTouched( Actor actor, const TouchData& touch );
+ bool OnTouched( Actor actor, const TouchEvent& touch );
/**
* @brief Callbacks called on idle.
*/
void RenderText( Text::Controller::UpdateTextType updateTextType );
- // Connection needed to re-render text, when a Text Field returns to the stage.
- void OnStageConnect( Dali::Actor actor );
+ // Connection needed to re-render text, when a Text Field returns to the scene.
+ void OnSceneConnect( Dali::Actor actor );
+
+public: // For UTC only
+
+ Text::ControllerPtr GetTextController() { return mController; }
private: // Data
Actor mRenderableActor;
Actor mActiveLayer;
+ Actor mBackgroundActor;
CallbackBase* mIdleCallback;
float mAlignmentOffset;