2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali-toolkit/internal/controls/text-view/text-view-processor-types.h>
30 namespace TextViewProcessor
37 CharacterLayoutInfo::CharacterLayoutInfo()
45 mUnderlineThickness( 0.f ),
46 mUnderlinePosition( 0.f ),
56 mIsColorGlyph( false )
60 CharacterLayoutInfo::~CharacterLayoutInfo()
64 CharacterLayoutInfo::CharacterLayoutInfo( const CharacterLayoutInfo& character )
65 : mHeight( character.mHeight ),
66 mAdvance( character.mAdvance ),
67 mBearing( character.mBearing ),
68 mPosition( character.mPosition ),
69 mOffset( character.mOffset ),
70 mSize( character.mSize ),
71 mAscender( character.mAscender ),
72 mUnderlineThickness( character.mUnderlineThickness ),
73 mUnderlinePosition( character.mUnderlinePosition ),
74 mGlyphActor( character.mGlyphActor ),
75 mStyledText( character.mStyledText ),
76 mColorAlpha( character.mColorAlpha ),
77 mGradientColor( character.mGradientColor ),
78 mStartPoint( character.mStartPoint ),
79 mEndPoint( character.mEndPoint ),
80 mIsVisible( character.mIsVisible ),
81 mSetText( character.mSetText ),
82 mSetStyle( character.mSetStyle ),
83 mIsColorGlyph( character.mIsColorGlyph )
87 CharacterLayoutInfo& CharacterLayoutInfo::operator=( const CharacterLayoutInfo& character )
89 mHeight = character.mHeight;
90 mAdvance = character.mAdvance;
91 mBearing = character.mBearing;
93 mPosition = character.mPosition;
94 mOffset = character.mOffset;
95 mSize = character.mSize;
96 mAscender = character.mAscender;
97 mUnderlineThickness = character.mUnderlineThickness;
98 mUnderlinePosition = character.mUnderlinePosition;
100 mStyledText = character.mStyledText;
101 mColorAlpha = character.mColorAlpha;
102 mGradientColor = character.mGradientColor;
103 mStartPoint = character.mStartPoint;
104 mEndPoint = character.mEndPoint;
105 mIsVisible = character.mIsVisible;
106 mSetText = character.mSetText;
107 mSetStyle = character.mSetStyle;
108 mIsColorGlyph = character.mIsColorGlyph;
110 mGlyphActor = character.mGlyphActor;
115 } //namespace TextViewProcessor
117 } //namespace Internal
119 } //namespace Toolkit