Home
last modified time | relevance | path

Searched refs:boxComponent (Results 1 - 25 of 42) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Dpopup_list_component.cpp34 RefPtr<BoxComponent> boxComponent = AceType::MakeRefPtr<BoxComponent>(); in BuildBackground() local
35 boxComponent->SetFlex(BoxFlex::FLEX_NO); in BuildBackground()
36 boxComponent->SetAlignment(Alignment::CENTER); in BuildBackground()
37 boxComponent->SetWidth(POPUP_ZERO_SIZE, DimensionUnit::VP); in BuildBackground()
38 boxComponent->SetHeight(POPUP_ZERO_SIZE, DimensionUnit::VP); in BuildBackground()
51 boxComponent->SetBackDecoration(boxDecoration); in BuildBackground()
53 AppendChild(boxComponent); in BuildBackground()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Drating_model_impl.cpp39 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); in Create() local
41 if (boxComponent->GetHeightDimension().Value() < 0.0) { in Create()
42 boxComponent->SetHeight(theme->GetRatingMiniHeight()); in Create()
44 if (boxComponent->GetWidthDimension().Value() < 0.0) { in Create()
45 boxComponent->SetWidth(theme->GetRatingMiniWidth()); in Create()
50 if (boxComponent->GetHeightDimension().Value() < 0.0) { in Create()
51 boxComponent->SetHeight(theme->GetRatingHeight()); in Create()
53 if (boxComponent->GetWidthDimension().Value() < 0.0) { in Create()
54 boxComponent->SetWidth(theme->GetRatingWidth()); in Create()
H A Dsearch_model_impl.cpp283 void SearchModelImpl::InitializeDefaultValue(const RefPtr<BoxComponent>& boxComponent, in InitializeDefaultValue() argument
325 const auto& boxDecoration = boxComponent->GetBackDecoration(); in InitializeDefaultValue()
335 boxComponent->SetPadding(theme->GetPadding()); in InitializeDefaultValue()
339 void SearchModelImpl::UpdateDecorationStyle(const RefPtr<BoxComponent>& boxComponent, in UpdateDecorationStyle() argument
359 if (!boxComponent) { in UpdateDecorationStyle()
362 RefPtr<Decoration> boxDecoration = boxComponent->GetBackDecoration(); in UpdateDecorationStyle()
379 boxComponent->SetBackDecoration(backDecoration); in UpdateDecorationStyle()
381 boxComponent->SetPadding(Edge()); in UpdateDecorationStyle()
391 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); in InitializeComponent() local
392 InitializeDefaultValue(boxComponent, textFieldComponen in InitializeComponent()
435 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); PrepareSpecializedComponent() local
[all...]
H A Dview_abstract_model_impl.cpp253 auto boxComponent = stack->GetBoxComponent(); in SetBackgroundColor() local
256 boxComponent->SetColor(color, option); in SetBackgroundColor()
258 boxComponent->GetStateAttributes()->AddAttribute<AnimatableColor>( in SetBackgroundColor()
260 if (!boxComponent->GetStateAttributes()->HasAttribute(BoxStateAttribute::COLOR, VisualState::NORMAL)) { in SetBackgroundColor()
261 boxComponent->GetStateAttributes()->AddAttribute<AnimatableColor>( in SetBackgroundColor()
262 BoxStateAttribute::COLOR, AnimatableColor(boxComponent->GetColor(), option), VisualState::NORMAL); in SetBackgroundColor()
405 auto boxComponent = stack->GetBoxComponent(); in SetBorderRadius() local
406 boxComponent->GetStateAttributes()->AddAttribute<AnimatableDimension>( in SetBorderRadius()
408 if (!boxComponent->GetStateAttributes()->HasAttribute(BoxStateAttribute::BORDER_RADIUS, VisualState::NORMAL)) { in SetBorderRadius()
409 boxComponent in SetBorderRadius()
436 auto boxComponent = stack->GetBoxComponent(); SetBorderColor() local
467 auto boxComponent = stack->GetBoxComponent(); SetBorderWidth() local
496 auto boxComponent = stack->GetBoxComponent(); SetBorderStyle() local
508 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetBorderImage() local
567 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetAspectRatio() local
792 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetGeometryTransition() local
854 auto boxComponent = stack->GetBoxComponent(); SetLinearGradient() local
874 auto boxComponent = stack->GetBoxComponent(); SetSweepGradient() local
894 auto boxComponent = stack->GetBoxComponent(); SetRadialGradient() local
1220 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnAreaChanged() local
1373 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetHoverEffect() local
1396 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); BindPopup() local
[all...]
H A Dtext_field_model_impl.cpp48 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); in CreateTextInput() local
52 if (boxComponent->GetBackDecoration()) { in CreateTextInput()
53 boxBorder = boxComponent->GetBackDecoration()->GetBorder(); in CreateTextInput()
55 JSTextField::UpdateDecoration(boxComponent, textInputComponent, boxBorder, theme); in CreateTextInput()
63 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); in InitTextAreaDefaultStyle() local
69 if (!boxComponent || !textAreaComponent || !theme) { in InitTextAreaDefaultStyle()
70 LOGI("boxComponent or textAreaComponent or theme is null"); in InitTextAreaDefaultStyle()
106 const auto& boxDecoration = boxComponent->GetBackDecoration(); in InitTextAreaDefaultStyle()
119 boxComponent->SetHeight(-1.0, DimensionUnit::VP); in InitTextAreaDefaultStyle()
134 auto boxComponent in CreateTextArea() local
152 auto boxComponent = ViewStackProcessor::GetInstance()->GetBoxComponent(); InitTextInputDefaultStyle() local
515 UpdateDecoration(const RefPtr<BoxComponent>& boxComponent, const RefPtr<TextFieldComponent>& component, const Border& boxBorder, const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) UpdateDecoration() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/input/
H A Ddom_checkbox_util.cpp42 auto boxComponent = node.GetBoxComponent(); in CreateComponentAndSetChildAttr() local
43 if (boxComponent) { in CreateComponentAndSetChildAttr()
44 if (!boxComponent->GetBackDecoration()) { in CreateComponentAndSetChildAttr()
47 boxComponent->SetBackDecoration(backDecoration); in CreateComponentAndSetChildAttr()
56 if (LessOrEqual(node.GetWidth().Value(), 0.0) && boxComponent) { in CreateComponentAndSetChildAttr()
58 boxComponent->SetWidth(theme->GetWidth().Value(), theme->GetWidth().Unit()); in CreateComponentAndSetChildAttr()
60 if (LessOrEqual(node.GetHeight().Value(), 0.0) && boxComponent) { in CreateComponentAndSetChildAttr()
62 boxComponent->SetHeight(theme->GetHeight().Value(), theme->GetHeight().Unit()); in CreateComponentAndSetChildAttr()
H A Ddom_radio_util.cpp66 auto boxComponent = node.GetBoxComponent(); in CreateComponentAndSetChildAttr() local
72 boxComponent->SetWidth(theme->GetWidth().Value(), theme->GetWidth().Unit()); in CreateComponentAndSetChildAttr()
79 boxComponent->SetHeight(theme->GetHeight().Value(), theme->GetHeight().Unit()); in CreateComponentAndSetChildAttr()
81 auto diameter = boxComponent->GetHeightDimension() > boxComponent->GetWidthDimension() in CreateComponentAndSetChildAttr()
82 ? boxComponent->GetWidthDimension() in CreateComponentAndSetChildAttr()
83 : boxComponent->GetHeightDimension(); in CreateComponentAndSetChildAttr()
84 if (!boxComponent->GetBackDecoration()) { in CreateComponentAndSetChildAttr()
87 boxComponent->SetBackDecoration(backDecoration); in CreateComponentAndSetChildAttr()
121 void DOMRadioUtil::SetChildStyle(const RefPtr<BoxComponent>& boxComponent, in SetChildStyle() argument
[all...]
H A Ddom_textfield_util.h34 static RefPtr<TextFieldComponent> CreateComponentAndSetChildAttr(const RefPtr<BoxComponent>& boxComponent,
37 static void SetChildAttr(const RefPtr<TextFieldComponent>& component, const RefPtr<BoxComponent>& boxComponent,
40 static void SetChildStyle(const RefPtr<BoxComponent>& boxComponent, const RefPtr<TextFieldComponent>& component,
43 static void UpdateDecorationStyle(const RefPtr<BoxComponent>& boxComponent,
49 static void InitDefaultValue(const RefPtr<BoxComponent>& boxComponent,
H A Ddom_textfield_util.cpp34 void DOMTextFieldUtil::InitDefaultValue(const RefPtr<BoxComponent>& boxComponent, in InitDefaultValue() argument
37 if (!boxComponent || !component || !theme) { in InitDefaultValue()
80 const auto& boxDecoration = boxComponent->GetBackDecoration(); in InitDefaultValue()
90 boxComponent->SetPadding(theme->GetPadding()); in InitDefaultValue()
114 RefPtr<TextFieldComponent> DOMTextFieldUtil::CreateComponentAndSetChildAttr(const RefPtr<BoxComponent>& boxComponent, in CreateComponentAndSetChildAttr() argument
122 InitDefaultValue(boxComponent, component, theme); in CreateComponentAndSetChildAttr()
124 SetChildAttr(component, boxComponent, type, attrs); in CreateComponentAndSetChildAttr()
134 const RefPtr<BoxComponent>& boxComponent, const std::string& type, const std::map<std::string, std::string>& attrs) in SetChildAttr()
192 if (boxComponent) { in SetChildAttr()
193 boxComponent in SetChildAttr()
133 SetChildAttr(const RefPtr<TextFieldComponent>& component, const RefPtr<BoxComponent>& boxComponent, const std::string& type, const std::map<std::string, std::string>& attrs) SetChildAttr() argument
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
328 UpdateDecorationStyle(const RefPtr<BoxComponent>& boxComponent, const RefPtr<TextFieldComponent>& component, const Border& boxBorder, bool hasBoxRadius) UpdateDecorationStyle() argument
[all...]
H A Ddom_button_util.cpp71 auto boxComponent = node.GetBoxComponent(); in CreateComponentAndSetChildAttr() local
72 if (boxComponent) { in CreateComponentAndSetChildAttr()
73 if (!boxComponent->GetBackDecoration()) { in CreateComponentAndSetChildAttr()
76 boxComponent->SetBackDecoration(backDecoration); in CreateComponentAndSetChildAttr()
84 boxComponent->SetHeight(theme->GetHeight()); in CreateComponentAndSetChildAttr()
86 component->SetHeight(boxComponent->GetHeightDimension()); in CreateComponentAndSetChildAttr()
88 if (GreatNotEqual(boxComponent->GetWidthDimension().Value(), 0.0)) { in CreateComponentAndSetChildAttr()
90 component->SetWidth(boxComponent->GetWidthDimension()); in CreateComponentAndSetChildAttr()
134 void DOMButtonUtil::SetChildStyle(const RefPtr<BoxComponent>& boxComponent, const RefPtr<ButtonComponent>& component, in SetChildStyle() argument
137 if (!boxComponent || !componen in SetChildStyle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/
H A Dsvg_svg.cpp87 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender() local
88 boxComponent->SetWidth(layoutParam.GetMaxSize().Width()); in CreateRender()
89 boxComponent->SetHeight(layoutParam.GetMaxSize().Height()); in CreateRender()
90 boxComponent->SetOverflow(Overflow::FORCE_CLIP); in CreateRender()
91 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
93 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_path.cpp70 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender() local
71 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
73 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_ellipse.cpp67 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender() local
68 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
70 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_circle.cpp66 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender() local
67 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
69 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_rect.cpp66 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender() local
67 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
69 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_use.cpp87 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender() local
88 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
90 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_g.cpp78 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender() local
79 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
81 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_line.cpp64 auto boxComponent = CreateBoxComponent(layoutParam, component_->GetDeclaration()->GetClipPathHref()); in CreateRender() local
65 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
67 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_polygon.cpp72 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender() local
73 auto renderBox = boxComponent->CreateRenderNode(); in CreateRender()
75 renderBox->Update(boxComponent); in CreateRender()
H A Dsvg_node.cpp99 auto boxComponent = AceType::MakeRefPtr<BoxComponent>(); in CreateBoxComponent() local
107 boxComponent->SetClipPath(clipPath); in CreateBoxComponent()
110 return boxComponent; in CreateBoxComponent()
/foundation/arkui/ace_engine/frameworks/core/components/box/
H A Dbox_element.cpp25 const RefPtr<BoxComponent> boxComponent = AceType::DynamicCast<BoxComponent>(component); in PerformBuild() local
26 if (!boxComponent) { in PerformBuild()
29 std::string id = boxComponent->GetGeometryTransitionId(); in PerformBuild()
/foundation/arkui/ace_engine/frameworks/core/components/image/
H A Dimage_animator_element.cpp103 auto boxComponent = DynamicCast<BoxComponent>(childComponent_); in PerformBuild() local
104 UpdatePreLoadImages(boxComponent); in PerformBuild()
161 auto boxComponent = AceType::MakeRefPtr<BoxComponent>(); in BuildChild() local
162 boxComponent->SetFlex(BoxFlex::FLEX_XY); in BuildChild()
163 boxComponent->SetAlignment(Alignment::TOP_LEFT); in BuildChild()
178 boxComponent->SetChild(imageComponent); in BuildChild()
179 return boxComponent; in BuildChild()
185 LOGE("boxComponent is null."); in UpdatePreLoadImages()
243 auto boxComponent = DynamicCast<BoxComponent>(childComponent_); in PlayImageAnimator() local
244 if (!boxComponent) { in PlayImageAnimator()
275 UpdateChild(GetFirstChild(), boxComponent); PlayImageAnimator() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_textarea.cpp44 auto boxComponent = GetBoxComponent(); in InitializeStyle() local
47 if (!boxComponent || !component || !theme) { in InitializeStyle()
83 if (boxComponent->GetBackDecoration()) { in InitializeStyle()
84 backDecoration->SetImage(boxComponent->GetBackDecoration()->GetImage()); in InitializeStyle()
85 backDecoration->SetGradient(boxComponent->GetBackDecoration()->GetGradient()); in InitializeStyle()
91 boxComponent->SetBackDecoration(backDecoration); in InitializeStyle()
92 boxComponent->SetPadding(theme->GetPadding()); in InitializeStyle()
323 RefPtr<BoxComponent> boxComponent = GetBoxComponent(); in PrepareSpecializedComponent() local
324 if (!boxComponent || !textAreaChild_) { in PrepareSpecializedComponent()
333 boxComponent in PrepareSpecializedComponent()
347 RefPtr<BoxComponent> boxComponent = GetBoxComponent(); UpdateDecoration() local
[all...]
H A Ddom_input.cpp309 [](const RefPtr<BoxComponent>& boxComponent, const RefPtr<Component>& component, in UpdateSpecializedComponentStyle()
312 boxComponent, AceType::DynamicCast<ButtonComponent>(component), styles, input); in UpdateSpecializedComponentStyle()
315 [](const RefPtr<BoxComponent>& boxComponent, const RefPtr<Component>& component, in UpdateSpecializedComponentStyle()
317 input.HandlePadding(component, boxComponent, styles); in UpdateSpecializedComponentStyle()
320 [](const RefPtr<BoxComponent>& boxComponent, const RefPtr<Component>& component, in UpdateSpecializedComponentStyle()
323 boxComponent, AceType::DynamicCast<TextFieldComponent>(component), styles, boxBorder, input); in UpdateSpecializedComponentStyle()
326 [](const RefPtr<BoxComponent>& boxComponent, const RefPtr<Component>& component, in UpdateSpecializedComponentStyle()
329 boxComponent, AceType::DynamicCast<TextFieldComponent>(component), styles, boxBorder, input); in UpdateSpecializedComponentStyle()
332 [](const RefPtr<BoxComponent>& boxComponent, const RefPtr<Component>& component, in UpdateSpecializedComponentStyle()
335 boxComponent, AceTyp in UpdateSpecializedComponentStyle()
584 HandlePadding(RefPtr<Component> component, RefPtr<BoxComponent> boxComponent, const std::map<std::string, std::string>& styles) HandlePadding() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/
H A Dview_stack_processor.cpp190 RefPtr<BoxComponent> boxComponent = AceType::MakeRefPtr<OHOS::Ace::BoxComponent>(); in GetBoxComponent() local
192 wrappingComponentsMap.emplace("box", boxComponent); in GetBoxComponent()
194 return boxComponent; in GetBoxComponent()
199 auto boxComponent = AceType::DynamicCast<BoxComponent>(wrappingComponentsMap["box"]); in GetBoxComponent() local
200 if (boxComponent) { in GetBoxComponent()
201 return boxComponent; in GetBoxComponent()
205 RefPtr<BoxComponent> boxComponent = AceType::MakeRefPtr<OHOS::Ace::BoxComponent>(); in GetBoxComponent() local
206 boxComponent->SetEnableDebugBoundary(true); in GetBoxComponent()
207 wrappingComponentsMap.emplace("box", boxComponent); in GetBoxComponent()
208 return boxComponent; in GetBoxComponent()
609 auto boxComponent = AceType::DynamicCast<BoxComponent>(wrappingComponentsMap["box"]); WrapComponents() local
[all...]

Completed in 12 milliseconds

12