diff --git a/graphic/graphic_2d/native_drawing/drawing_path_effect.h b/graphic/graphic_2d/native_drawing/drawing_path_effect.h index 78c5d8f09653f0f3d2bcb874bc0fcc1d70359e58..26b6f791949a8e220e58a7229465e48beb42f303 100644 --- a/graphic/graphic_2d/native_drawing/drawing_path_effect.h +++ b/graphic/graphic_2d/native_drawing/drawing_path_effect.h @@ -47,19 +47,19 @@ extern "C" { #endif /** - * @brief Enumerate path effect types. + * @brief Enumerate path dash style. * * @since 16 * @version 1.0 */ typedef enum { - /** Indicates that the path effect is a translation effect. */ - PATH_EFFECT_TRANSLATE, - /** Indicates that the path effect is a rotation effect. */ - PATH_EFFECT_ROTATE, - /** Indicates that the path effect is a morph effect. */ - PATH_EFFECT_MORPH, -} OH_Drawing_PathEffectType; + /** Indicates translation effect. */ + OH_DRAWING_PATH_DASH_STYLE_TRANSLATE, + /** Indicates rotation effect. */ + OH_DRAWING_PATH_DASH_STYLE_ROTATE, + /** Indicates morph effect. */ + OH_DRAWING_PATH_DASH_STYLE_MORPH, +} OH_Drawing_PathDashStyle; /** * @brief Creates an OH_Drawing_PathEffect object that is a combination of paths, @@ -121,7 +121,7 @@ OH_Drawing_PathEffect* OH_Drawing_CreateDiscretePathEffect(float segLength, floa * @param path Indicates the pointer to an OH_Drawing_Path object. * @param advance Indicates the distance between the dashed segments. * @param phase Indicates the offset into intervals array. - * @param type Indicates the type of the path effect. + * @param type Indicates the type of the path dash effect. * @return Returns the pointer to the OH_Drawing_PathEffect object created. * If nullptr is returned, the creation fails. * The possible cause of the failure is advance and phase are zero or less. @@ -129,7 +129,7 @@ OH_Drawing_PathEffect* OH_Drawing_CreateDiscretePathEffect(float segLength, floa * @version 1.0 */ OH_Drawing_PathEffect* OH_Drawing_CreatePathDashEffect(const OH_Drawing_Path* path, float advance, float phase, - OH_Drawing_PathEffectType type); + OH_Drawing_PathDashStyle type); /** * @brief Creates an OH_Drawing_PathEffect object by overlaying two path effects.