projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow text-selection scroll indicator to have a different style
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
text-controls
/
text-field-impl.h
diff --git
a/dali-toolkit/internal/controls/text-controls/text-field-impl.h
b/dali-toolkit/internal/controls/text-controls/text-field-impl.h
index
558cced
..
796e57f
100644
(file)
--- a/
dali-toolkit/internal/controls/text-controls/text-field-impl.h
+++ b/
dali-toolkit/internal/controls/text-controls/text-field-impl.h
@@
-1,5
+1,5
@@
-#ifndef
__DALI_TOOLKIT_INTERNAL_TEXT_FIELD_H__
-#define
__DALI_TOOLKIT_INTERNAL_TEXT_FIELD_H__
+#ifndef
DALI_TOOLKIT_INTERNAL_TEXT_FIELD_H
+#define
DALI_TOOLKIT_INTERNAL_TEXT_FIELD_H
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
@@
-18,18
+18,18
@@
*
*/
*
*/
+// EXTERNAL INCLUDES
+#include <dali/devel-api/adaptor-framework/clipboard-event-notifier.h>
+
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/control-impl.h>
#include <dali-toolkit/public-api/controls/text-controls/text-field.h>
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/control-impl.h>
#include <dali-toolkit/public-api/controls/text-controls/text-field.h>
-#include <dali-toolkit/internal/text/clipping/text-clipper.h>
#include <dali-toolkit/internal/text/decorator/text-decorator.h>
#include <dali-toolkit/internal/text/text-control-interface.h>
#include <dali-toolkit/internal/text/decorator/text-decorator.h>
#include <dali-toolkit/internal/text/text-control-interface.h>
+#include <dali-toolkit/internal/text/text-editable-control-interface.h>
#include <dali-toolkit/internal/text/text-controller.h>
#include <dali-toolkit/internal/text/rendering/text-renderer.h>
#include <dali-toolkit/internal/text/text-controller.h>
#include <dali-toolkit/internal/text/rendering/text-renderer.h>
-// EXTERNAL INCLUDES
-#include <dali/devel-api/adaptor-framework/clipboard-event-notifier.h>
-
namespace Dali
{
namespace Dali
{
@@
-42,7
+42,7
@@
namespace Internal
/**
* @brief A control which renders a short text string.
*/
/**
* @brief A control which renders a short text string.
*/
-class TextField : public Control, public Text::ControlInterface
+class TextField : public Control, public Text::ControlInterface
, public Text::EditableControlInterface
{
public:
{
public:
@@
-162,15
+162,12
@@
private: // From Control
// From ControlInterface
/**
// From ControlInterface
/**
- * @copydoc Text::ControlInterface::AddDecoration()
- */
- virtual void AddDecoration( Actor& actor, bool needsClipping );
-
- /**
* @copydoc Text::ControlInterface::RequestTextRelayout()
*/
virtual void RequestTextRelayout();
* @copydoc Text::ControlInterface::RequestTextRelayout()
*/
virtual void RequestTextRelayout();
+// From EditableControlInterface
+
/**
* @copydoc Text::ControlInterface::TextChanged()
*/
/**
* @copydoc Text::ControlInterface::TextChanged()
*/
@@
-186,6
+183,11
@@
private: // From Control
*/
virtual void InputStyleChanged( Text::InputStyle::Mask inputStyleMask );
*/
virtual void InputStyleChanged( Text::InputStyle::Mask inputStyleMask );
+ /**
+ * @copydoc Text::ControlInterface::AddDecoration()
+ */
+ virtual void AddDecoration( Actor& actor, bool needsClipping );
+
private: // Implementation
/**
private: // Implementation
/**
@@
-209,11
+211,8
@@
private: // Implementation
/**
* @brief Enable or disable clipping.
/**
* @brief Enable or disable clipping.
- *
- * @param[in] clipping True if clipping should be enabled.
- * @param[in] size The area to clip within.
*/
*/
- void EnableClipping(
bool clipping, const Vector2& size
);
+ void EnableClipping();
/**
* @brief Callback when keyboard is shown/hidden.
/**
* @brief Callback when keyboard is shown/hidden.
@@
-269,12
+268,13
@@
private: // Data
Text::ControllerPtr mController;
Text::RendererPtr mRenderer;
Text::DecoratorPtr mDecorator;
Text::ControllerPtr mController;
Text::RendererPtr mRenderer;
Text::DecoratorPtr mDecorator;
- T
ext::ClipperPtr mClipper
; ///< For EXCEED_POLICY_CLIP
+ T
oolkit::Control mStencil
; ///< For EXCEED_POLICY_CLIP
std::vector<Actor> mClippingDecorationActors; ///< Decoration actors which need clipping.
Actor mRenderableActor;
CallbackBase* mIdleCallback;
std::vector<Actor> mClippingDecorationActors; ///< Decoration actors which need clipping.
Actor mRenderableActor;
CallbackBase* mIdleCallback;
+ float mAlignmentOffset;
int mRenderingBackend;
int mExceedPolicy;
bool mHasBeenStaged:1;
int mRenderingBackend;
int mExceedPolicy;
bool mHasBeenStaged:1;
@@
-306,4
+306,4
@@
inline const Toolkit::Internal::TextField& GetImpl( const Toolkit::TextField& te
} // namespace Dali
} // namespace Dali
-#endif //
__DALI_TOOLKIT_INTERNAL_TEXT_FIELD_H__
+#endif //
DALI_TOOLKIT_INTERNAL_TEXT_FIELD_H