Home
last modified time | relevance | path

Searched refs:ConvertIntToEnum (Results 1 – 11 of 11) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components/test/json/
Dwrap_creator.cpp55 …alignment = ConvertIntToEnum(componentJson.GetValue(ALIGNMENT)->GetInt(), WRAP_ALIGNMENT, WrapAlig… in CreateFromJson()
58 crossAlignment = ConvertIntToEnum( in CreateFromJson()
62 mainAlignment = ConvertIntToEnum( in CreateFromJson()
67ConvertIntToEnum(componentJson.GetValue(DIRECTION)->GetInt(), WRAP_DIRECTION, WrapDirection::HORIZ… in CreateFromJson()
Dbackground_image_creator.cpp53ConvertIntToEnum(json.GetValue(IMAGE_REPEAT)->GetInt(), IMAGE_REPEATS, ImageRepeat::NO_REPEAT)); in CreateFromJson()
70ConvertIntToEnum(json.GetValue(IMAGE_SIZE_TYPE)->GetInt(), IMAGE_SIZE_TYPES, BackgroundImageSizeTy… in SetImageSizeFromJson()
77 BackgroundImagePositionType typeX = ConvertIntToEnum( in SetImagePositionFromJson()
80 BackgroundImagePositionType typeY = ConvertIntToEnum( in SetImagePositionFromJson()
Dflex_creator.cpp44ConvertIntToEnum(componentJson.GetValue(MAIN_AXIS_ALIGN)->GetInt(), FLEX_ALIGNS, FlexAlign::FLEX_S… in CreateFlexFromJson()
48ConvertIntToEnum(componentJson.GetValue(CROSS_AXIS_ALIGN)->GetInt(), FLEX_ALIGNS, FlexAlign::FLEX_… in CreateFlexFromJson()
58ConvertIntToEnum(componentJson.GetValue(MAIN_AXIS_SIZE)->GetInt(), MAIN_AXIS_SIZES, MainAxisSize::… in CreateFlexFromJson()
63ConvertIntToEnum(componentJson.GetValue(TEXT_BASE_LINE)->GetInt(), BASELINES, TextBaseline::ALPHAB… in CreateFlexFromJson()
Dtext_creator.cpp49ConvertIntToEnum(componentJson.GetValue(TEXT_ALIGN)->GetInt(), TEXT_ALIGN_METHODS, TextAlign::STAR… in CreateFromJson()
52 textStyle.SetTextOverflow(ConvertIntToEnum( in CreateFromJson()
56 text->SetTextDirection(ConvertIntToEnum( in CreateFromJson()
Dstack_creator.cpp49 …stackFit = ConvertIntToEnum(componentJson.GetValue(STACK_FIT)->GetInt(), STACK_FITS, StackFit::KEE… in CreateFromJson()
53 …overflow = ConvertIntToEnum(componentJson.GetValue(STACK_OVERFLOW)->GetInt(), OVERFLOWS, Overflow:… in CreateFromJson()
57 mainStackSize = ConvertIntToEnum( in CreateFromJson()
Dgradient_creator.cpp50 gradient.SetDirection(ConvertIntToEnum( in CreateFromJson()
102 dimensionUnit = ConvertIntToEnum( in CreateDimensionFromJson()
Dtext_style_creator.cpp91ConvertIntToEnum(json.GetValue(TEXT_FONT_WEIGHT)->GetInt(), FONT_WEIGHTS, FontWeight::NORMAL)); in CreateFromJson()
95ConvertIntToEnum(json.GetValue(TEXT_FONT_STYLE)->GetInt(), FONT_STYLES, FontStyle::NORMAL)); in CreateFromJson()
99ConvertIntToEnum(json.GetValue(TEXT_BASE_LINE)->GetInt(), BASE_LINES, TextBaseline::ALPHABETIC)); in CreateFromJson()
111ConvertIntToEnum(json.GetValue(TEXT_DECORATION)->GetInt(), TEXT_DECORATIONS, TextDecoration::NONE)… in CreateFromJson()
Dimage_creator.cpp54ConvertIntToEnum(componentJson.GetValue(IMAGE_REPEAT)->GetInt(), IMAGE_REPEATS, ImageRepeat::NO_RE… in CreateFromJson()
Dbutton_creator.cpp52 …button->SetType(ConvertIntToEnum(componentJson.GetValue(BUTTON_TYPE)->GetInt(), TYPES, ButtonType:… in CreateFromJson()
Dselect_creator.cpp266 …option->SetFontWeight(ConvertIntToEnum(static_cast<int32_t>(attrValue), FONT_WEIGHTS, FontWeight::… in CreateOptionCommonAttribute()
273ConvertIntToEnum(static_cast<int32_t>(attrValue), TEXT_DECORATIONS, TextDecoration::NONE)); in CreateOptionCommonAttribute()
/foundation/arkui/ace_engine/frameworks/base/utils/
Dutils.h110 T ConvertIntToEnum(int32_t index, const T (&values)[N], T defaultValue) in ConvertIntToEnum() function