/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | node_node_relative_container.cpp | 26 guidelinePtr->styles.resize(size); in OH_ArkUI_GuidelineOption_Create() 40 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_SetId() 43 guideline->styles[index].id = value; in OH_ArkUI_GuidelineOption_SetId() 48 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_SetDirection() 51 guideline->styles[index].direction = value; in OH_ArkUI_GuidelineOption_SetDirection() 56 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_SetPositionStart() 59 guideline->styles[index].hasStart = true; in OH_ArkUI_GuidelineOption_SetPositionStart() 60 guideline->styles[index].start = value; in OH_ArkUI_GuidelineOption_SetPositionStart() 65 if (guideline == nullptr || index < 0 || index >= static_cast<int32_t>(guideline->styles.size())) { in OH_ArkUI_GuidelineOption_SetPositionEnd() 68 guideline->styles[inde in OH_ArkUI_GuidelineOption_SetPositionEnd() [all...] |
H A D | native_node_extented.cpp | 543 while (!storage->styles.empty()) { in OH_ArkUI_StyledString_Destroy() 544 auto style = reinterpret_cast<OH_Drawing_TextStyle*>(storage->styles.top()); in OH_ArkUI_StyledString_Destroy() 546 storage->styles.pop(); in OH_ArkUI_StyledString_Destroy() 548 storage->styles = std::stack<void*>(); in OH_ArkUI_StyledString_Destroy() 569 storage->styles.push(textStyle); in OH_ArkUI_StyledString_PushTextStyle() 578 if (storage->styles.empty()) { in OH_ArkUI_StyledString_AddText() 581 spanItem->textStyle = storage->styles.top(); in OH_ArkUI_StyledString_AddText() 589 if (storage->styles.empty()) { in OH_ArkUI_StyledString_PopTextStyle() 592 storage->styles.pop(); in OH_ArkUI_StyledString_PopTextStyle()
|
H A D | styled_string.h | 37 std::stack<void*> styles; member
|
H A D | node_model.h | 69 std::vector<ArkUI_GuidelineStyle> styles; member 79 std::vector<ArkUI_BarrierStyle> styles; member
|
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_input.cpp | 310 const std::map<std::string, std::string>& styles, const Border& boxBorder, DOMInput& input) { in UpdateSpecializedComponentStyle() 312 boxComponent, AceType::DynamicCast<ButtonComponent>(component), styles, input); in UpdateSpecializedComponentStyle() 316 const std::map<std::string, std::string>& styles, const Border& boxBorder, DOMInput& input) { in UpdateSpecializedComponentStyle() 317 input.HandlePadding(component, boxComponent, styles); in UpdateSpecializedComponentStyle() 321 const std::map<std::string, std::string>& styles, const Border& boxBorder, DOMInput& input) { in UpdateSpecializedComponentStyle() 323 boxComponent, AceType::DynamicCast<TextFieldComponent>(component), styles, boxBorder, input); in UpdateSpecializedComponentStyle() 327 const std::map<std::string, std::string>& styles, const Border& boxBorder, DOMInput& input) { in UpdateSpecializedComponentStyle() 329 boxComponent, AceType::DynamicCast<TextFieldComponent>(component), styles, boxBorder, input); in UpdateSpecializedComponentStyle() 333 const std::map<std::string, std::string>& styles, const Border& boxBorder, DOMInput& input) { in UpdateSpecializedComponentStyle() 335 boxComponent, AceType::DynamicCast<TextFieldComponent>(component), styles, boxBorde in UpdateSpecializedComponentStyle() 584 HandlePadding(RefPtr<Component> component, RefPtr<BoxComponent> boxComponent, const std::map<std::string, std::string>& styles) HandlePadding() argument [all...] |
H A D | dom_proxy.h | 43 void SetStyle(const std::vector<std::pair<std::string, std::string>>& styles) override {}
|
H A D | dom_input.h | 98 const std::map<std::string, std::string>& styles);
|
/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_style.cpp | 36 auto styles = SplitString(newStyle.substr(1), "}."); in ParseCssStyle() local 37 for (auto& style : styles) { in ParseCssStyle()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_style.cpp | 36 auto styles = SplitString(newStyle.substr(1), "}."); in ParseCssStyle() local 37 for (auto& style : styles) { in ParseCssStyle()
|
/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/ |
H A D | js_card_parser.h | 68 std::vector<std::pair<std::string, std::string>>& styles) in ParseStyles() 70 ParseStyles(rootJson, nodeId, styles, styleJson_); in ParseStyles() 133 const std::unique_ptr<JsonValue>& rootJson, std::vector<std::pair<std::string, std::string>>& styles); 135 std::vector<std::pair<std::string, std::string>>& styles); 136 void SelectMediaQueryStyle(const std::string& styleClass, std::vector<std::pair<std::string, std::string>>& styles); 158 std::vector<std::pair<std::string, std::string>>& styles, const std::unique_ptr<JsonValue>& styleJson); 67 ParseStyles(const std::unique_ptr<JsonValue>& rootJson, int32_t nodeId, std::vector<std::pair<std::string, std::string>>& styles) ParseStyles() argument
|
H A D | js_card_parser.cpp | 882 std::vector<std::pair<std::string, std::string>>& styles, const std::unique_ptr<JsonValue>& styleJson) in ParseStyles() 894 SelectStyle(styleClass, styleJson, styles); in ParseStyles() 895 SelectMediaQueryStyle(styleClass, styles); in ParseStyles() 907 SelectStyle(idStyle, styleJson, styles); in ParseStyles() 908 SelectMediaQueryStyle(idStyle, styles); in ParseStyles() 912 ParseInlineStyles(rootJson, styles); in ParseStyles() 916 const std::unique_ptr<JsonValue>& rootJson, std::vector<std::pair<std::string, std::string>>& styles) in ParseInlineStyles() 933 styles.emplace_back(std::make_pair(key, value)); in ParseInlineStyles() 939 std::vector<std::pair<std::string, std::string>>& styles) in SelectStyle() 953 styles in SelectStyle() 881 ParseStyles(const std::unique_ptr<JsonValue>& rootJson, int32_t nodeId, std::vector<std::pair<std::string, std::string>>& styles, const std::unique_ptr<JsonValue>& styleJson) ParseStyles() argument 915 ParseInlineStyles( const std::unique_ptr<JsonValue>& rootJson, std::vector<std::pair<std::string, std::string>>& styles) ParseInlineStyles() argument 938 SelectStyle(const std::string& className, const std::unique_ptr<JsonValue>& styleClass, std::vector<std::pair<std::string, std::string>>& styles) SelectStyle() argument 959 SelectMediaQueryStyle( const std::string& styleClass, std::vector<std::pair<std::string, std::string>>& styles) SelectMediaQueryStyle() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/input/ |
H A D | dom_radio_util.h | 40 const RefPtr<RadioComponent<std::string>>& component, const std::map<std::string, std::string>& styles);
|
H A D | dom_button_util.h | 43 const std::map<std::string, std::string>& styles, DOMInput& node);
|
H A D | dom_radio_util.cpp | 122 const RefPtr<RadioComponent<std::string>>& component, const std::map<std::string, std::string>& styles) in SetChildStyle() 129 for (const auto& style : styles) { in SetChildStyle() 121 SetChildStyle(const RefPtr<BoxComponent>& boxComponent, const RefPtr<RadioComponent<std::string>>& component, const std::map<std::string, std::string>& styles) SetChildStyle() argument
|
H A D | dom_textfield_util.h | 41 const std::map<std::string, std::string>& styles, const Border& boxBorder, const DOMInput& node);
|
H A D | dom_button_util.cpp | 40 // set text styles in InitDefaultValue() 135 const std::map<std::string, std::string>& styles, DOMInput& node) in SetChildStyle() 207 for (const auto& [key, value] : styles) { in SetChildStyle() 134 SetChildStyle(const RefPtr<BoxComponent>& boxComponent, const RefPtr<ButtonComponent>& component, const std::map<std::string, std::string>& styles, DOMInput& node) SetChildStyle() argument
|
H A D | dom_textfield_util.cpp | 206 const RefPtr<TextFieldComponent>& component, const std::map<std::string, std::string>& styles, in SetChildStyle() 315 for (const auto& [key, value] : styles) { in SetChildStyle() 205 SetChildStyle(const RefPtr<BoxComponent>& boxComponent, const RefPtr<TextFieldComponent>& component, const std::map<std::string, std::string>& styles, const Border& boxBorder, const DOMInput& node) SetChildStyle() argument
|
/foundation/arkui/ace_engine/adapter/ohos/capability/html/ |
H A D | html_to_span.cpp | 164 Styles styles; in ParseStyleAttr() local 176 styles.emplace_back(key, value); in ParseStyleAttr() 180 return styles; in ParseStyleAttr() 818 auto styles = ToTextSpanStyle(curNode); in ToParagraphSpan() local 819 for (auto [key, value] : styles) { in ToParagraphSpan() 872 std::map<std::string, StyleValue> styles; in AddStyleSpan() local 874 InitFont("font-weight", "bold", "font", styles); in AddStyleSpan() 877 for (auto [key, value] : styles) { in AddStyleSpan() 891 auto styles = ToTextSpanStyle(curNode); in ToTextSpan() local 892 for (auto [key, value] : styles) { in ToTextSpan() 905 ToImageOptions(const std::map<std::string, std::string>& styles, ImageSpanOptions& option) ToImageOptions() argument [all...] |
H A D | html_to_span.h | 154 void ToImageOptions(const std::map<std::string, std::string>& styles, ImageSpanOptions& option);
|
/foundation/arkui/ace_engine/frameworks/core/components/option/ |
H A D | option_component.h | 330 void SetStyle(const std::vector<std::pair<std::string, std::string>>& styles) in SetStyle() argument 332 styles_ = styles; in SetStyle()
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/ |
H A D | js_command.h | 60 void SetStyles(std::vector<std::pair<std::string, std::string>>&& styles) in SetStyles() argument 62 styles_ = std::move(styles); in SetStyles() 298 // JS command, which used to update styles of element in DOM tree.
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_text_area_bridge.cpp | 1666 int32_t styles[] = { static_cast<int32_t>(BorderStyle::SOLID) }; in SetBorderStyle() local 1667 GetArkUINodeModifiers()->getTextAreaModifier()->setTextAreaBorderStyle(nativeNode, styles, in SetBorderStyle() 1668 (sizeof(styles) / sizeof(styles[NUM_0]))); in SetBorderStyle() 1672 int32_t styles[] = { styleArg->Int32Value(vm) }; in SetBorderStyle() local 1673 GetArkUINodeModifiers()->getTextAreaModifier()->setTextAreaBorderStyle(nativeNode, styles, in SetBorderStyle() 1674 (sizeof(styles) / sizeof(styles[NUM_0]))); in SetBorderStyle() 1677 int32_t styles[] = { -1, -1, -1, -1 }; in SetBorderStyle() local 1679 styles[NUM_ in SetBorderStyle() [all...] |
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_text_area_modifier.cpp | 1381 void SetTextAreaBorderStyle(ArkUINodeHandle node, const ArkUI_Int32* styles, ArkUI_Int32 length) in SetTextAreaBorderStyle() argument 1387 borderStyle.SetBorderStyle(ConvertBorderStyle(styles[NUM_0])); in SetTextAreaBorderStyle() 1393 borderStyles.styleLeft = ConvertBorderStyle(styles[NUM_3]); in SetTextAreaBorderStyle() 1394 borderStyles.styleRight = ConvertBorderStyle(styles[NUM_1]); in SetTextAreaBorderStyle() 1395 borderStyles.styleTop = ConvertBorderStyle(styles[NUM_0]); in SetTextAreaBorderStyle() 1396 borderStyles.styleBottom = ConvertBorderStyle(styles[NUM_2]); in SetTextAreaBorderStyle()
|
/foundation/arkui/ace_engine/frameworks/core/accessibility/ |
H A D | accessibility_node.cpp | 255 void AccessibilityNode::SetStyle(const std::vector<std::pair<std::string, std::string>>& styles) in SetStyle() argument 257 MergeItems(styles, styles_); in SetStyle()
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_engine.cpp | 437 std::vector<std::pair<std::string, std::string>> styles; in SetDomStyle() local 448 styles.emplace_back(keyStr, valStr); in SetDomStyle() 454 styles.emplace_back(keyStr, familyStyle); in SetDomStyle() 478 for (int32_t i = 0; i < static_cast<int32_t>(styles.size()); i++) { in SetDomStyle() 479 std::string key = styles[i].first; in SetDomStyle() 480 std::string value = styles[i].second; in SetDomStyle() 489 for (int32_t i = 0; i < static_cast<int32_t>(styles.size()); i++) { in SetDomStyle() 490 std::string key = styles[i].first; in SetDomStyle() 491 std::string value = styles[i].second; in SetDomStyle() 501 command.SetStyles(std::move(styles)); in SetDomStyle() [all...] |