/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_value_element.cpp | 18 #include "core/components/box/box_element.h" 37 auto box = AceType::DynamicCast<BoxElement>(element); in GetRenderBox() local 38 if (box) { in GetRenderBox() 39 return AceType::DynamicCast<RenderBox>(box->GetRenderNode()); in GetRenderBox() 54 auto box = GetRenderBox(); in HandleSelfFocus() local 55 if (!box) { in HandleSelfFocus() 56 LOGE("box is null."); in HandleSelfFocus() 60 render->HandleFocus(box, focus); in HandleSelfFocus() 71 auto box = GetRenderBox(); in HandleSelfFocus() local 72 if (!box) { in HandleSelfFocus() [all...] |
H A D | render_picker_value.cpp | 55 void RenderPickerValue::HandleFocus(const RefPtr<RenderBox>& box, bool focus) in HandleFocus() argument 57 if (!box) { in HandleFocus() 58 LOGE("box is null"); in HandleFocus() 62 box_ = box; in HandleFocus() 65 auto boxOldColor = box->GetColor(); in HandleFocus() 68 box->SetColor(focusBackColor_, true); in HandleFocus() 72 box->SetColor(normalBackColor_, true); in HandleFocus() 75 HandleAnimation(box); in HandleFocus() 102 void RenderPickerValue::HandleAnimation(const RefPtr<RenderBox>& box) in HandleAnimation() argument 104 if (!box) { in HandleAnimation() [all...] |
H A D | render_picker_value.h | 21 #include "core/components/box/render_box.h" 49 void HandleFocus(const RefPtr<RenderBox>& box) in HandleFocus() argument 51 HandleFocus(box, focus_); in HandleFocus() 54 void HandleFocus(const RefPtr<RenderBox>& box, bool focus); 63 void HandleAnimation(const RefPtr<RenderBox>& box);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/ |
H A D | focus_box.cpp | 36 std::unique_ptr<JsonValue> FocusBox::ToJsonValue(const FocusBox& box) in ToJsonValue() argument 38 if (!box.HasCustomStyle()) { in ToJsonValue() 43 if (box.paintStyle_->strokeColor) { in ToJsonValue() 44 json->Put("strokeColor", box.paintStyle_->strokeColor.value().ToString().c_str()); in ToJsonValue() 46 if (box.paintStyle_->strokeWidth) { in ToJsonValue() 47 json->Put("strokeWidth", box.paintStyle_->strokeWidth.value().ToString().c_str()); in ToJsonValue() 49 if (box.paintStyle_->margin) { in ToJsonValue() 50 json->Put("margin", box.paintStyle_->margin.value().ToString().c_str()); in ToJsonValue()
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | tab_bar_component.cpp | 137 RefPtr<TabBarItemComponent> box = AceType::DynamicCast<TabBarItemComponent>(pos); in BuildItems() local 138 if (!box) { in BuildItems() 139 box = AceType::MakeRefPtr<TabBarItemComponent>(pos); in BuildItems() 143 box->UpdateStyle(activeTextStyle_, activeColor_); in BuildItems() 145 box->UpdateStyle(inactiveTextStyle_, inactiveColor_); in BuildItems() 148 box->SetEnableDebugBoundary(true); in BuildItems() 149 box->SetPadding(labelPadding_); in BuildItems() 151 box->SetFlex(BoxFlex::FLEX_XY); in BuildItems() 154 box->SetFlex(BoxFlex::FLEX_X); in BuildItems() 156 box in BuildItems() 167 RefPtr<TabBarItemComponent> box = item; UpdateItemStyle() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
H A D | render_indexer_item.cpp | 56 RefPtr<RenderBox> box; in PerformLayout() local 58 box = AceType::DynamicCast<RenderBox>(GetChildren().front()); in PerformLayout() 62 box = AceType::DynamicCast<RenderBox>(transform->GetChildren().front()); in PerformLayout() 65 if (!box) { in PerformLayout() 131 RefPtr<RenderBox> box = AceType::DynamicCast<RenderBox>(GetChildren().front()); in OnMouseHoverExitTest() local 132 if (!box) { in OnMouseHoverExitTest() 135 auto currentColor = box->GetColor(); in OnMouseHoverExitTest() 169 RefPtr<RenderBox> box = AceType::DynamicCast<RenderBox>(GetChildren().front()); in CreateColorAnimation() local 170 if (!box) { in CreateColorAnimation() 173 auto weakBox = WeakClaim(RawPtr(box)); in CreateColorAnimation() 199 RefPtr<RenderBox> box = AceType::DynamicCast<RenderBox>(GetChildren().front()); UpdateItemStyle() local [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/ |
H A D | heif_box.cpp | 16 #include "box/heif_box.h" 17 #include "box/basic_box.h" 18 #include "box/item_data_box.h" 19 #include "box/item_info_box.h" 20 #include "box/item_property_box.h" 21 #include "box/item_property_aux_box.h" 22 #include "box/item_property_basic_box.h" 23 #include "box/item_property_color_box.h" 24 #include "box/item_property_hvcc_box.h" 25 #include "box/item_property_transform_bo 166 std::shared_ptr<HeifBox> box; MakeBox() local 205 std::shared_ptr<HeifBox> box = HeifBox::MakeBox(headerBox.GetBoxType()); MakeFromReader() local 242 std::shared_ptr<HeifBox> box; ReadChildren() local 264 SetHeaderInfo(const HeifBox &box) SetHeaderInfo() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/indexer/ |
H A D | render_indexer_item.cpp | 62 RefPtr<RenderBox> box; in PerformLayout() local 64 box = AceType::DynamicCast<RenderBox>(GetChildren().front()); in PerformLayout() 68 box = AceType::DynamicCast<RenderBox>(transform->GetChildren().front()); in PerformLayout() 71 if (!box) { in PerformLayout() 76 if (!box->GetChildren().empty()) { in PerformLayout() 77 text = AceType::DynamicCast<RenderText>(box->GetChildren().front()); in PerformLayout() 110 RefPtr<RenderBox> box = AceType::DynamicCast<RenderBox>(GetChildren().front()); in UpdateItemBackground() local 111 if (box && circleMode_) { in UpdateItemBackground() 112 box->SetColor(color, true); in UpdateItemBackground() 165 RefPtr<RenderBox> box in OnMouseHoverExitTest() local 203 RefPtr<RenderBox> box = AceType::DynamicCast<RenderBox>(GetChildren().front()); CreateColorAnimation() local 248 RefPtr<RenderBox> box = AceType::DynamicCast<RenderBox>(GetChildren().front()); UpdateItemStyle() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/dialog/ |
H A D | alert_dialog_component.cpp | 40 auto box = AceType::MakeRefPtr<BoxComponent>(); in BuildChild() local 41 box->NeedMaterial(true); in BuildChild() 48 box->SetFlex(BoxFlex::FLEX_XY); in BuildChild() 50 box->SetFlex(BoxFlex::FLEX_X); in BuildChild() 52 box->SetBackDecoration(backDecoration); in BuildChild() 55 box->SetHeight(height_.Value(), height_.Unit()); in BuildChild() 59 box->SetWidth(width_.Value(), width_.Unit()); in BuildChild() 63 box->SetMargin(margin_); in BuildChild() 65 auto transition = BuildAnimation(box); in BuildChild() 87 box in BuildChild() 130 auto box = AceType::MakeRefPtr<BoxComponent>(); BuildActions() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | toggle_model_impl.cpp | 68 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in Create() local 69 box->SetDeliverMinToChild(true); in Create() 75 box->SetWidth(checkBoxTheme->GetWidth()); in Create() 76 box->SetHeight(checkBoxTheme->GetHeight()); in Create() 82 box->SetWidth(switchTheme->GetWidth()); in Create() 83 box->SetHeight(switchTheme->GetHeight()); in Create() 89 box->SetHeight(toggleTheme->GetHeight().Value(), toggleTheme->GetHeight().Unit()); in Create() 138 auto box = stack->GetBoxComponent(); in SetWidth() local 143 box->SetWidth(width + padding * 2); in SetWidth() 149 box in SetWidth() 156 auto box = stack->GetBoxComponent(); SetHeight() local 176 auto box = stack->GetBoxComponent(); IsToggle() local 183 auto box = stack->GetBoxComponent(); SetPadding() local [all...] |
H A D | radio_model_impl.cpp | 45 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in Create() local 50 box->SetDeliverMinToChild(true); in Create() 51 box->SetWidth(radioTheme->GetWidth()); in Create() 52 box->SetHeight(radioTheme->GetHeight()); in Create() 75 auto box = stack->GetBoxComponent(); in SetWidth() local 80 box->SetWidth(width + padding * 2); in SetWidth() 87 auto box = stack->GetBoxComponent(); in SetHeight() local 92 box->SetHeight(height + padding * 2); in SetHeight() 100 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in SetPadding() local 107 box in SetPadding() 132 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetResponseRegion() local [all...] |
H A D | checkbox_model_impl.cpp | 55 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in Create() local 60 box->SetWidth(checkBoxTheme->GetWidth()); in Create() 61 box->SetHeight(checkBoxTheme->GetHeight()); in Create() 90 auto box = stack->GetBoxComponent(); in SetWidth() local 95 box->SetWidth(width + padding * 2); in SetWidth() 102 auto box = stack->GetBoxComponent(); in SetHeight() local 108 box->SetHeight(height + padding * 2); in SetHeight() 119 auto box = stack->GetBoxComponent(); in SetPadding() local 126 box->SetHeight(height + Dimension(args.top.value(), DimensionUnit::VP) * 2); in SetPadding() 127 box in SetPadding() [all...] |
H A D | checkboxgroup_model_impl.cpp | 52 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in Create() local 57 box->SetWidth(checkBoxTheme->GetWidth()); in Create() 58 box->SetHeight(checkBoxTheme->GetHeight()); in Create() 88 auto box = stack->GetBoxComponent(); in SetWidth() local 93 box->SetWidth(width + padding * 2); in SetWidth() 100 auto box = stack->GetBoxComponent(); in SetHeight() local 106 box->SetHeight(height + padding * 2); in SetHeight() 117 auto box = stack->GetBoxComponent(); in SetPadding() local 124 box->SetHeight(height + Dimension(args.top.value(), DimensionUnit::VP) * 2); in SetPadding() 125 box in SetPadding() [all...] |
H A D | patternlock_model_impl.cpp | 42 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in Create() local 45 box->SetMinWidth(defaultSideLength); in Create() 46 box->SetMinHeight(defaultSideLength); in Create() 47 box->SetMaxHeight(defaultSideLength); in Create() 48 box->SetMaxWidth(defaultSideLength); in Create() 111 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in SetSideLength() local 112 box->SetMinWidth(sideLength); in SetSideLength() 113 box->SetMinHeight(sideLength); in SetSideLength() 114 box->SetMaxWidth(sideLength); in SetSideLength() 115 box in SetSideLength() [all...] |
H A D | tabs_model_impl.cpp | 38 auto box = AceType::DynamicCast<BoxComponent>(tabBar->GetParent().Upgrade()); in Create() local 39 if (box) { in Create() 40 box->SetHeight(DEFAULT_TAB_BAR_HEIGHT); in Create() 86 auto box = AceType::DynamicCast<BoxComponent>(tabBar->GetParent().Upgrade()); in SetTabBarWidth() local 87 CHECK_NULL_VOID(box); in SetTabBarWidth() 88 box->SetWidth(tabBarWidth); in SetTabBarWidth() 97 auto box = AceType::DynamicCast<BoxComponent>(tabBar->GetParent().Upgrade()); in SetTabBarHeight() local 98 CHECK_NULL_VOID(box); in SetTabBarHeight() 99 box->SetHeight(tabBarHeight); in SetTabBarHeight()
|
H A D | view_abstract_model_impl.cpp | 22 #include "core/components/box/box_component_helper.h" 37 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in GetBackDecoration() local 38 auto decoration = box->GetBackDecoration(); in GetBackDecoration() 41 box->SetBackDecoration(decoration); in GetBackDecoration() 48 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in GetFrontDecoration() local 49 auto decoration = box->GetFrontDecoration(); in GetFrontDecoration() 52 box->SetFrontDecoration(decoration); in GetFrontDecoration() 144 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); in SwapBackBorder() local 145 auto boxDecoration = box->GetBackDecoration(); in SwapBackBorder() 178 auto box in SetWidth() local 204 auto box = stack->GetBoxComponent(); SetHeight() local 220 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetMinWidth() local 228 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetMinHeight() local 236 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetMaxWidth() local 244 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetMaxHeight() local 336 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetPaddings() local 363 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetMargins() local 556 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetLayoutDirection() local 574 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetAlign() local 587 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetUseAlign() local 906 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetClipShape() local 914 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetClipEdge() local 922 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetMask() local 1091 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnMouse() local 1097 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnHover() local 1135 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnRemoteMessage() local 1165 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnDragStart() local 1173 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnDragEnter() local 1179 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnDragEnd() local 1185 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnDragLeave() local 1191 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnDragMove() local 1197 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetOnDrop() local 1232 auto box = ViewStackProcessor::GetInstance()->GetBoxComponent(); SetResponseRegion() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/tabs/ |
H A D | tabs_component.cpp | 46 auto box = AceType::MakeRefPtr<BoxComponent>(); in TabsComponent() local 47 box->SetChild(tabBar_); in TabsComponent() 48 box->SetIgnoreInspector(true); in TabsComponent() 49 box->SetFlex(BoxFlex::FLEX_XY); in TabsComponent() 52 AppendChildDirectly(box); in TabsComponent() 54 AppendChildDirectly(box); in TabsComponent()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/heif_impl/heif_parser/box/ |
H A D | heif_box.h | 50 void SetHeaderInfo(const HeifBox &box); 63 for (auto &box: children_) { in GetChild() 64 if (box->GetBoxType() == boxType) { in GetChild() 65 return std::dynamic_pointer_cast<T>(box); in GetChild() 77 for (auto &box: children_) { in GetChildren() 78 if (box->GetBoxType() == boxType) { in GetChildren() 79 res.push_back(std::dynamic_pointer_cast<T>(box)); in GetChildren() 85 int AddChild(const std::shared_ptr<HeifBox> &box) in AddChild() argument 87 children_.push_back(box); in AddChild()
|
/foundation/arkui/ace_engine/frameworks/core/components/popup/ |
H A D | popup_component_v2.cpp | 74 auto box = CreateBox(popupTheme); in Initialization() local 75 box->SetChild(child); in Initialization() 76 SetChild(box); in Initialization() 114 auto box = AceType::MakeRefPtr<BoxComponent>(); in CreateButtons() local 115 box->SetChild(row); in CreateButtons() 116 return box; in CreateButtons() 172 auto box = AceType::MakeRefPtr<BoxComponent>(); in CreateBox() local 173 auto decoration = box->GetBackDecoration(); in CreateBox() 176 box->SetBackDecoration(decoration); in CreateBox() 182 box in CreateBox() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | render_box.cpp | 16 #include "core/components/box/render_box.h" 19 #include "core/components/box/box_component_helper.h" 73 const RefPtr<BoxComponent> box = AceType::DynamicCast<BoxComponent>(component); in Update() local 74 if (box) { in Update() 75 boxComponent_ = box; in Update() 76 needMaterial_ |= box->GetNeedMaterial(); in Update() 77 inspectorDirection_ = box->GetInspectorDirection(); in Update() 79 UpdateBackDecoration(box->GetBackDecoration()); in Update() 80 needPaintDebugBoundary_ = box->GetEnableDebugBoundary(); in Update() 81 UpdateFrontDecoration(box in Update() [all...] |
H A D | render_box_base.cpp | 16 #include "core/components/box/render_box_base.h" 407 // first. Calculate width and height with the parameter that user set in box component 645 // box layout size = paint size + margin size 697 // third. using layout size of child, calculate layout size of box 720 const RefPtr<BoxBaseComponent> box = AceType::DynamicCast<BoxBaseComponent>(component); 721 if (box) { 722 scrollPage_ = box->GetScrollPage(); 724 displayType_ = box->GetDisplayType(); 725 paddingOrigin_ = box->GetPadding(); 726 marginOrigin_ = box [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/semi_modal/ |
H A D | semi_modal_element.cpp | 44 LOGE("Get background color failed. box element is null"); in GetBackgroundColor() 49 LOGE("Get background color failed. box render is null"); in GetBackgroundColor() 54 LOGE("Get background color failed. box decoration is null"); in GetBackgroundColor() 72 auto box = GetFirstChild(); in UpdateSystemBarHeight() local 73 if (!box) { in UpdateSystemBarHeight() 74 LOGE("Update system bar failed. box is null."); in UpdateSystemBarHeight() 77 auto column = box->GetFirstChild(); in UpdateSystemBarHeight() 139 auto box = AceType::DynamicCast<BoxElement>(GetFirstChild()); in GetOverlayElement() local 140 if (!box) { in GetOverlayElement() 144 auto column = AceType::DynamicCast<ColumnElement>(box in GetOverlayElement() 177 auto box = AceType::DynamicCast<BoxElement>(GetFirstChild()); GetStageElement() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/counter/ |
H A D | counter_component.cpp | 151 const RefPtr<CounterTheme>& counterTheme, const RefPtr<RowComponent>& row, RefPtr<BoxComponent>& box) in BuildContent() 153 box->SetAlignment(Alignment::CENTER); in BuildContent() 155 box->SetChild(GetChildren().front()); in BuildContent() 159 box->SetHeight( in BuildContent() 162 box->SetHeight(Dimension(0.0, DimensionUnit::VP)); in BuildContent() 165 box->SetWidth( in BuildContent() 168 box->SetWidth(Dimension(0.0, DimensionUnit::VP)); in BuildContent() 171 box->SetOverflow(Overflow::FORCE_CLIP); in BuildContent() 174 box->SetBackDecoration(backDecoration); in BuildContent() 175 row->AppendChild(box); in BuildContent() 150 BuildContent( const RefPtr<CounterTheme>& counterTheme, const RefPtr<RowComponent>& row, RefPtr<BoxComponent>& box) BuildContent() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/select/ |
H A D | select_component.cpp | 135 RefPtr<BoxComponent> box = AceType::MakeRefPtr<BoxComponent>(); in Initialize() local 136 box->SetDeliverMinToChild(false); in Initialize() 137 box->SetAlignment(Alignment::CENTER); in Initialize() 138 box->SetBackDecoration(backDecoration); in Initialize() 139 box->SetPadding(innerPadding_); in Initialize() 140 box->SetWidth(width_.Value(), width_.Unit()); in Initialize() 141 box->SetHeight(height_.Value(), height_.Unit()); in Initialize() 142 box->SetChild(AceType::MakeRefPtr<ClipComponent>(row)); in Initialize() 143 boxComponent_ = box; in Initialize() 145 SetChild(box); in Initialize() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/ |
H A D | dialog_modal_component.cpp | 64 auto box = AceType::MakeRefPtr<BoxComponent>(); in BuildInnerChild() local 69 box->SetMargin(Edge(BG_MARGIN)); in BuildInnerChild() 70 box->SetBackDecoration(decoration); in BuildInnerChild() 71 box->SetChild(clip); in BuildInnerChild() 72 auto tween = AceType::MakeRefPtr<TweenComponent>(DIALOG_TWEEN_NAME, box); in BuildInnerChild()
|