pub unsafe extern "C" fn OH_Drawing_SetTextStyleDecoration(
style: *mut OH_Drawing_TextStyle,
decoration: c_int,
)Expand description
@brief Sets the decoration for a text style. Only one decoration can be set. To add multiple decorations, use {@link OH_Drawing_AddTextStyleDecoration}.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the OH_Drawing_TextStyle object, which is obtained from {@link OH_Drawing_CreateTextStyle}. @param decoration Text decoration. For details about the available options, see {@link OH_Drawing_TextDecoration}. @since 8 @version 1.0