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
Add alignment support in LinearLayout.
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
rendering
/
view-model.h
diff --git
a/dali-toolkit/internal/text/rendering/view-model.h
b/dali-toolkit/internal/text/rendering/view-model.h
index
827ecf0
..
65cf48c
100755
(executable)
--- a/
dali-toolkit/internal/text/rendering/view-model.h
+++ b/
dali-toolkit/internal/text/rendering/view-model.h
@@
-2,7
+2,7
@@
#define DALI_TOOLKIT_TEXT_VIEW_MODEL_H
/*
#define DALI_TOOLKIT_TEXT_VIEW_MODEL_H
/*
- * Copyright (c) 201
7
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
8
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-22,7
+22,9
@@
#include <dali/public-api/common/dali-vector.h>
// INTERNAL INCLUDES
#include <dali/public-api/common/dali-vector.h>
// INTERNAL INCLUDES
+#include <dali-toolkit/public-api/text/text-enumerations.h>
#include <dali-toolkit/internal/text/text-model-interface.h>
#include <dali-toolkit/internal/text/text-model-interface.h>
+#include <dali-toolkit/devel-api/text/text-enumerations-devel.h>
namespace Dali
{
namespace Dali
{
@@
-74,12
+76,17
@@
public:
/**
* @copydoc ModelInterface::GetHorizontalAlignment()
*/
/**
* @copydoc ModelInterface::GetHorizontalAlignment()
*/
- virtual
Layout::HorizontalAlignment
GetHorizontalAlignment() const;
+ virtual
Text::HorizontalAlignment::Type
GetHorizontalAlignment() const;
/**
* @copydoc ModelInterface::GetVerticalAlignment()
*/
/**
* @copydoc ModelInterface::GetVerticalAlignment()
*/
- virtual Layout::VerticalAlignment GetVerticalAlignment() const;
+ virtual Text::VerticalAlignment::Type GetVerticalAlignment() const;
+
+ /**
+ * @copydoc ModelInterface::GetVerticalLineAlignment()
+ */
+ virtual DevelText::VerticalLineAlignment::Type GetVerticalLineAlignment() const;
/**
* @copydoc ModelInterface::IsTextElideEnabled()
/**
* @copydoc ModelInterface::IsTextElideEnabled()
@@
-147,6
+154,11
@@
public:
virtual const Vector4& GetShadowColor() const;
/**
virtual const Vector4& GetShadowColor() const;
/**
+ * @copydoc ModelInterface::GetShadowBlurRadius()
+ */
+ virtual const float& GetShadowBlurRadius() const;
+
+ /**
* @copydoc ModelInterface::GetUnderlineColor()
*/
virtual const Vector4& GetUnderlineColor() const;
* @copydoc ModelInterface::GetUnderlineColor()
*/
virtual const Vector4& GetUnderlineColor() const;
@@
-181,7
+193,17
@@
public:
*/
virtual float GetOutlineWidth() const;
*/
virtual float GetOutlineWidth() const;
- /**
+ /**
+ * @copydoc ModelInterface::GetBackgroundColor()
+ */
+ virtual const Vector4& GetBackgroundColor() const;
+
+ /**
+ * @copydoc ModelInterface::IsBackgroundEnabled()
+ */
+ virtual bool IsBackgroundEnabled() const;
+
+/**
* @brief Does the text elide.
*
* It stores a copy of the visible glyphs and removes as many glyphs as needed
* @brief Does the text elide.
*
* It stores a copy of the visible glyphs and removes as many glyphs as needed