Home
last modified time | relevance | path

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

123

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/swiper/
H A Dswiper_declaration.cpp58 … std::string& val, SwiperDeclaration& swiper) { swiper.SetAnimationOpacity(StringToBool(val)); } }, in SetSpecializedAttr()
60 …[](const std::string& val, SwiperDeclaration& swiper) { swiper.SetAutoPlay(StringToBool(val)); } }, in SetSpecializedAttr()
66 … std::string& val, SwiperDeclaration& swiper) { swiper.SetDigitalIndicator(StringToBool(val)); } }, in SetSpecializedAttr()
80 …onst std::string& val, SwiperDeclaration& swiper) { swiper.showIndicator_ = StringToBool(val); } }, in SetSpecializedAttr()
83 swiper.indicator_->SetIndicatorDisabled(StringToBool(val)); in SetSpecializedAttr()
87 swiper.indicator_->SetIndicatorMask(StringToBool(val)); in SetSpecializedAttr()
91 …OP, [](const std::string& val, SwiperDeclaration& swiper) { swiper.SetLoop(StringToBool(val)); } }, in SetSpecializedAttr()
103 swiper.SetAxis(StringToBool(val) ? Axis::VERTICAL : Axis::HORIZONTAL); in SetSpecializedAttr()
/ohos5.0/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_list.cpp50 [](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(val); }, in SetSpecializedAttr()
121 list.rotationVibrate_ = StringToBool(val); in SetSpecializedAttr()
[all …]
H A Ddom_image.cpp65 imageChild_->SetSyncMode(StringToBool(attr.second)); in SetSpecializedAttr()
86 …nst 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()
125 … DOMTextarea& textarea) { textarea.textAreaChild_->SetExtend(StringToBool(val)); } }, in SetSpecializedAttr()
128 textarea.textAreaChild_->SetShowCounter(StringToBool(val)); in SetSpecializedAttr()
141 textarea.textAreaChild_->SetSoftKeyboardEnabled(StringToBool(val)); in SetSpecializedAttr()
186 … DOMTextarea& textarea) { textarea.textStyle_.SetAllowScale(StringToBool(val)); } }, in SetSpecializedStyle()
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_tabs.cpp72 if (vertical_ != StringToBool(attr.second)) { in SetSpecializedAttr()
73 vertical_ = StringToBool(attr.second); in SetSpecializedAttr()
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_image_animator.cpp65 imageAnimator_->SetIsFixedSize(StringToBool(attr.second)); in SetSpecializedAttr()
69 imageAnimator_->SetIsReverse(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 …gle& toggle, const std::string& value) { toggle.textStyle_.SetAllowScale(StringToBool(value)); } }, in SetSpecializedStyle()
H A Ddom_refresh.cpp59 refreshing_ = StringToBool(attr.second); in SetSpecializedAttr()
69 showLastTime_ = StringToBool(attr.second); in SetSpecializedAttr()
H A Ddom_dialog.cpp111 isShow_ = StringToBool(attr.second); in SetSpecializedAttr()
114 dragable_ = StringToBool(attr.second); 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_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_rating.cpp35 ratingChild_->SetIndicator(StringToBool(attr.second)); in SetSpecializedAttr()
68 ratingChild_->SetRtlFlip(StringToBool(style.second)); in SetSpecializedStyle()
/ohos5.0/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()
144 … const std::string& value) { declaration.SetShowCounter(StringToBool(value)); } }, in SetSpecializedAttr()
149 declaration.SetShowPasswordIcon(StringToBool(value)); in SetSpecializedAttr()
153 declaration.SetSoftKeyboardEnabled(StringToBool(value)); in SetSpecializedAttr()
177 declaration.GetTextStyle().SetAllowScale(StringToBool(value)); in SetSpecializedStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/input/
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_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_radio_util.cpp104 checked = StringToBool(attr.second); in SetChildAttr()
108 component->SetDisabled(StringToBool(attr.second)); in SetChildAttr()
/ohos5.0/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()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_chart_bridge.cpp55 …splay", [](const std::string& valStr, AxisOption& axis) { axis.display = StringToBool(valStr); } }, in GetAttrOptionsAxis()
94 … PointInfo& pointInfo) { pointInfo.SetDisplay(StringToBool(valStr)); } }, in GetAttrOptionsSeriesPoint()
147 chartOptions.SetWholeLineGradient(StringToBool(valStr)); } }, in GetChartAttrOptionsSeriesLineStyle()
149 … ChartOptions& chartOptions) { chartOptions.SetSmoothFlag(StringToBool(valStr)); } }, in GetChartAttrOptionsSeriesLineStyle()
191 … ChartOptions& chartOptions) { chartOptions.SetLineGradient(StringToBool(valStr)); } }, in GetChartAttrOptionsSeriesLoop()
422 dataSet.SetGradient(StringToBool(valStr)); in GetAttrDataset()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/span/
H A Dspan_declaration.cpp48 …st std::string& val, SpanDeclaration& declaration) { declaration.SetIsShow(StringToBool(val)); } }, in SetSpecializedAttr()
66 specializedStyle.spanStyle.SetAllowScale(StringToBool(val)); in SetSpecializedStyle()
/ohos5.0/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()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/search/
H A Dsearch_declaration.cpp110 textFieldDeclaration.SetAutoFocus(StringToBool(val)); in SetSpecializedAttr()
139 textFieldDeclaration.SetSoftKeyboardEnabled(StringToBool(val)); in SetSpecializedAttr()
164 textFieldDeclaration.GetTextStyle().SetAllowScale(StringToBool(val)); in SetSpecializedStyle()

123