Add size animation in layout measure phase.
Change-Id: If7b9c8478d0c6d84a12b4e4e15f146ec2bec93e5
Merge "Remove connecting Layout Child order with Actor child order" into devel/master
Merge "Relayout again for LTR / RTL order when layout direction is changed." into devel/master
Relayout again for LTR / RTL order when layout direction is changed.
Change-Id: Idf8e74af65e29bbc6d5ade7860ac7795ce31c446
Merge "If the height is small even if scrolling is enabled, it should be elide." into devel/master
If the height is small even if scrolling is enabled, it should be elide.
If you do not want to elide, you can use the TextLabel :: Property ::
ELLIPSIS property.
ex) textLabel.SetProperty(TextLabel::Property::ELLIPSIS, false);
sample)
TextLabel textLabel;
textLabel = TextLabel::New( "The certificates can be created,
edited, removed, and set as active. The active certificates are used
when packaging your application.");
textLabel.SetSize( 400, 31 );
textLabel.SetPosition(10, 390);
textLabel.SetParentOrigin(ParentOrigin::TOP_LEFT);
textLabel.SetAnchorPoint(AnchorPoint::TOP_LEFT);
textLabel.SetProperty(TextLabel::Property::ENABLE_AUTO_SCROLL,
true);
textLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_LOOP_COUNT,
0);
textLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_GAP, 50);
textLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_SPEED, 50);
textLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_LOOP_DELAY,
1);
textLabel.SetProperty(TextLabel::Property::POINT_SIZE, 30);
textLabel.SetProperty( TextLabel::Property::TEXT_COLOR, Color::RED
);
Change-Id: I1b685226cb24aa1d1f1d0ee490db52439f49ccb3
Add focus transition and other fixes.
Change-Id: I8b45e7f16ed2212aa7b3f6a1eba2bf678ee4fa40
Set mScrollAfterUpdatePosition to true when you get the keyboard forcus.
- The cursor position is not correctly displayed when The text field is
focus out and then focus in.
[sample]
Stage stage = Dali::Stage::GetCurrent();
stage.SetBackgroundColor(Color::WHITE);
stage.KeyEventSignal().Connect(this, &HelloWorldController::OnKeyEvent);
test1 = TextField::New( );
test1.SetProperty( TextField::Property::TEXT,"Abcdefghijklmnopqrstuvw Abcdefghijklmnopqrstuvw Abcdefghijklmnopqrstuvw" );
test1.SetSize( 400, 50 );
test1.SetPosition(50, 80);
test1.SetParentOrigin(ParentOrigin::TOP_LEFT);
test1.SetAnchorPoint(AnchorPoint::TOP_LEFT);
test1.SetProperty(TextField::Property::ELLIPSIS, true);
test1.SetProperty( TextField::Property::TEXT_COLOR, Color::RED );
stage.Add( test1 );
test1.SetKeyboardFocusable(true);
void OnKeyEvent(const KeyEvent& event)
{
if(event.state == KeyEvent::Down)
{
if(event.keyPressedName == "1") {
KeyboardFocusManager::Get().SetCurrentFocusActor( test1 );
}
}
}
Change-Id: I3e83998523107f8b64cdce891fbcd17850724df8
Merge "bug fixed : Characters are truncated when HorizontalAlignment.End in Multi line text on RTL environment." into devel/master
Sorts text sequences in LTR and RTL by system language direction.
if matchSystemLanguageDirection property set true,
The text order follows the system language direction.
Change-Id: I4164975b98a2068718a4cc7c0b90afe8839b0acf
Merge "[Tizen] Sorts text sequences in LTR and RTL by system language direction." into tizen
Merge "[Tizen] Check supported by font and find fallback font for common script." into tizen
[Tizen] Sorts text sequences in LTR and RTL by system language direction.
if matchSystemLanguageDirection property set true,
The text order follows the system language direction.
Change-Id: I4164975b98a2068718a4cc7c0b90afe8839b0acf
[Tizen] fixed crash issue
If colorsBuffer and colorIndexBuffer are null, then crash occurs.
so if useDefaultColor is true, colorIndex must be 0u.
(gdb)bt full
#5 Dali::Toolkit::Text::Typesetter::CreateImageBuffer
(this=this@entry=0x9b9f78, bufferWidth=bufferWidth@entry=166,
bufferHeight=bufferHeight@entry=38,
style=style@entry=Dali::Toolkit::Text::Typesetter::STYLE_NONE,
ignoreHorizontalAlignment=ignoreHorizontalAlignment@entry=true,
pixelFormat=pixelFormat@entry=Dali::Pixel::RGBA8888,
horizontalOffset=<optimized out>, horizontalOffset@entry=0,
verticalOffset=<optimized out>, verticalOffset@entry=0,
fromGlyphIndex=<optimized out>, fromGlyphIndex@entry=0,
toGlyphIndex=<optimized out>, toGlyphIndex@entry=5) at
/usr/src/debug/dali-toolkit-1.3.41/build/tizen/dali-toolkit/../../../dali-toolkit/internal/text/rendering/text-typesetter.cpp:640
color = <optimized out>
glyphInfo = 0x90ab28
position = 0x964330
glyphIndex = 0
line = @0x83d4f0: {glyphRun = {glyphIndex = 0, numberOfGlyphs =
6}, characterRun = {characterIndex = 0, numberOfCharacters = 6}, width =
115, ascender = 28, descender = -9, extraLength = 0, alignmentOffset =
0, lineSpacing = 0, direction = false, ellipsis = false}
outlineWidth = 0
currentUnderlinePosition = <optimized out>
currentUnderlineThickness = 0
lastUnderlinedFontId = 0
underlineEnabled = false
lineExtentLeft = 2
lineExtentRight = 21
baseline = 0
underlineHeight = 0
underlineColor = @0x8e0358: {static ONE = {static ONE = <same
as static member of an already seen type>, static XAXIS = {static ONE =
<same as static member of an already seen type>, static XAXIS = <same as
static member of an already seen type>, static YAXIS = {static ONE =
<same as static member of an already seen type>, static XAXIS = <same as
static member of an already seen type>, static YAXIS = <same as static
member of an already seen type>, static ZAXIS = {static ONE = <same as
static member of an already seen type>, static XAXIS = <same as static
member of an already seen type>, static YAXIS = <same as static member
of an already seen type>, static ZAXIS = <same as static member of an
already seen type>, static ZERO = {static ONE = <same as static member
of an already seen type>, static XAXIS = <same as static member of an
already seen type>, static YAXIS = <same as static member of an already
seen type>, static ZAXIS = <same as static member of an already seen
type>, static ZERO = <same as static member of an already seen type>, {x
= 0, r = 0, s = 0}, {y = 0, g = 0, t = 0}, {z = 0, b = 0, p = 0}, {w =
0, a = 0, q = 0}}, {x = 0, r = 0, s = 0}, {y = 0, g = 0, t = 0}, {z = 1,
b = 1, p = 1}, {w = 0, a = 0, q = 0}}, static ZERO = <same as static
member of an already seen type>, {x = 0, r = 0, s = 0}, {y = 1, g = 1, t
= 1}, {z = 0, b = 0, p = 0}, {w = 0, a = 0, q = 0}}, static ZAXIS =
<same as static member of an already seen type>, static ZERO = <same as
static member of an already seen type>, {x = 1, r = 1, s = 1}, {y = 0, g
= 0, t = 0}, {z = 0, b = 0, p = 0}, {w = 0, a = 0, q = 0}}, static YAXIS
= <same as static member of an already seen type>, static ZAXIS = <same
as static member of an already seen type>, static ZERO = <same as static
member of an already seen type>, {x = 1, r = 1, s = 1}, {y = 1, g = 1, t
= 1}, {z = 1, b = 1, p = 1}, {w = 1, a = 1, q = 1}}, static XAXIS =
<same as static member of an already seen type>, static YAXIS = <same as
static member of an already seen type>, static ZAXIS = <same as static
member of an already seen type>, static ZERO = <same as static member of
an already seen type>, {x = 1, r = 1, s = 1}, {y = 1, g = 1, t = 1}, {z
= 1, b = 1, p = 1}, {w = 1, a = 1, q = 1}}
numberOfUnderlineRuns = <optimized out>
underlineRuns = {<Dali::VectorAlgorithms<true>> =
{<Dali::VectorBase> = {mData = 0x0}, <No data fields>}, <No data
fields>}
thereAreUnderlinedGlyphs = <optimized out>
maxUnderlineThickness = 0
lineIndex = 0
modelNumberOfLines = 1
modelLinesBuffer = <optimized out>
numberOfGlyphs = 6
glyphsBuffer = 0x90ab28
positionBuffer = 0x964330
colorsBuffer = 0x0
colorIndexBuffer = 0x0
useDefaultColor = true
defaultColor = @0x8e0338: {static ONE = {static ONE = <same as
static member of an already seen type>, static XAXIS = {static ONE =
<same as static member of an already seen type>, static XAXIS = <same as
static member of an already seen type>, static YAXIS = {static ONE =
<same as static member of an already seen type>, static XAXIS = <same as
static member of an already seen type>, static YAXIS = <same as static
member of an already seen type>, static ZAXIS = {static ONE = <same as
static member of an already seen type>, static XAXIS = <same as static
member of an already seen type>, static YAXIS = <same as static member
of an already seen type>, static ZAXIS = <same as static member of an
already seen type>, static ZERO = {static ONE = <same as static member
of an already seen type>, static XAXIS = <same as static member of an
already seen type>, static YAXIS = <same as static member of an already
seen type>, static ZAXIS = <same as static member of an already seen
type>, static ZERO = <same as static member of an already seen type>, {x
= 0, r = 0, s = 0}, {y = 0, g = 0, t = 0}, {z = 0, b = 0, p = 0}, {w =
0, a = 0, q = 0}}, {x = 0, r = 0, s = 0}, {y = 0, g = 0, t = 0}, {z = 1,
b = 1, p = 1}, {w = 0, a = 0, q = 0}}, static ZERO = <same as static
member of an already seen type>, {x = 0, r = 0, s = 0}, {y = 1, g = 1, t
= 1}, {z = 0, b = 0, p = 0}, {w = 0, a = 0, q = 0}}, static ZAXIS =
<same as static member of an already seen type>, static ZERO = <same as
static member of an already seen type>, {x = 1, r = 1, s = 1}, {y = 0, g
= 0, t = 0}, {z = 0, b = 0, p = 0}, {w = 0, a = 0, q = 0}}, static YAXIS
= <same as static member of an already seen type>, static ZAXIS = <same
as static member of an already seen type>, static ZERO = <same as static
member of an already seen type>, {x = 1, r = 1, s = 1}, {y = 1, g = 1, t
= 1}, {z = 1, b = 1, p = 1}, {w = 1, a = 1, q = 1}}, static XAXIS =
<same as static member of an already seen type>, static YAXIS = <same as
static member of an already seen type>, static ZAXIS = <same as static
member of an already seen type>, static ZERO = <same as static member of
an already seen type>, {x = 1, r = 1, s = 1}, {y = 1, g = 1, t = 1}, {z
= 1, b = 1, p = 1}, {w = 1, a = 1, q = 1}}
glyphData = {bitmapBuffer = {<Dali::BaseHandle> =
{mObjectHandle = {mPtr = 0x9b9f48}}, <No data fields>}, position = 0x6,
glyphBitmap = {buffer = 0x0, width = 0, height = 0, format =
Dali::Pixel::A8}, width = 166, height = 38, horizontalOffset = 0,
verticalOffset = 28}
fontClient = {<Dali::BaseHandle> = {mObjectHandle = {mPtr =
0x72bfd0}}, static DEFAULT_POINT_SIZE =
1767076981}
Change-Id: Ia68a0409afecb8c008ccade6e1ce75334bb92ab2