/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_layout/ |
H A D | row_model_ng.cpp | 23 void RowModelNG::Create(const std::optional<Dimension>& space, AlignDeclaration*, const std::string& tag) in Create() argument 33 CHECK_NULL_VOID(space); in Create() 34 if (GreatOrEqual(space->Value(), 0.0)) { in Create() 35 ACE_UPDATE_LAYOUT_PROPERTY(LinearLayoutProperty, Space, space.value()); in Create() 39 void RowModelNG::SetSpace(FrameNode* frameNode, const std::optional<Dimension>& space) in SetSpace() argument 41 CHECK_NULL_VOID(space); in SetSpace() 42 if (GreatOrEqual(space->Value(), 0.0)) { in SetSpace() 43 ACE_UPDATE_NODE_LAYOUT_PROPERTY(LinearLayoutProperty, Space, space.value(), frameNode); in SetSpace() 45 LOGE("Column: the space value is illegal due to space i in SetSpace() [all...] |
H A D | column_model_ng.cpp | 23 void ColumnModelNG::Create(const std::optional<Dimension>& space, AlignDeclaration*, const std::string&) in Create() argument 33 CHECK_NULL_VOID(space); in Create() 34 if (GreatOrEqual(space->Value(), 0.0)) { in Create() 35 ACE_UPDATE_LAYOUT_PROPERTY(LinearLayoutProperty, Space, space.value()); in Create() 39 void ColumnModelNG::SetSpace(FrameNode* frameNode, const std::optional<Dimension>& space) in SetSpace() argument 41 CHECK_NULL_VOID(space); in SetSpace() 42 if (GreatOrEqual(space->Value(), 0.0)) { in SetSpace() 43 ACE_UPDATE_NODE_LAYOUT_PROPERTY(LinearLayoutProperty, Space, space.value(), frameNode); in SetSpace() 45 LOGE("Column: the space value is illegal due to space i in SetSpace() [all...] |
H A D | linear_layout_utils.cpp | 134 linearMeasureProperty.space = ConvertToPx(spaceDimension, layoutConstraint->scaleProperty).value_or(0); in Measure() 150 linearMeasureProperty.space * (static_cast<float>(linearMeasureProperty.relativeNodes.size()) - 1); in Measure() 156 linearMeasureProperty.space * static_cast<float>(linearMeasureProperty.weightNodes.size()); in Measure() 167 linearMeasureProperty.allocatedSize += linearMeasureProperty.space; in Measure() 195 auto space = ConvertToPx(spaceDimension, layoutConstraint->scaleProperty).value_or(0); in Layout() local 218 yPos += space; in Layout() 223 space }; in Layout() 235 xPos += space; in Layout() 239 LayoutConditions layoutConditions { layoutWrapper, isVertical, crossAlign, mainAlign, size, paddingOffset, space }; in Layout() 259 (layoutConditions.size.Height() - frameHeightSum - (childNum - 1) * layoutConditions.space) / in LayoutCondition() [all...] |
H A D | row_model_ng.h | 27 void Create(const std::optional<Dimension>& space, AlignDeclaration*, const std::string& tag) override; 32 static void SetSpace(FrameNode* frameNode, const std::optional<Dimension>& space);
|
H A D | column_model_ng.h | 27 void Create(const std::optional<Dimension>& space, AlignDeclaration*, const std::string& tag) override; 32 static void SetSpace(FrameNode* frameNode, const std::optional<Dimension>& space);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/ |
H A D | flex_model_ng.cpp | 284 void FlexModelNG::SetMainSpace(const std::optional<Dimension>& space) in SetMainSpace() argument 286 CHECK_NULL_VOID(space); in SetMainSpace() 287 if (GreatOrEqual(space->Value(), 0.0)) { in SetMainSpace() 288 ACE_UPDATE_LAYOUT_PROPERTY(FlexLayoutProperty, Space, space.value()); in SetMainSpace() 292 void FlexModelNG::SetCrossSpace(const std::optional<Dimension>& space) in SetCrossSpace() argument 294 CHECK_NULL_VOID(space); in SetCrossSpace() 295 if (GreatOrEqual(space->Value(), 0.0)) { in SetCrossSpace() 296 ACE_UPDATE_LAYOUT_PROPERTY(FlexLayoutProperty, CrossSpace, space.value()); in SetCrossSpace() 300 void FlexModelNG::SetMainSpace(FrameNode* frameNode, const std::optional<Dimension>& space) in SetMainSpace() argument 302 CHECK_NULL_VOID(space); in SetMainSpace() 308 SetCrossSpace(FrameNode* frameNode, const std::optional<Dimension>& space) SetCrossSpace() argument [all...] |
H A D | flex_model_ng.h | 41 void SetMainSpace(const std::optional<Dimension>& space) override; 42 void SetCrossSpace(const std::optional<Dimension>& space) override; 67 static void SetMainSpace(FrameNode* frameNode, const std::optional<Dimension>& space); 68 static void SetCrossSpace(FrameNode* frameNode, const std::optional<Dimension>& space);
|
H A D | flex_model.h | 74 virtual void SetMainSpace(const std::optional<Dimension>& space) = 0; 75 virtual void SetCrossSpace(const std::optional<Dimension>& space) = 0;
|
/foundation/arkui/ace_engine/frameworks/base/log/ |
H A D | dump_log.cpp | 31 std::string space = " "; in Print() local 33 ostream_->write(space.c_str(), space.length()); in Print() 35 ostream_->write(space.c_str(), space.length()); in Print() 43 ostream_->write(space.c_str(), space.length()); in Print() 66 std::string space = " "; in Print() local 68 ostream_->write(space.c_str(), space in Print() [all...] |
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | chain_animation.cpp | 29 int32_t index, float space, float maxSpace, float minSpace, RefPtr<SpringProperty> springProperty) in ChainAnimationNode() 30 : springProperty_(std::move(springProperty)), index_(index), space_(space), maxSpace_(maxSpace), in ChainAnimationNode() 31 minSpace_(minSpace), curPosition_(space) in ChainAnimationNode() 33 spring_ = AceType::MakeRefPtr<SpringMotion>(space, space, 0.0, springProperty_); in ChainAnimationNode() 69 ChainAnimation::ChainAnimation(float space, float maxSpace, float minSpace, RefPtr<SpringProperty> springProperty) in ChainAnimation() argument 70 : springProperty_(springProperty), space_(space), maxSpace_(maxSpace), minSpace_(minSpace) in ChainAnimation() 73 nodes_.emplace(i, AceType::MakeRefPtr<ChainAnimationNode>(i, space, maxSpace, minSpace, springProperty)); in ChainAnimation() 74 nodes_.emplace(-i, AceType::MakeRefPtr<ChainAnimationNode>(-i, space, maxSpace, minSpace, springProperty)); in ChainAnimation() 203 void ChainAnimation::SetSpace(float space, floa argument 28 ChainAnimationNode( int32_t index, float space, float maxSpace, float minSpace, RefPtr<SpringProperty> springProperty) ChainAnimationNode() argument [all...] |
H A D | chain_animation.h | 39 int32_t index, float space, float maxSpace, float minSpace, RefPtr<SpringProperty> springProperty); 48 void SetSpace(float space, float maxSpace, float minSpace) in SetSpace() argument 50 space_ = space; in SetSpace() 71 ChainAnimation(float space, float maxSpace, float minSpace, RefPtr<SpringProperty> springProperty); 104 void SetSpace(float space, float maxSpace, float minSpace);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | row_model_impl.cpp | 25 void RowModelImpl::Create(const std::optional<Dimension>& space, AlignDeclaration* declaration, const std::string& tag) in Create() argument 33 if (space.has_value() && space->Value() >= 0.0) { in Create() 34 rowComponent->SetSpace(space.value()); in Create()
|
H A D | column_model_impl.cpp | 28 const std::optional<Dimension>& space, AlignDeclaration* declaration, const std::string& tag) in Create() 36 if (space.has_value()) { in Create() 37 columnComponent->SetSpace(space.value()); in Create() 27 Create( const std::optional<Dimension>& space, AlignDeclaration* declaration, const std::string& tag) Create() argument
|
H A D | flex_model_impl.h | 49 void SetMainSpace(const std::optional<Dimension>& space) override {}; 50 void SetCrossSpace(const std::optional<Dimension>& space) override {};
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_row_ffi.cpp | 44 void FfiOHOSAceFrameworkRowCreateWithSpace(double space, int32_t unit) in FfiOHOSAceFrameworkRowCreateWithSpace() argument 46 Dimension spaceDime(space, static_cast<DimensionUnit>(unit)); in FfiOHOSAceFrameworkRowCreateWithSpace() 47 Dimension value(space, static_cast<DimensionUnit>(unit)); in FfiOHOSAceFrameworkRowCreateWithSpace()
|
/foundation/arkui/ace_engine/frameworks/core/components/select/ |
H A D | select_component.cpp | 69 RefPtr<BoxComponent> space = AceType::MakeRefPtr<BoxComponent>(); in Initialize() local 70 space->SetDeliverMinToChild(false); in Initialize() 71 space->SetAlignment(Alignment::CENTER); in Initialize() 72 // the space between text and triangle is 8dp from doc. in Initialize() 78 space->SetPadding(spaceEdge); in Initialize() 79 space->SetChild(icon); in Initialize() 124 row->AppendChild(space); in Initialize() 128 row->AppendChild(space); in Initialize()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_font_test.cpp | 454 * @tc.desc: test for space character of glyph ID. 463 const char* space = " "; in HWTEST_F() local 464 uint32_t count = OH_Drawing_FontCountText(font, space, strlen(space), OH_Drawing_TextEncoding::TEXT_ENCODING_UTF8); in HWTEST_F() 465 EXPECT_EQ(strlen(space), count); in HWTEST_F() 467 OH_Drawing_FontTextToGlyphs(font, space, strlen(space), OH_Drawing_TextEncoding::TEXT_ENCODING_UTF8, in HWTEST_F() 566 * @tc.desc: test for space character of glyph ID. 575 const char* space = " "; in HWTEST_F() local 576 uint32_t count = OH_Drawing_FontCountText(font, space, strle in HWTEST_F() 609 const char* space = " "; HWTEST_F() local 697 const char* space = " "; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | row_modifier.cpp | 70 const auto space = CalcDimension(value, static_cast<OHOS::Ace::DimensionUnit>(unit)); in SetRowSpace() local 71 RowModelNG::SetSpace(frameNode, space); in SetRowSpace() 78 const auto space = CalcDimension(0.0, DimensionUnit::PX); in ResetRowSpace() local 79 RowModelNG::SetSpace(frameNode, space); in ResetRowSpace()
|
H A D | column_modifier.cpp | 78 const auto space = CalcDimension(value, static_cast<OHOS::Ace::DimensionUnit>(unit)); in SetColumnSpace() local 79 ColumnModelNG::SetSpace(frameNode, space); in SetColumnSpace() 86 const auto space = CalcDimension(0.0, DimensionUnit::PX); in ResetColumnSpace() local 87 ColumnModelNG::SetSpace(frameNode, space); in ResetColumnSpace()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
H A D | skia_paint_test.cpp | 89 auto space = std::make_shared<ColorSpace>(); in HWTEST_F() local 90 brush.SetColor(color, space); in HWTEST_F() 143 auto space = std::make_shared<ColorSpace>(); in HWTEST_F() local 144 pen.SetColor(color, space); in HWTEST_F() 165 auto space = std::make_shared<ColorSpace>(); in HWTEST_F() local 167 paint.SetColor(color, space); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_position_map.h | 115 void UpdatePosMapStart(float delta, float& listCurrentPos, float space, in UpdatePosMapStart() argument 124 float prevPos = it->second.mainPos + it->second.mainSize + space; in UpdatePosMapStart() 138 void UpdatePosMapEnd(int32_t prevEndIndex, float space, bool groupAtEnd) in UpdatePosMapEnd() argument 144 float prevPos = it->second.mainPos + it->second.mainSize + space; in UpdatePosMapEnd() 289 "lanes:%{public}d, space:%{public}f, totalItemCount:%{public}d", in PosMapRecalculate() 324 void UpdatePosMap(LayoutWrapper* layoutWrapper, int32_t lanes, float space, in UpdatePosMap() argument 336 if (!NearEqual(space, space_)) { in UpdatePosMap() 338 space_ = space; in UpdatePosMap() 353 void UpdateGroupPosMap(int32_t totalCount, int32_t lanes, float space, in UpdateGroupPosMap() argument 366 if (!NearEqual(space, space in UpdateGroupPosMap() [all...] |
H A D | list_item_group_model_ng.h | 33 void SetSpace(const Dimension& space) override; 51 static void SetSpace(FrameNode* frameNode, const Dimension& space);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_column_bridge.cpp | 99 CalcDimension space; in SetSpace() local 100 ArkTSUtils::ParseJsDimensionVp(vm, secondArg, space, false); in SetSpace() 101 if (LessNotEqual(space.Value(), 0.0)) { in SetSpace() 106 nativeNode, space.Value(), static_cast<int>(space.Unit())); in SetSpace()
|
H A D | arkts_native_row_bridge.cpp | 96 CalcDimension space; in SetSpace() local 97 ArkTSUtils::ParseJsDimensionVp(vm, secondArg, space, false); in SetSpace() 98 if (LessNotEqual(space.Value(), 0.0)) { in SetSpace() 102 GetArkUINodeModifiers()->getRowModifier()->setRowSpace(nativeNode, space.Value(), static_cast<int>(space.Unit())); in SetSpace()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_svg_painter.cpp | 515 double space = 0.0; in UpdateText() local 547 x = x + width + space; in UpdateText() 565 double space = 0.0; in UpdateText() local 601 x = x + width + space; in UpdateText() 621 double space = 0.0; in UpdateTextPath() local 646 if (length < offset + width + space) { in UpdateTextPath() 650 offset += (width + space); in UpdateTextPath() 672 offset = offset + width + space; in UpdateTextPath() 690 double space = 0.0; in UpdateTextPath() local 714 if (length < offset + width + space) { in UpdateTextPath() 761 double space = 0.0; MeasureTextBounds() local 791 double space = 0.0; MeasureTextBounds() local 823 double space = 0.0; MeasureTextPathBounds() local 859 double space = 0.0; MeasureTextPathBounds() local [all...] |