1 #ifndef _EFL_UI_TEXTPATH_EO_LEGACY_H_ 2 #define _EFL_UI_TEXTPATH_EO_LEGACY_H_ 3 4 #ifndef _EFL_UI_TEXTPATH_EO_CLASS_TYPE 5 #define _EFL_UI_TEXTPATH_EO_CLASS_TYPE 6 7 typedef Eo Efl_Ui_Textpath; 8 9 #endif 10 11 #ifndef _EFL_UI_TEXTPATH_EO_TYPES 12 #define _EFL_UI_TEXTPATH_EO_TYPES 13 14 /** Textpath direction 15 * 16 * @ingroup Elm_Textpath_Group 17 */ 18 typedef enum 19 { 20 EFL_UI_TEXTPATH_DIRECTION_CW = 0, /**< Clockwise */ 21 EFL_UI_TEXTPATH_DIRECTION_CCW, /**< Counter-clockwise */ 22 EFL_UI_TEXTPATH_DIRECTION_CW_CENTER, /**< Clockwise, middle of text will be at start angle @since 1.23 */ 23 EFL_UI_TEXTPATH_DIRECTION_CCW_CENTER /**< Counter-clockwise, middle of text will be at start angle @since 1.23 */ 24 } Efl_Ui_Textpath_Direction; 25 26 27 #endif 28 29 /** 30 * @brief Set a circle with given radius, and start angle. 31 * The circle center will be decided by the object center position. 32 * 33 * @param[in] obj The object. 34 * @param[in] radius Radius of the circle 35 * @param[in] start_angle Start angle of the circle 36 * @param[in] direction Textpath direction 37 * 38 * @since 1.23 39 * @ingroup Elm_Textpath_Group 40 */ 41 EAPI void elm_textpath_circular_set(Efl_Ui_Textpath *obj, double radius, double start_angle, Efl_Ui_Textpath_Direction direction); 42 43 /** 44 * @brief The number of slices. The larger the number of slice_num is, The 45 * better the text follows the path. 46 * 47 * @param[in] obj The object. 48 * @param[in] slice_no Number of slices 49 * 50 * @ingroup Elm_Textpath_Group 51 */ 52 EAPI void elm_textpath_slice_number_set(Efl_Ui_Textpath *obj, int slice_no); 53 54 /** 55 * @brief The number of slices. The larger the number of slice_num is, The 56 * better the text follows the path. 57 * 58 * @param[in] obj The object. 59 * 60 * @return Number of slices 61 * 62 * @ingroup Elm_Textpath_Group 63 */ 64 EAPI int elm_textpath_slice_number_get(const Efl_Ui_Textpath *obj); 65 66 /** 67 * @brief Control the ellipsis behavior of the textpath. 68 * 69 * @param[in] obj The object. 70 * @param[in] ellipsis To ellipsis text or not 71 * 72 * @ingroup Elm_Textpath_Group 73 */ 74 EAPI void elm_textpath_ellipsis_set(Efl_Ui_Textpath *obj, Eina_Bool ellipsis); 75 76 /** 77 * @brief Control the ellipsis behavior of the textpath. 78 * 79 * @param[in] obj The object. 80 * 81 * @return To ellipsis text or not 82 * 83 * @ingroup Elm_Textpath_Group 84 */ 85 EAPI Eina_Bool elm_textpath_ellipsis_get(const Efl_Ui_Textpath *obj); 86 87 #endif 88