-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * Copyright (c) 2014 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
#include <iostream>
#include <stdlib.h>
ObjectRegistry registry = Stage::GetCurrent().GetObjectRegistry();
DALI_TEST_CHECK( registry );
- gNumberObjectCreated = 0;
+ gNumberObjectCreated = 0u;
registry.ObjectCreatedSignal().Connect(&TestCallback);
// Following string should create three text-actors ([Hel], [lo wo] and [rld]).
std::string text( "Hel<font size='10'>lo wo</font>rld!\n"
"\n" );
+ view.SetMarkupProcessingEnabled( true ); // Enables markup processing.
+
Stage::GetCurrent().Add( view );
view.SetText( text );
TextView textView = TextView::New();
textView.SetSnapshotModeEnabled( false ); // Disables offscreen rendering.
+ textView.SetMarkupProcessingEnabled( true ); // Enables markup processing.
Stage::GetCurrent().Add( textView );
// Avoids the frame buffer texture to throw an exception.
application.GetGlAbstraction().SetCheckFramebufferStatusResult( GL_FRAMEBUFFER_COMPLETE );
- TextView view = TextView::New( "Hel<font color='green'>lo world!</font> This <font color='green'>is</font> a sna<font color='green'>psho</font>t test." );
+ TextView view = TextView::New();
+ view.SetMarkupProcessingEnabled( true ); // Enables markup processing.
+ view.SetText( "Hel<font color='green'>lo world!</font> This <font color='green'>is</font> a sna<font color='green'>psho</font>t test." );
Stage::GetCurrent().Add( view );
tet_infoline("UtcDaliTextViewUnderlineText: ");
ToolkitTestApplication application;
- TextView textView = TextView::New( "<u><font size='10'>gg<font size='14'>gg<font size='18'>gg<font size='22'>gg</font>gg</font>gg</font>gg</font></u>" );
+ TextView textView = TextView::New();
textView.SetSnapshotModeEnabled( false );
+ textView.SetMarkupProcessingEnabled( true );
+ textView.SetText( "<u><font size='10'>gg<font size='14'>gg<font size='18'>gg<font size='22'>gg</font>gg</font>gg</font>gg</font></u>" );
textView.SetSize( 150.f, 100.f );