Skip to main content

OH_Drawing_SetTextStyleColor

Function OH_Drawing_SetTextStyleColor 

Source
pub unsafe extern "C" fn OH_Drawing_SetTextStyleColor(
    style: *mut OH_Drawing_TextStyle,
    color: u32,
)
Expand description

@brief Sets the color for a text style.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param style Pointer to the {@link OH_Drawing_TextStyle} object, which is obtained from {@link OH_Drawing_CreateTextStyle}. @param color Text color in ARGB format. For example, an input parameter of 0xFFFF0000 indicates opaque red. @since 8 @version 1.0