Home
last modified time | relevance | path

Searched refs:boxComponent_ (Results 1 – 25 of 42) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Drender_popup_list_item.cpp36 if (!boxComponent_) { in Update()
41 textComponent_ = AceType::DynamicCast<TextComponent>(boxComponent_->GetChild()); in Update()
53 renderBox_->Update(boxComponent_); in Update()
90 if (!renderBox_ || !boxComponent_) { in UpdateBoxSelected()
95 boxComponent_->SetColor(Color::GRAY); in UpdateBoxSelected()
96 boxComponent_->SetDecorationUpdateFlag(true); in UpdateBoxSelected()
97 renderBox_->Update(boxComponent_); in UpdateBoxSelected()
103 if (!renderBox_ || !boxComponent_) { in UpdateBoxNormal()
108 boxComponent_->SetColor(Color::TRANSPARENT); in UpdateBoxNormal()
109 boxComponent_->SetDecorationUpdateFlag(true); in UpdateBoxNormal()
[all …]
H A Dpopup_list_item_component.cpp34 if (!boxComponent_) { in BuildItem()
35 boxComponent_ = AceType::MakeRefPtr<BoxComponent>(); in BuildItem()
37 boxComponent_->SetFlex(BoxFlex::FLEX_NO); in BuildItem()
38 boxComponent_->SetAlignment(Alignment::CENTER); in BuildItem()
39 boxComponent_->SetWidth(POPUP_BOX_SIZE, DimensionUnit::VP); in BuildItem()
40 boxComponent_->SetHeight(POPUP_BOX_SIZE, DimensionUnit::VP); in BuildItem()
46 boxComponent_->SetBackDecoration(boxDecoration_); in BuildItem()
55 boxComponent_->SetChild(boxText_); in BuildItem()
57 AppendChild(boxComponent_); in BuildItem()
H A Drender_popup_list.cpp35 boxComponent_ = AceType::DynamicCast<BoxComponent>(component_->GetChildren().front()); in Update()
36 ACE_DCHECK(boxComponent_); in Update()
191 boxComponent_->SetWidth(POPUP_ZERO_SIZE); in OnRequestPopupDataSelected()
192 boxComponent_->SetHeight(POPUP_ZERO_SIZE); in OnRequestPopupDataSelected()
194 boxComponent_->SetWidth(viewPortWidth_); in OnRequestPopupDataSelected()
195 boxComponent_->SetHeight(viewPortHeight_); in OnRequestPopupDataSelected()
202 renderBox_->Update(boxComponent_); in OnRequestPopupDataSelected()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_option_component.cpp31 boxComponent_ = AceType::MakeRefPtr<BoxComponent>(); in PickerOptionComponent()
61 boxComponent_->SetDeliverMinToChild(false); in Initialize()
63 boxComponent_->SetBackDecoration(theme_->GetOptionDecoration(false)); in Initialize()
66 boxComponent_->SetBackDecoration(back); in Initialize()
68 boxComponent_->SetAlignment(Alignment::CENTER); in Initialize()
69 boxComponent_->SetChild(textComponent_); in Initialize()
70 boxComponent_->SetTextDirection(GetTextDirection()); in Initialize()
72 boxComponent_->SetAlignment(Alignment::CENTER_RIGHT); in Initialize()
74 boxComponent_->SetEnableDebugBoundary(true); in Initialize()
76 SetChild(boxComponent_); in Initialize()
H A Drender_picker_option.cpp87 boxComponent_ = option->GetBoxComponent(); in Update()
178 boxComponent_->SetBackDecoration(pressDecoration_); in UpdateBackgroundDecoration()
179 renderBox_->Update(boxComponent_); in UpdateBackgroundDecoration()
352 …if (renderText_ && renderBox_ && textComponent_ && boxComponent_ && focusDecoration_ && selectedDe… in UpdateFocus()
355 boxComponent_->SetBackDecoration(focusDecoration_); in UpdateFocus()
358 boxComponent_->SetBackDecoration(selectedDecoration_); in UpdateFocus()
361 renderBox_->Update(boxComponent_); in UpdateFocus()
H A Dpicker_option_component.h90 return boxComponent_; in GetBoxComponent()
150 RefPtr<BoxComponent> boxComponent_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_piece.cpp44 if (boxComponent_->GetBackDecoration()) { in PrepareSpecializedComponent()
45 declaration->SetBorder(boxComponent_->GetBackDecoration()->GetBorder()); in PrepareSpecializedComponent()
50 boxComponent_->SetWidth(0.0); in PrepareSpecializedComponent()
51 boxComponent_->SetHeight(0.0); in PrepareSpecializedComponent()
52 boxComponent_->SetPadding(Edge()); in PrepareSpecializedComponent()
53 boxComponent_->SetMargin(Edge()); in PrepareSpecializedComponent()
H A Ddom_div.cpp254 boxComponent_->SetFlex(BoxFlex::FLEX_X); in SetBoxWidthFlex()
273 if (boxComponent_->GetWidthDimension().IsValid()) { in SetRootBoxHeight()
274 boxComponent_->SetFlex(BoxFlex::FLEX_Y); in SetRootBoxHeight()
280 boxComponent_->SetFlex(BoxFlex::FLEX_X); in SetRootBoxHeight()
282 boxComponent_->SetFlex(BoxFlex::FLEX_XY); in SetRootBoxHeight()
317 auto child = boxComponent_->GetChild(); in OnMounted()
327 boxComponent_->SetChild(scroll_); in OnMounted()
344 boxComponent_->SetFlex(BoxFlex::FLEX_X); in OnMounted()
452 if (boxComponent_) { in SetCardThemeAttrs()
581 auto child = boxComponent_->GetChild(); in CompositeComponents()
[all …]
H A Ddom_list_item.cpp96 if (!boxComponent_) { in SetCardThemeAttrs()
103 RefPtr<Decoration> backDecoration = boxComponent_->GetBackDecoration(); in SetCardThemeAttrs()
108 boxComponent_->SetBackDecoration(decoration); in SetCardThemeAttrs()
121 boxComponent_->SetFrontDecoration(frontDecoration); in SetCardThemeAttrs()
390 if (boxComponent_) { in PrepareSpecializedComponent()
394 boxComponent_->SetAspectRatio(sizeStyle.aspectRatio); in PrepareSpecializedComponent()
395 boxComponent_->SetMinWidth(sizeStyle.minWidth); in PrepareSpecializedComponent()
396 boxComponent_->SetMinHeight(sizeStyle.minHeight); in PrepareSpecializedComponent()
397 boxComponent_->SetMaxWidth(sizeStyle.maxWidth); in PrepareSpecializedComponent()
398 boxComponent_->SetMaxHeight(sizeStyle.maxHeight); in PrepareSpecializedComponent()
[all …]
H A Ddom_rating.cpp116 if (boxComponent_->GetHeightDimension().Value() < 0.0) { in SetThemeAttrs()
118boxComponent_->SetHeight(theme->GetRatingMiniHeight().Value(), theme->GetRatingMiniHeight().Unit()… in SetThemeAttrs()
120 if (boxComponent_->GetWidthDimension().Value() < 0.0) { in SetThemeAttrs()
122boxComponent_->SetWidth(theme->GetRatingMiniWidth().Value(), theme->GetRatingMiniWidth().Unit()); in SetThemeAttrs()
129 if (boxComponent_->GetHeightDimension().Value() < 0.0) { in SetThemeAttrs()
131boxComponent_->SetHeight(theme->GetRatingHeight().Value(), theme->GetRatingHeight().Unit()); in SetThemeAttrs()
133 if (boxComponent_->GetWidthDimension().Value() < 0.0) { in SetThemeAttrs()
135boxComponent_->SetWidth(theme->GetRatingWidth().Value(), theme->GetRatingWidth().Unit()); in SetThemeAttrs()
H A Ddom_switch.cpp157 if (boxComponent_) { in PrepareSpecializedComponent()
158 boxComponent_->SetMouseAnimationType(HoverAnimationType::OPACITY); in PrepareSpecializedComponent()
159 if (!boxComponent_->GetBackDecoration()) { in PrepareSpecializedComponent()
162 boxComponent_->SetBackDecoration(backDecoration); in PrepareSpecializedComponent()
180 if (boxComponent_ && boxComponent_->GetHeightDimension().Value() < 0.0 && theme) { in PrepareSpecializedComponent()
181 boxComponent_->SetHeight(theme->GetHeight().Value(), theme->GetHeight().Unit()); in PrepareSpecializedComponent()
183 if (boxComponent_ && boxComponent_->GetWidthDimension().Value() < 0.0 && theme) { in PrepareSpecializedComponent()
184 boxComponent_->SetWidth(theme->GetWidth().Value(), theme->GetWidth().Unit()); in PrepareSpecializedComponent()
H A Ddom_toggle.cpp163 if (!boxComponent_) { in PrepareSpecializedComponent()
166 boxComponent_->SetDeliverMinToChild(true); in PrepareSpecializedComponent()
168 boxComponent_->SetWidth(toggleChild_->GetWidth().Value(), toggleChild_->GetWidth().Unit()); in PrepareSpecializedComponent()
171boxComponent_->SetHeight(toggleChild_->GetHeight().Value(), toggleChild_->GetHeight().Unit()); in PrepareSpecializedComponent()
174boxComponent_->SetHeight(toggleTheme_->GetHeight().Value(), toggleTheme_->GetHeight().Unit()); in PrepareSpecializedComponent()
177 auto backDecoration = boxComponent_->GetBackDecoration(); in PrepareSpecializedComponent()
182 backDecoration->SetBorderRadius(Radius(boxComponent_->GetHeightDimension() / 2.0)); in PrepareSpecializedComponent()
186 auto edge = boxComponent_->GetPadding(); in PrepareSpecializedComponent()
191 boxComponent_->SetPadding(Edge()); in PrepareSpecializedComponent()
H A Ddom_badge.cpp36 if (!boxComponent_ || !declaration) { in PrepareSpecializedComponent()
40 boxComponent_->SetAlignment(Alignment::TOP_LEFT); in PrepareSpecializedComponent()
41 auto edge = boxComponent_->GetPadding(); in PrepareSpecializedComponent()
46 boxComponent_->SetPadding(Edge()); in PrepareSpecializedComponent()
H A Ddom_popup.cpp208 if (boxComponent_->GetBackDecoration()) { in PrepareSpecializedComponent()
209 auto boxBorder = boxComponent_->GetBackDecoration()->GetBorder(); in PrepareSpecializedComponent()
216 boxComponent_->GetBackDecoration()->SetBorder(border); in PrepareSpecializedComponent()
217 boxComponent_->GetBackDecoration()->SetBackgroundColor(Color::TRANSPARENT); in PrepareSpecializedComponent()
220 popupChild_->GetPopupParam()->SetPadding(boxComponent_->GetPadding()); in PrepareSpecializedComponent()
221 popupChild_->GetPopupParam()->SetMargin(boxComponent_->GetMargin()); in PrepareSpecializedComponent()
222 boxComponent_->SetMargin(Edge()); in PrepareSpecializedComponent()
H A Ddom_list_item_group.cpp66 if (boxComponent_) { in SetCardThemeAttrs()
68 RefPtr<Decoration> backDecoration = boxComponent_->GetBackDecoration(); in SetCardThemeAttrs()
73 boxComponent_->SetBackDecoration(decoration); in SetCardThemeAttrs()
82 RefPtr<Decoration> frontDecoration = boxComponent_->GetFrontDecoration(); in SetCardThemeAttrs()
86 boxComponent_->SetFrontDecoration(frontDecoration); in SetCardThemeAttrs()
92 RefPtr<Decoration> frontDecoration = boxComponent_->GetFrontDecoration(); in SetCardThemeAttrs()
H A Ddom_node.cpp87 boxComponent_->SetEnableDebugBoundary(true); in DOMNode()
145 if (boxComponent_) { in Mount()
154 if (boxComponent_) { in Mount()
1107 if (boxComponent_ != nullptr) { in UpdatePropAnimations()
1108 boxComponent_->ClearAnimatables(); in UpdatePropAnimations()
1254 if (boxComponent_) { in CompositeComponents()
1357 if (boxComponent_) { in SetDisplayType()
1451 boxComponent_->SetPadding(padding); in UpdateBoxPadding()
1583 …if (boxComponent_->GetWidthDimension().IsValid() && boxComponent_->GetHeightDimension().IsValid())… in PrepareScrollComponent()
2281 if (boxComponent_) { in AdjustParamInLiteMode()
[all …]
H A Ddom_button.cpp138 if (!boxComponent_) { in PrepareBoxSize()
141 boxComponent_->SetDeliverMinToChild(true); in PrepareBoxSize()
142 backDecoration_ = boxComponent_->GetBackDecoration(); in PrepareBoxSize()
149 boxComponent_->SetWidth(buttonChild_->GetWidth().Value(), buttonChild_->GetWidth().Unit()); in PrepareBoxSize()
152boxComponent_->SetHeight(buttonChild_->GetHeight().Value(), buttonChild_->GetHeight().Unit()); in PrepareBoxSize()
157 boxComponent_->SetHeight(buttonTheme_->GetDownloadHeight().Value(), in PrepareBoxSize()
529 if (!boxComponent_) { in AddPadding()
532 auto edge = boxComponent_->GetPadding(); in AddPadding()
537 boxComponent_->SetPadding(Edge()); in AddPadding()
542 if (!boxComponent_) { in ResetBoxHeight()
[all …]
H A Ddom_proxy.cpp26 rootComponent_->SetChild(boxComponent_); in Mount()
68 if (boxComponent_) { in SetIsIgnored()
69 boxComponent_->SetIsIgnored(ignore); in SetIsIgnored()
H A Ddom_tab_bar.cpp36 if (boxComponent_) { in InitializeStyle()
37 boxComponent_->SetColor(theme->GetBackgroundColor()); in InitializeStyle()
38 boxComponent_->SetHasBackgroundColor(true); in InitializeStyle()
152 if (!boxComponent_) { in ResetInitializedStyle()
163boxComponent_->SetWidth(theme->GetDefaultWidth().Value(), theme->GetDefaultWidth().Unit()); in ResetInitializedStyle()
167boxComponent_->SetHeight(theme->GetDefaultHeight().Value(), theme->GetDefaultHeight().Unit()); in ResetInitializedStyle()
H A Ddom_search.cpp59 DOMTextFieldUtil::InitDefaultValue(boxComponent_, textFieldComponent_, textFieldTheme); in InitializeStyle()
60 boxComponent_->SetBackDecoration(nullptr); in InitializeStyle()
61 boxComponent_->SetPadding(Edge()); in InitializeStyle()
324 boxComponent_->SetMouseAnimationType(HoverAnimationType::OPACITY); in PrepareSpecializedComponent()
325 if (boxComponent_->GetBackDecoration()) { in PrepareSpecializedComponent()
326 boxBorder = boxComponent_->GetBackDecoration()->GetBorder(); in PrepareSpecializedComponent()
334 …DOMTextFieldUtil::UpdateDecorationStyle(boxComponent_, textFieldComponent_, boxBorder, hasBoxRadiu… in PrepareSpecializedComponent()
335 if (GreatOrEqual(boxComponent_->GetHeightDimension().Value(), 0.0)) { in PrepareSpecializedComponent()
336 textFieldComponent_->SetHeight(boxComponent_->GetHeightDimension()); in PrepareSpecializedComponent()
H A Ddom_stack.cpp101 …if (boxComponent_->GetWidthDimension().IsValid() && boxComponent_->GetHeightDimension().IsValid())… in PrepareSpecializedComponent()
103 } else if (boxComponent_->GetWidthDimension().IsValid()) { in PrepareSpecializedComponent()
105 } else if (boxComponent_->GetHeightDimension().IsValid()) { in PrepareSpecializedComponent()
H A Ddom_panel.cpp60 if (boxComponent_) { in PrepareSpecializedComponent()
61 panelChild_->SetBoxStyle(boxComponent_); in PrepareSpecializedComponent()
63 boxComponent_ = AceType::MakeRefPtr<BoxComponent>(); in PrepareSpecializedComponent()
64 panelChild_->SetBoxStyle(boxComponent_); in PrepareSpecializedComponent()
H A Ddom_input.cpp222 if (boxComponent_) { in PrepareSpecializedComponent()
223 boxComponent_->SetMouseAnimationType(HoverAnimationType::OPACITY); in PrepareSpecializedComponent()
225 if (boxComponent_ && boxComponent_->GetBackDecoration()) { in PrepareSpecializedComponent()
226 boxBorder_ = boxComponent_->GetBackDecoration()->GetBorder(); in PrepareSpecializedComponent()
265 boxComponent_->SetDeliverMinToChild(true); in CreateSpecializedComponent()
268 boxComponent_->SetDeliverMinToChild(true); in CreateSpecializedComponent()
272 boxComponent_->SetDeliverMinToChild(true); in CreateSpecializedComponent()
288 boxComponent_->SetDeliverMinToChild(true); in UpdateSpecializedComponent()
292 boxComponent_->SetDeliverMinToChild(true); in UpdateSpecializedComponent()
295 boxComponent_->SetDeliverMinToChild(true); in UpdateSpecializedComponent()
H A Ddom_canvas.cpp48 boxComponent_->SetWidth(DEFAULT_WIDTH.Value(), DEFAULT_WIDTH.Unit()); in ResetInitializedStyle()
49 boxComponent_->SetHeight(DEFAULT_HEIGHT.Value(), DEFAULT_HEIGHT.Unit()); in ResetInitializedStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_component.cpp143 boxComponent_ = box; in Initialize()
144 boxComponent_->SetMouseAnimationType(HoverAnimationType::OPACITY); in Initialize()
170 if (!boxComponent_) { in SetClicked()
175 auto backDecoration = boxComponent_->GetBackDecoration(); in SetClicked()
180 boxComponent_->SetBackDecoration(backDecoration); in SetClicked()
195 if (!boxComponent_) { in GetBoxComponent()
200 return boxComponent_; in GetBoxComponent()

12