Home
last modified time | relevance | path

Searched refs:StringToBool (Results 1 - 25 of 56) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_option.cpp64 selectOptionComponent_->SetSelected(StringToBool(attr.second)); in SetSpecializedAttr()
103 selectOptionComponent_->SetDisabled(StringToBool(attr.second)); in SetSpecializedAttr()
108 selectOptionComponent_->SetVisible(StringToBool(attr.second)); in SetSpecializedAttr()
113 selectOptionComponent_->SetFocusable(StringToBool(attr.second)); in SetSpecializedAttr()
151 selectOptionComponent_->SetAllowScale(StringToBool(style.second)); in SetSpecializedStyle()
H A Ddom_image.cpp65 imageChild_->SetSyncMode(StringToBool(attr.second)); in SetSpecializedAttr()
86 [](const std::string& val, DOMImage& image) { image.imageChild_->SetFitMaxSize(!StringToBool(val)); } }, in SetSpecializedStyle()
89 image.imageChild_->SetMatchTextDirection(StringToBool(val)); in SetSpecializedStyle()
H A Ddom_list_item.cpp47 isCard_ = StringToBool(attr.second); in SetSpecializedAttr()
50 isCardBlur_ = StringToBool(attr.second); in SetSpecializedAttr()
53 sticky_ = StringToBool(attr.second); in SetSpecializedAttr()
66 isTitle_ = StringToBool(attr.second); in SetSpecializedAttr()
69 clickEffect_ = StringToBool(attr.second); in SetSpecializedAttr()
77 primary_ = StringToBool(attr.second); in SetSpecializedAttr()
80 isActive_ = StringToBool(attr.second); in SetSpecializedAttr()
H A Ddom_textarea.cpp99 DOMTextarea& textarea) { textarea.textAreaChild_->SetAutoFocus(StringToBool(val)); } }, in SetSpecializedAttr()
103 DOMTextarea& textarea) { textarea.textAreaChild_->SetEnabled(!StringToBool(val)); } }, in SetSpecializedAttr()
122 textarea.textAreaChild_->SetObscure(StringToBool(val)); in SetSpecializedAttr()
130 textarea.textAreaChild_->SetExtend(StringToBool(val)); in SetSpecializedAttr()
134 textarea.textAreaChild_->SetShowCounter(StringToBool(val)); in SetSpecializedAttr()
147 textarea.textAreaChild_->SetSoftKeyboardEnabled(StringToBool(val)); in SetSpecializedAttr()
192 DOMTextarea& textarea) { textarea.textStyle_.SetAllowScale(StringToBool(val)); } }, in SetSpecializedStyle()
H A Ddom_list.cpp38 [](DOMList& list, const std::string& val) { list.accessibilityDisabled_ = StringToBool(val); }, in SetSpecializedAttr()
50 [](DOMList& list, const std::string& val) { list.centerLayout_ = StringToBool(val); }, in SetSpecializedAttr()
54 [](DOMList& list, const std::string& val) { list.chainAnimation_ = StringToBool(val); }, in SetSpecializedAttr()
58 [](DOMList& list, const std::string& val) { list.needDivider_ = StringToBool(val); }, in SetSpecializedAttr()
71 list.bubble_.first = StringToBool(val); in SetSpecializedAttr()
78 list.circleMode_.first = StringToBool(val); in SetSpecializedAttr()
85 list.multiLanguage_.first = StringToBool(val); in SetSpecializedAttr()
103 [](DOMList& list, const std::string& val) { list.itemCenter_ = StringToBool(val); }, in SetSpecializedAttr()
107 [](DOMList& list, const std::string& val) { list.itemOpacity_ = StringToBool(val); }, in SetSpecializedAttr()
111 [](DOMList& list, const std::string& val) { list.itemScale_ = StringToBool(va in SetSpecializedAttr()
[all...]
H A Ddom_tabs.cpp72 if (vertical_ != StringToBool(attr.second)) { in SetSpecializedAttr()
73 vertical_ = StringToBool(attr.second); in SetSpecializedAttr()
H A Ddom_image_animator.cpp65 imageAnimator_->SetIsFixedSize(StringToBool(attr.second)); in SetSpecializedAttr()
69 imageAnimator_->SetIsReverse(StringToBool(attr.second)); in SetSpecializedAttr()
H A Ddom_switch.cpp55 std::string& textOff) { textSwitch.SetValue(StringToBool(val)); } }, in SetSpecializedAttr()
57 std::string& textOff) { textSwitch.SetDisabled(StringToBool(val)); } }, in SetSpecializedAttr()
59 std::string& textOff) { textSwitch.SetShowText(StringToBool(val)); } }, in SetSpecializedAttr()
85 TextStyle& textStyle) { textStyle.SetAllowScale(StringToBool(val)); } }, in SetSpecializedStyle()
H A Ddom_refresh.cpp59 refreshing_ = StringToBool(attr.second); in SetSpecializedAttr()
69 showLastTime_ = StringToBool(attr.second); in SetSpecializedAttr()
H A Ddom_toggle.cpp58 toggle.toggleChild_->SetCheckedState(StringToBool(value)); in SetSpecializedAttr()
61 toggle.toggleChild_->SetDisabled(StringToBool(value)); } }, in SetSpecializedAttr()
76 [](DOMToggle& toggle, const std::string& value) { toggle.textStyle_.SetAllowScale(StringToBool(value)); } }, in SetSpecializedStyle()
H A Ddom_video.cpp51 video->SetMute(StringToBool(val)); in SetSpecializedAttr()
59 video->SetAutoPlay(StringToBool(val)); in SetSpecializedAttr()
67 video->SetNeedControls(StringToBool(val)); in SetSpecializedAttr()
71 video->SetLoop(StringToBool(val)); in SetSpecializedAttr()
H A Ddom_panel.cpp72 [](const std::string& val, DOMPanel& panel) { panel.hasDragBar_ = StringToBool(val); } }, in SetSpecializedAttr()
97 { DOM_SHOW, [](const std::string& val, DOMPanel& panel) { panel.isShow_ = StringToBool(val); } }, in SetSpecializedAttr()
H A Ddom_slider.cpp81 { DOM_SHOW_STEPS, [](const std::string& val, DOMSlider& slider) { slider.showSteps_ = StringToBool(val); } }, in SetSpecializedAttr()
82 { DOM_SHOW_TIPS, [](const std::string& val, DOMSlider& slider) { slider.showTips_ = StringToBool(val); } }, in SetSpecializedAttr()
H A Ddom_list_item_group.cpp45 isCard_ = StringToBool(attr.second); in SetSpecializedAttr()
49 isCardBlur_ = StringToBool(attr.second); in SetSpecializedAttr()
H A Ddom_rating.cpp35 ratingChild_->SetIndicator(StringToBool(attr.second)); in SetSpecializedAttr()
68 ratingChild_->SetRtlFlip(StringToBool(style.second)); in SetSpecializedStyle()
H A Ddom_popup.cpp104 clickable_ = StringToBool(attr.second); in SetSpecializedAttr()
107 popupChild_->GetPopupParam()->SetHasAction(StringToBool(attr.second)); in SetSpecializedAttr()
H A Ddom_dialog.cpp111 isShow_ = StringToBool(attr.second); in SetSpecializedAttr()
114 dragable_ = StringToBool(attr.second); in SetSpecializedAttr()
/foundation/arkui/ace_engine/frameworks/core/components/declaration/swiper/
H A Dswiper_declaration.cpp61 [](const std::string& val, SwiperDeclaration& swiper) { swiper.SetAnimationOpacity(StringToBool(val)); } }, in SetSpecializedAttr()
63 [](const std::string& val, SwiperDeclaration& swiper) { swiper.SetAutoPlay(StringToBool(val)); } }, in SetSpecializedAttr()
69 [](const std::string& val, SwiperDeclaration& swiper) { swiper.SetDigitalIndicator(StringToBool(val)); } }, in SetSpecializedAttr()
83 [](const std::string& val, SwiperDeclaration& swiper) { swiper.showIndicator_ = StringToBool(val); } }, in SetSpecializedAttr()
89 swiper.indicator_->SetIndicatorDisabled(StringToBool(val)); in SetSpecializedAttr()
96 swiper.indicator_->SetIndicatorMask(StringToBool(val)); in SetSpecializedAttr()
100 { DOM_LOOP, [](const std::string& val, SwiperDeclaration& swiper) { swiper.SetLoop(StringToBool(val)); } }, in SetSpecializedAttr()
112 swiper.SetAxis(StringToBool(val) ? Axis::VERTICAL : Axis::HORIZONTAL); in SetSpecializedAttr()
/foundation/arkui/ace_engine/frameworks/core/components/declaration/textfield/
H A Dtextfield_declaration.cpp117 const std::string& value) { declaration.SetAutoFocus(StringToBool(value)); } }, in SetSpecializedAttr()
119 const std::string& value) { declaration.SetEnabled(!StringToBool(value)); } }, in SetSpecializedAttr()
134 const std::string& value) { declaration.SetObscure(StringToBool(value)); } }, in SetSpecializedAttr()
150 const std::string& value) { declaration.SetShowCounter(StringToBool(value)); } }, in SetSpecializedAttr()
155 declaration.SetShowPasswordIcon(StringToBool(value)); in SetSpecializedAttr()
159 declaration.SetSoftKeyboardEnabled(StringToBool(value)); in SetSpecializedAttr()
183 declaration.GetTextStyle().SetAllowScale(StringToBool(value)); in SetSpecializedStyle()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/input/
H A Ddom_checkbox_util.cpp78 const std::string& value) { component->SetValue(StringToBool(value)); } }, in SetChildAttr()
80 const std::string& value) { component->SetDisabled(StringToBool(value)); } }, in SetChildAttr()
H A Ddom_textfield_util.cpp144 const std::string& value) { component->SetAutoFocus(StringToBool(value)); } }, in SetChildAttr()
146 const std::string& value) { component->SetEnabled(!StringToBool(value)); } }, in SetChildAttr()
161 const std::string& value) { component->SetObscure(StringToBool(value)); } }, in SetChildAttr()
171 const std::string& value) { component->SetShowCounter(StringToBool(value)); } }, in SetChildAttr()
176 component->SetShowPasswordIcon(StringToBool(value)); in SetChildAttr()
180 component->SetSoftKeyboardEnabled(StringToBool(value)); in SetChildAttr()
219 const DOMInput& node) { style.SetAllowScale(StringToBool(value)); } }, in SetChildStyle()
H A Ddom_radio_util.cpp104 checked = StringToBool(attr.second); in SetChildAttr()
108 component->SetDisabled(StringToBool(attr.second)); in SetChildAttr()
/foundation/arkui/ace_engine/frameworks/core/components/declaration/button/
H A Dbutton_declaration.cpp79 buttonAttr.isAutoFocus = StringToBool(value); in SetSpecializedAttr()
83 buttonAttr.isDisabled = StringToBool(value); in SetSpecializedAttr()
103 buttonAttr.isWaiting = StringToBool(value); in SetSpecializedAttr()
120 buttonStyle.textStyle.SetAllowScale(StringToBool(value)); in SetSpecializedStyle()
137 buttonStyle.matchTextDirection = StringToBool(value); in SetSpecializedStyle()
/foundation/arkui/ace_engine/frameworks/core/components/declaration/span/
H A Dspan_declaration.cpp48 [](const std::string& val, SpanDeclaration& declaration) { declaration.SetIsShow(StringToBool(val)); } }, in SetSpecializedAttr()
66 specializedStyle.spanStyle.SetAllowScale(StringToBool(val)); in SetSpecializedStyle()
/foundation/arkui/ace_engine/frameworks/core/components/declaration/div/
H A Ddiv_declaration.cpp36 divAttr.isCard = StringToBool(attr.second); in SetSpecializedAttr()
42 divAttr.isCardBlur = StringToBool(attr.second); in SetSpecializedAttr()

Completed in 12 milliseconds

123