/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
H A D | popup_list_item_component.cpp | 34 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 D | render_popup_list_item.cpp | 32 boxComponent_ = AceType::DynamicCast<BoxComponent>(component_->GetChildren().front()); in Update() 33 if (!boxComponent_) { in Update() 38 textComponent_ = AceType::DynamicCast<TextComponent>(boxComponent_->GetChild()); in Update() 50 renderBox_->Update(boxComponent_); in Update() 87 if (!renderBox_ || !boxComponent_) { in UpdateBoxSelected() 92 boxComponent_->SetColor(Color::GRAY); in UpdateBoxSelected() 93 boxComponent_->SetDecorationUpdateFlag(true); in UpdateBoxSelected() 94 renderBox_->Update(boxComponent_); in UpdateBoxSelected() 100 if (!renderBox_ || !boxComponent_) { in UpdateBoxNormal() 105 boxComponent_ in UpdateBoxNormal() [all...] |
H A D | render_popup_list.cpp | 28 boxComponent_ = AceType::DynamicCast<BoxComponent>(component_->GetChildren().front()); in Update() 29 ACE_DCHECK(boxComponent_); in Update() 184 boxComponent_->SetWidth(POPUP_ZERO_SIZE); in OnRequestPopupDataSelected() 185 boxComponent_->SetHeight(POPUP_ZERO_SIZE); in OnRequestPopupDataSelected() 187 boxComponent_->SetWidth(viewPortWidth_); in OnRequestPopupDataSelected() 188 boxComponent_->SetHeight(viewPortHeight_); in OnRequestPopupDataSelected() 195 renderBox_->Update(boxComponent_); in OnRequestPopupDataSelected()
|
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_option_component.cpp | 31 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() [all...] |
H A D | picker_option_component.h | 90 return boxComponent_; in GetBoxComponent() 150 RefPtr<BoxComponent> boxComponent_; member in OHOS::Ace::PickerOptionComponent
|
H A D | render_picker_option.cpp | 87 boxComponent_ = option->GetBoxComponent(); in Update() 178 boxComponent_->SetBackDecoration(pressDecoration_); in UpdateBackgroundDecoration() 179 renderBox_->Update(boxComponent_); in UpdateBackgroundDecoration() 352 if (renderText_ && renderBox_ && textComponent_ && boxComponent_ && focusDecoration_ && selectedDecoration_) { in UpdateFocus() 355 boxComponent_->SetBackDecoration(focusDecoration_); in UpdateFocus() 358 boxComponent_->SetBackDecoration(selectedDecoration_); in UpdateFocus() 361 renderBox_->Update(boxComponent_); in UpdateFocus()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_piece.cpp | 44 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 D | dom_div.cpp | 181 boxComponent_->SetAlignment(ComputeFlexAlign(flexMainAlign, flexCrossAlign, isColumn, IsRightToLeft())); in CreateOrUpdateFlex() 187 boxComponent_->GetWidthDimension().IsValid()) || in CreateOrUpdateFlex() 189 boxComponent_->GetHeightDimension().IsValid())) { in CreateOrUpdateFlex() 195 boxComponent_->GetHeightDimension().IsValid()) || in CreateOrUpdateFlex() 197 boxComponent_->GetWidthDimension().IsValid())) { in CreateOrUpdateFlex() 246 boxComponent_->SetAlignment(IsRightToLeft() ? Alignment::TOP_RIGHT : Alignment::TOP_LEFT); in CreateOrUpdateWrap() 253 if (boxComponent_->GetWidthDimension().Value() < 0.0 && isHorizontal) { in SetBoxWidthFlex() 254 boxComponent_->SetFlex(BoxFlex::FLEX_X); in SetBoxWidthFlex() 270 if (boxWrap_ || (!isRootNode_) || GreatOrEqual(boxComponent_->GetHeightDimension().Value(), 0.0)) { in SetRootBoxHeight() 273 if (boxComponent_ in SetRootBoxHeight() [all...] |
H A D | dom_list_item.cpp | 96 if (!boxComponent_) { in SetCardThemeAttrs() 103 RefPtr<Decoration> backDecoration = boxComponent_->GetBackDecoration(); in SetCardThemeAttrs() 108 boxComponent_->SetBackDecoration(decoration); in SetCardThemeAttrs() 117 RefPtr<Decoration> frontDecoration = boxComponent_->GetFrontDecoration(); in SetCardThemeAttrs() 121 boxComponent_->SetFrontDecoration(frontDecoration); in SetCardThemeAttrs() 127 RefPtr<Decoration> frontDecoration = boxComponent_->GetFrontDecoration(); in SetCardThemeAttrs() 328 if (SystemProperties::GetDeviceType() == DeviceType::TV && boxComponent_) { in ResetInitializedStyle() 338 boxComponent_->SetPadding(Edge(), Edge(Dimension(additionalPadding, DimensionUnit::PERCENT))); in ResetInitializedStyle() 390 if (boxComponent_) { in PrepareSpecializedComponent() 391 boxComponent_ in PrepareSpecializedComponent() [all...] |
H A D | dom_proxy.cpp | 26 rootComponent_->SetChild(boxComponent_); in Mount() 68 if (boxComponent_) { in SetIsIgnored() 69 boxComponent_->SetIsIgnored(ignore); in SetIsIgnored()
|
H A D | dom_rating.cpp | 116 if (boxComponent_->GetHeightDimension().Value() < 0.0) { in SetThemeAttrs() 118 boxComponent_->SetHeight(theme->GetRatingMiniHeight().Value(), theme->GetRatingMiniHeight().Unit()); in SetThemeAttrs() 120 if (boxComponent_->GetWidthDimension().Value() < 0.0) { in SetThemeAttrs() 122 boxComponent_->SetWidth(theme->GetRatingMiniWidth().Value(), theme->GetRatingMiniWidth().Unit()); in SetThemeAttrs() 129 if (boxComponent_->GetHeightDimension().Value() < 0.0) { in SetThemeAttrs() 131 boxComponent_->SetHeight(theme->GetRatingHeight().Value(), theme->GetRatingHeight().Unit()); in SetThemeAttrs() 133 if (boxComponent_->GetWidthDimension().Value() < 0.0) { in SetThemeAttrs() 135 boxComponent_->SetWidth(theme->GetRatingWidth().Value(), theme->GetRatingWidth().Unit()); in SetThemeAttrs()
|
H A D | dom_badge.cpp | 36 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 D | dom_switch.cpp | 157 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_ in PrepareSpecializedComponent() [all...] |
H A D | dom_popup.cpp | 208 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 D | dom_toggle.cpp | 163 if (!boxComponent_) { in PrepareSpecializedComponent() 166 boxComponent_->SetDeliverMinToChild(true); in PrepareSpecializedComponent() 168 boxComponent_->SetWidth(toggleChild_->GetWidth().Value(), toggleChild_->GetWidth().Unit()); in PrepareSpecializedComponent() 171 boxComponent_->SetHeight(toggleChild_->GetHeight().Value(), toggleChild_->GetHeight().Unit()); in PrepareSpecializedComponent() 174 boxComponent_->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 D | dom_list_item_group.cpp | 66 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 D | dom_canvas.cpp | 48 boxComponent_->SetWidth(DEFAULT_WIDTH.Value(), DEFAULT_WIDTH.Unit()); in ResetInitializedStyle() 49 boxComponent_->SetHeight(DEFAULT_HEIGHT.Value(), DEFAULT_HEIGHT.Unit()); in ResetInitializedStyle()
|
H A D | dom_stack.cpp | 101 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 D | dom_node.cpp | 86 boxComponent_ = AceType::MakeRefPtr<BoxComponent>(); in DOMNode() 87 boxComponent_->SetEnableDebugBoundary(true); in DOMNode() 145 if (boxComponent_) { in Mount() 147 boxComponent_->SetDeliverMinToChild(false); in Mount() 154 if (boxComponent_) { in Mount() 156 boxComponent_->SetPercentFlag(PERCENT_FLAG_USE_VIEW_PORT); in Mount() 176 boxComponent_->SetOnDragStartId(onDragStartId); in AddEvent() 1107 if (boxComponent_ != nullptr) { in UpdatePropAnimations() 1108 boxComponent_->ClearAnimatables(); in UpdatePropAnimations() 1148 if (boxComponent_ ! in UpdatePropAnimations() [all...] |
H A D | dom_button.cpp | 138 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() 152 boxComponent_->SetHeight(buttonChild_->GetHeight().Value(), buttonChild_->GetHeight().Unit()); in PrepareBoxSize() 157 boxComponent_->SetHeight(buttonTheme_->GetDownloadHeight().Value(), in PrepareBoxSize() 161 boxComponent_->SetHeight(buttonTheme_->GetHeight().Value(), buttonTheme_->GetHeight().Unit()); in PrepareBoxSize() 529 if (!boxComponent_) { in AddPadding() 532 auto edge = boxComponent_->GetPadding(); in AddPadding() 537 boxComponent_ in AddPadding() [all...] |
H A D | dom_search.cpp | 59 DOMTextFieldUtil::InitDefaultValue(boxComponent_, textFieldComponent_, textFieldTheme); in InitializeStyle() 60 boxComponent_->SetBackDecoration(nullptr); in InitializeStyle() 61 boxComponent_->SetPadding(Edge()); in InitializeStyle() 323 // [boxComponent_] is created when [DomNode] is constructed so it won't be null in PrepareSpecializedComponent() 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, hasBoxRadius_); in PrepareSpecializedComponent() 335 if (GreatOrEqual(boxComponent_->GetHeightDimension().Value(), 0.0)) { in PrepareSpecializedComponent() 336 textFieldComponent_->SetHeight(boxComponent_ in PrepareSpecializedComponent() [all...] |
H A D | dom_tab_bar.cpp | 36 if (boxComponent_) { in InitializeStyle() 37 boxComponent_->SetColor(theme->GetBackgroundColor()); in InitializeStyle() 38 boxComponent_->SetHasBackgroundColor(true); in InitializeStyle() 152 if (!boxComponent_) { in ResetInitializedStyle() 163 boxComponent_->SetWidth(theme->GetDefaultWidth().Value(), theme->GetDefaultWidth().Unit()); in ResetInitializedStyle() 167 boxComponent_->SetHeight(theme->GetDefaultHeight().Value(), theme->GetDefaultHeight().Unit()); in ResetInitializedStyle()
|
H A D | dom_panel.cpp | 60 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 D | dom_divider.cpp | 70 boxComponent_->SetFlex(BoxFlex::FLEX_Y); in PrepareSpecializedComponent() 72 boxComponent_->SetFlex(BoxFlex::FLEX_X); in PrepareSpecializedComponent()
|
/foundation/arkui/ace_engine/frameworks/core/components/select/ |
H A D | select_component.cpp | 143 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()
|