X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=blobdiff_plain;f=dali%2Fdevel-api%2Ftext-abstraction%2Ftext-renderer-layout-helper.h;h=a5029670de6e45325ea38ea9550274567c1b5394;hp=95921a1de290efb8e2947becbab4af0c78595429;hb=20a7c6fb7964e0f4a2695a37615cebcfd05c34ea;hpb=b7c45bdf0893f8797006ff5002837ebd39106d02 diff --git a/dali/devel-api/text-abstraction/text-renderer-layout-helper.h b/dali/devel-api/text-abstraction/text-renderer-layout-helper.h index 95921a1..a502967 100755 --- a/dali/devel-api/text-abstraction/text-renderer-layout-helper.h +++ b/dali/devel-api/text-abstraction/text-renderer-layout-helper.h @@ -39,34 +39,27 @@ struct DALI_ADAPTOR_API CircularTextParameters radius{ 0.0 }, invRadius{ 0.0 }, beginAngle{ 0.0 }, - isClockwise{ true } + isClockwise{ true }, + synthesizeItalic{ false } {} - double centerX; ///< The 'x' center of the circular path. - double centerY; ///< The 'y' center of the circular path. - double radius; ///< The radius in pixels. - double invRadius; ///< 1.0 / radius. - double beginAngle; ///< The angle in radians where the circular text begins. - bool isClockwise:1; ///< Whether the circular text layout is clockwise. + double centerX; ///< The 'x' center of the circular path. + double centerY; ///< The 'y' center of the circular path. + double radius; ///< The radius in pixels. + double invRadius; ///< 1.0 / radius. + double beginAngle; ///< The angle in radians where the circular text begins. + bool isClockwise:1; ///< Whether the circular text layout is clockwise. + bool synthesizeItalic:1; ///< Whether to synthesize italic. }; /** - * @brief Transforms a vertex to wrap a clockwise circular path. + * @brief Transforms a vertex to wrap a circular path. * * @param[in] parameters The parameters of the circular path. * @param[in,out] x The 'x' coordinate of the vertex. * @param[in,out] y The 'y' coordinate of the vertex. */ -DALI_ADAPTOR_API void TransformToArcClockwise( const CircularTextParameters& parameters, double& x, double& y ); - -/** - * @brief Transforms a vertex to wrap an anti clockwise circular path. - * - * @param[in] parameters The parameters of the circular path. - * @param[in,out] x The 'x' coordinate of the vertex. - * @param[in,out] y The 'y' coordinate of the vertex. - */ -DALI_ADAPTOR_API void TransformToArcAntiClockwise( const CircularTextParameters& parameters, double& x, double& y ); +DALI_ADAPTOR_API void TransformToArc( const CircularTextParameters& parameters, double& x, double& y ); } // namespace TextAbstraction