X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Ftext%2Ftext-enumerations.h;h=d9f23be4108e6b11ad60899d153d428c28c0d9e2;hp=9d9dff26a6e197021c2e2668eb7ccf8ebb9a9cc8;hb=f2a6a134e4b939815b40f417f5aca61a6fccf92e;hpb=eac074bfe3a3c144f55583135515d2c8d16eb479 diff --git a/dali-toolkit/public-api/text/text-enumerations.h b/dali-toolkit/public-api/text/text-enumerations.h index 9d9dff2..d9f23be 100644 --- a/dali-toolkit/public-api/text/text-enumerations.h +++ b/dali-toolkit/public-api/text/text-enumerations.h @@ -33,51 +33,96 @@ namespace Text { /** - * @brief The available Horizontal alignments for text + * @brief The available Horizontal alignments for text. + * * @SINCE_1_2.60 */ namespace HorizontalAlignment { - /** - * @brief Enumerations for Horizontal alignment - * - * @SINCE_1_2.60 - */ - enum Type - { - BEGIN, ///< @SINCE_1_2.60 - CENTER, ///< @SINCE_1_2.60 - END ///< @SINCE_1_2.60 - }; -} /** - * @brief The available Vertical alignments for text + * @brief Enumerations for Horizontal alignment. + * + * @SINCE_1_2.60 + */ +enum Type +{ + BEGIN, ///< @SINCE_1_2.60 + CENTER, ///< @SINCE_1_2.60 + END ///< @SINCE_1_2.60 +}; + +} // namespace HorizontalAlignment + +/** + * @brief The available Vertical alignments for text. + * * @SINCE_1_2.60 */ namespace VerticalAlignment { - /** - * @brief Enumerations for Vertical alignment - * - * @SINCE_1_2.60 - */ - enum Type - { - TOP, ///< @SINCE_1_2.60 - CENTER, ///< @SINCE_1_2.60 - BOTTOM ///< @SINCE_1_2.60 - }; -} - -} // Text + +/** + * @brief Enumerations for Vertical alignment. + * + * @SINCE_1_2.60 + */ +enum Type +{ + TOP, ///< @SINCE_1_2.60 + CENTER, ///< @SINCE_1_2.60 + BOTTOM ///< @SINCE_1_2.60 +}; + +} // namespace VerticalAlignment + +/** + * @brief Contains modes which specify how lines are wrapped. + * + * If the layout width is too short to show the full text, then a wrapping mode can be specified. + * + * LineWrap::WORD mode will move an entire word to the next line: + * @code + * +---------+ + * |HELLO | + * |WORLD | + * +---------+ + * @endcode + * + * LineWrap::CHARACTER mode will move character by character to the next line: + * @code + * +---------+ + * |HELLO WOR| + * |LD | + * +---------+ + * @endcode + * + * @SINCE_1_2.60 + */ +namespace LineWrap +{ + +/** + * @brief Enumerations specifying how a line is wrapped. + * @SINCE_1_2.60 + * @see LineWrap + */ +enum Mode +{ + WORD, ///< @SINCE_1_2.60 + CHARACTER ///< @SINCE_1_2.60 +}; + +} // namespace LineWrap + +} // namespace Text /** * @} */ -} // Toolkit +} // namespace Toolkit -} // Dali +} // namespace Dali #endif //DALI_TOOLKIT_TEXT_ENUMERATIONS_H