pub unsafe extern "C" fn OH_ArkUI_CustomDialog_SetBorderWidth(
options: *mut ArkUI_CustomDialogOptions,
top: f32,
right: f32,
bottom: f32,
left: f32,
unit: ArkUI_LengthMetricUnit,
) -> i32Available on crate features
api-12 and api-19 only.Expand description
Sets the border width of the dialog box.
§Arguments
-
options- Dialog box parameters. -
top- Width of the top border. -
right- Width of the right border. -
bottom- Width of the bottom border. -
left- Width of the left border. -
unit- Unit of the width. The default value is vp.
§Returns
- Returns the error code.
Returns [
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 19