1 #ifndef __DALI_TOOLKIT_TEXT_VIEW_H__
2 #define __DALI_TOOLKIT_TEXT_VIEW_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali-toolkit/internal/text/text-view-interface.h>
23 #include <dali-toolkit/internal/text/visual-model-impl.h>
37 * @brief View provides an interface between the Text layout engine and rendering back-end.
39 class View : public ViewInterface
44 * @brief Create a new instance of a View.
49 * @brief Virtual destructor.
54 * @brief Set the visual model.
56 * @param[in] visualModel The visual model used by the View.
58 void SetVisualModel( VisualModelPtr visualModel );
61 * @copydoc Dali::Toolkit::Text::ViewInterface::GetNumberOfGlyphs()
63 virtual Length GetNumberOfGlyphs() const;
66 * @copydoc Dali::Toolkit::Text::ViewInterface::GetGlyphs()
68 virtual Length GetGlyphs( GlyphInfo* glyphs,
69 Vector2* glyphPositions,
70 GlyphIndex glyphIndex,
71 Length numberOfGlyphs ) const;
74 * @copydoc Dali::Toolkit::Text::ViewInterface::GetTextColor()
76 virtual const Vector4& GetTextColor() const;
79 * @copydoc Dali::Toolkit::Text::ViewInterface::GetShadowOffset()
81 virtual const Vector2& GetShadowOffset() const;
84 * @copydoc Dali::Toolkit::Text::ViewInterface::GetShadowColor()
86 virtual const Vector4& GetShadowColor() const;
89 * @copydoc Dali::Toolkit::Text::ViewInterface::GetUnderlineColor()
91 virtual const Vector4& GetUnderlineColor() const;
94 * @copydoc Dali::Toolkit::Text::ViewInterface::IsUnderlineEnabled()
96 virtual bool IsUnderlineEnabled() const;
99 * @copydoc Dali::Toolkit::Text::ViewInterface::GetUnderlineHeight()
101 virtual float GetUnderlineHeight() const;
106 View( const View& handle );
109 View& operator=( const View& handle );
118 } // namespace Toolkit
122 #endif // __DALI_TOOLKIT_TEXT_VIEW_H__