2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FGrp_TextTextLine.h
20 * @brief This is the header file for the TextLine class.
22 * This header file contains the declarations of the %TextLine class.
25 #ifndef _FGRP_INTERNAL_TEXT_LINE_H_
26 #define _FGRP_INTERNAL_TEXT_LINE_H_
28 #include "FGrp_TextCommon.h"
30 namespace Tizen { namespace Graphics
43 TextLine(TextComposite* pCompositeText = null);
45 virtual ~TextLine(void);
48 virtual result Draw(_CanvasImpl& canvasImpl, Rectangle& displayRect, int startTextIndex, int textLength,
49 const TextObjectAlignment align, const TextObjectActionType action);
51 virtual result DrawPartial(_CanvasImpl& canvasImpl, int startTextIndex, int textLength, Rectangle& displayRect);
53 virtual int ForwardAnalyze(int startTextIndex, int textLength, int maxWidth, TextObjectWrapType wrap,
54 int& actualLength, int& width, int& height);
56 virtual result GetRegion(int textIndex, int textLength, int& width, int& height) const;
58 virtual int GetHeight(int textIndex) const;
60 virtual int GetTextLength(void) const;
62 virtual void SetTextLength(int length);
64 void SetIndex(int index);
66 int GetIndex(void) const;
68 result SetTextOffset(int textOffset);
70 int GetTextOffset(void) const;
72 result SetBounds(const Rectangle& rect);
74 Rectangle GetBounds(void) const;
76 void SetEndType(int endType);
78 int GetEndType(void) const;
80 void SetRegion(int width, int height);
82 TextLine* CopyN(void);
84 void SetBaseline(int baseline);
86 int GetBaseline(void) const;
88 result ResetSweepInfo(void);
90 void SetSweepComposeInfo(TextObjectSweepComposeLineInfo& textSweepComposeLineInfo);
92 TextObjectSweepComposeLineInfo GetSweepComposeInfo(void) const;
94 void SetSweepIn(int sweepIn);
96 int GetSweepIn(void) const;
98 void SetSweepOut(int sweepOut);
100 int GetSweepOut(void) const;
102 void SetKeyInputResult(int keyInputResult);
104 int GetKeyInputResult(void) const;
106 void NotifyLineChanged(bool isChanged);
108 bool isChanged(void) const;
110 void SetKeyInputOffset(int keyInputTextIndex);
112 int GetKeyInputOffset(void) const;
114 void SetKeyInputLength(int keyInputTextLength);
116 int GetKeyInputLength(void);
120 TextComposite* __pCompositeText;
129 TextObjectSweepComposeLineInfo __sweepComposeLineInfo;
133 bool __isKeyInputChanged;
134 int __keyInputTextIndex;
135 int __keyInputTextLength;
138 TextLine(const TextLine& other); // NOT IMPLMENTED
140 TextLine& operator =(const TextLine& rhs); // NOT IMPLMENTED
144 }}} // Tizen::Graphics::_Text
146 #endif // _FGRP_INTERNAL_TEXT_LINE_H_