pub unsafe extern "C" fn OH_Drawing_TextStyleSetBackgroundRect(
style: *mut OH_Drawing_TextStyle,
rectStyleInfo: *const OH_Drawing_RectStyle_Info,
styleId: c_int,
)Expand description
@brief Sets a background rectangle and style ID for a text style. The style ID is valid only when the background box is a rounded rectangle.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param style Pointer to the OH_Drawing_TextStyle object, which is obtained from
{@link OH_Drawing_CreateTextStyle}.
@param rectStyleInfo Pointer to the {@link OH_Drawing_RectStyle_Info} object.
@param styleId Style ID. The style ID is valid only when the background box is a rounded rectangle. Text processing
is divided into multiple segments. Each segment has its own text style. id indicates the sequence number of
the background box in which the segment is drawn.
If the ID of each segment in a row is 0, all segments are drawn in the same background box. If a row
contains segments with IDs 0 and 1, the segment with ID 0 is drawn in a background box, and the
segment with ID 1 is drawn in another background box. Other cases can be deduced in the same way.
@since 12
@version 1.0