X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-internal%2Fdali-toolkit-test-utils%2Ftoolkit-text-utils.h;h=eb0dd4065f00b9377bc42956eafc2e9475ff7ce1;hp=2391cb14a3869f903d288c764a1490a8d3b7dcac;hb=d9d5db59d3c9b5ec6c34315da1c41b2231547828;hpb=534e542d7dcc1a1507a0e5e6845d49c06a15d326 diff --git a/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.h b/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.h index 2391cb1..eb0dd40 100644 --- a/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.h +++ b/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_UTILS_H__ -#define __DALI_TOOLKIT_TEXT_UTILS_H__ +#ifndef DALI_TOOLKIT_TEXT_UTILS_H +#define DALI_TOOLKIT_TEXT_UTILS_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -19,10 +19,9 @@ */ // INTERNAL INCLUDES -#include #include -#include #include +#include namespace Dali { @@ -39,11 +38,9 @@ namespace Text struct LayoutOptions { LayoutOptions() - : reorder( true ), - align( true ) + : align{ true } {} - bool reorder : 1; ///< Whether to reorder the bidirectional lines. bool align : 1; ///< Whether to align the lines. }; @@ -56,18 +53,18 @@ struct LayoutOptions * @param[in] fontDescriptions The fonts to be used. * @param[in] options Layout options. * @param[out] layoutSize The laid-out size. - * @param[out] logicalModel Pointer to a logical text model instance. - * @param[out] visualModel Pointer to a visual text model instance. + * @param[out] textModel Pointer to a text model instance. * @param[out] metrics Pointer to a wrapper around FontClient used to get metrics. + * @param[in] markupProcessorEnabled Enable markup processor to use markup text. */ void CreateTextModel( const std::string& text, const Size& textArea, const Vector& fontDescriptions, const LayoutOptions& options, Size& layoutSize, - LogicalModelPtr& logicalModel, - VisualModelPtr& visualModel, - MetricsPtr& metrics ); + ModelPtr& textModel, + MetricsPtr& metrics, + bool markupProcessorEnabled ); /** * @brief Configures the text @p controller similarly to the one configured by the text-label. @@ -96,4 +93,4 @@ void ConfigureTextEditor( ControllerPtr controller ); } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_UTILS_H__ +#endif // DALI_TOOLKIT_TEXT_UTILS_H