Searched refs:ConvertIntToEnum (Results 1 – 11 of 11) sorted by relevance
/foundation/arkui/ace_engine/frameworks/core/components/test/json/ |
D | wrap_creator.cpp | 55 …alignment = ConvertIntToEnum(componentJson.GetValue(ALIGNMENT)->GetInt(), WRAP_ALIGNMENT, WrapAlig… in CreateFromJson() 58 crossAlignment = ConvertIntToEnum( in CreateFromJson() 62 mainAlignment = ConvertIntToEnum( in CreateFromJson() 67 …ConvertIntToEnum(componentJson.GetValue(DIRECTION)->GetInt(), WRAP_DIRECTION, WrapDirection::HORIZ… in CreateFromJson()
|
D | background_image_creator.cpp | 53 … ConvertIntToEnum(json.GetValue(IMAGE_REPEAT)->GetInt(), IMAGE_REPEATS, ImageRepeat::NO_REPEAT)); in CreateFromJson() 70 …ConvertIntToEnum(json.GetValue(IMAGE_SIZE_TYPE)->GetInt(), IMAGE_SIZE_TYPES, BackgroundImageSizeTy… in SetImageSizeFromJson() 77 BackgroundImagePositionType typeX = ConvertIntToEnum( in SetImagePositionFromJson() 80 BackgroundImagePositionType typeY = ConvertIntToEnum( in SetImagePositionFromJson()
|
D | flex_creator.cpp | 44 …ConvertIntToEnum(componentJson.GetValue(MAIN_AXIS_ALIGN)->GetInt(), FLEX_ALIGNS, FlexAlign::FLEX_S… in CreateFlexFromJson() 48 …ConvertIntToEnum(componentJson.GetValue(CROSS_AXIS_ALIGN)->GetInt(), FLEX_ALIGNS, FlexAlign::FLEX_… in CreateFlexFromJson() 58 …ConvertIntToEnum(componentJson.GetValue(MAIN_AXIS_SIZE)->GetInt(), MAIN_AXIS_SIZES, MainAxisSize::… in CreateFlexFromJson() 63 …ConvertIntToEnum(componentJson.GetValue(TEXT_BASE_LINE)->GetInt(), BASELINES, TextBaseline::ALPHAB… in CreateFlexFromJson()
|
D | text_creator.cpp | 49 …ConvertIntToEnum(componentJson.GetValue(TEXT_ALIGN)->GetInt(), TEXT_ALIGN_METHODS, TextAlign::STAR… in CreateFromJson() 52 textStyle.SetTextOverflow(ConvertIntToEnum( in CreateFromJson() 56 text->SetTextDirection(ConvertIntToEnum( in CreateFromJson()
|
D | stack_creator.cpp | 49 …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()
|
D | gradient_creator.cpp | 50 gradient.SetDirection(ConvertIntToEnum( in CreateFromJson() 102 dimensionUnit = ConvertIntToEnum( in CreateDimensionFromJson()
|
D | text_style_creator.cpp | 91 … ConvertIntToEnum(json.GetValue(TEXT_FONT_WEIGHT)->GetInt(), FONT_WEIGHTS, FontWeight::NORMAL)); in CreateFromJson() 95 … ConvertIntToEnum(json.GetValue(TEXT_FONT_STYLE)->GetInt(), FONT_STYLES, FontStyle::NORMAL)); in CreateFromJson() 99 … ConvertIntToEnum(json.GetValue(TEXT_BASE_LINE)->GetInt(), BASE_LINES, TextBaseline::ALPHABETIC)); in CreateFromJson() 111 …ConvertIntToEnum(json.GetValue(TEXT_DECORATION)->GetInt(), TEXT_DECORATIONS, TextDecoration::NONE)… in CreateFromJson()
|
D | image_creator.cpp | 54 …ConvertIntToEnum(componentJson.GetValue(IMAGE_REPEAT)->GetInt(), IMAGE_REPEATS, ImageRepeat::NO_RE… in CreateFromJson()
|
D | button_creator.cpp | 52 …button->SetType(ConvertIntToEnum(componentJson.GetValue(BUTTON_TYPE)->GetInt(), TYPES, ButtonType:… in CreateFromJson()
|
D | select_creator.cpp | 266 …option->SetFontWeight(ConvertIntToEnum(static_cast<int32_t>(attrValue), FONT_WEIGHTS, FontWeight::… in CreateOptionCommonAttribute() 273 … ConvertIntToEnum(static_cast<int32_t>(attrValue), TEXT_DECORATIONS, TextDecoration::NONE)); in CreateOptionCommonAttribute()
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
D | utils.h | 110 T ConvertIntToEnum(int32_t index, const T (&values)[N], T defaultValue) in ConvertIntToEnum() function
|