mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
按SDK变更修改接口
Signed-off-by: zoulinken <zoulinken1@huawei.com>
This commit is contained in:
parent
3930df2820
commit
949b4ea005
@ -1845,11 +1845,11 @@
|
||||
},
|
||||
{
|
||||
"first_introduced": "12",
|
||||
"name": "OH_ArkUI_SystemFontStyleEvent_GetFontSize"
|
||||
"name": "OH_ArkUI_SystemFontStyleEvent_GetFontSizeScale"
|
||||
},
|
||||
{
|
||||
"first_introduced": "12",
|
||||
"name": "OH_ArkUI_SystemFontStyleEvent_GetFontWeight"
|
||||
"name": "OH_ArkUI_SystemFontStyleEvent_GetFontWeightScale"
|
||||
},
|
||||
{
|
||||
"first_introduced": "12",
|
||||
|
@ -7447,20 +7447,21 @@ void OH_ArkUI_UnregisterSystemFontStyleChangeEvent(ArkUI_NodeHandle node);
|
||||
* @brief Retrieve the font size value for system font change events.
|
||||
*
|
||||
* @param event Indicates a pointer to the current system font change event.
|
||||
* @return Updated system font size. -1 indicates a retrieval error.
|
||||
* @return Updated system font size scaling factor. Default value: 1.0.
|
||||
* -1 indicates a retrieval error.
|
||||
* @since 12
|
||||
*/
|
||||
int32_t OH_ArkUI_SystemFontStyleEvent_GetFontSize(const ArkUI_SystemFontStyleEvent* event);
|
||||
float OH_ArkUI_SystemFontStyleEvent_GetFontSizeScale(const ArkUI_SystemFontStyleEvent* event);
|
||||
|
||||
/**
|
||||
* @brief Retrieve the font thickness values for system font change events.
|
||||
*
|
||||
* @param event Indicates a pointer to the current system font change event.
|
||||
* @return Updated system font thickness, return value type {@link ArkUI_fontWeight},
|
||||
* default value:ARKUI_FONT_WEIGHT_W100。
|
||||
* @return The updated system font thickness scaling factor. Default value: 1.0.
|
||||
* -1 indicates a retrieval error.
|
||||
* @since 12
|
||||
*/
|
||||
int32_t OH_ArkUI_SystemFontStyleEvent_GetFontWeight(const ArkUI_SystemFontStyleEvent* event);
|
||||
float OH_ArkUI_SystemFontStyleEvent_GetFontWeightScale(const ArkUI_SystemFontStyleEvent* event);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
|
@ -154,12 +154,12 @@ void OH_ArkUI_UnregisterSystemFontStyleChangeEvent(ArkUI_NodeHandle node)
|
||||
impl->getNodeModifiers()->getFrameNodeModifier()->resetSystemFontStyleChangeEvent(node->uiNodeHandle);
|
||||
}
|
||||
|
||||
int32_t OH_ArkUI_SystemFontStyleEvent_GetFontSize(const ArkUI_SystemFontStyleEvent* event)
|
||||
float OH_ArkUI_SystemFontStyleEvent_GetFontSizeScale(const ArkUI_SystemFontStyleEvent* event)
|
||||
{
|
||||
return event->fontSize;
|
||||
}
|
||||
|
||||
int32_t OH_ArkUI_SystemFontStyleEvent_GetFontWeight(const ArkUI_SystemFontStyleEvent* event)
|
||||
float OH_ArkUI_SystemFontStyleEvent_GetFontWeightScale(const ArkUI_SystemFontStyleEvent* event)
|
||||
{
|
||||
return event->fontWeight;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user