Home
last modified time | relevance | path

Searched refs:space (Results 1 - 25 of 128) sorted by relevance

123456

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_layout/
H A Drow_model_ng.cpp23 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 Dcolumn_model_ng.cpp23 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 Dlinear_layout_utils.cpp134 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 Drow_model_ng.h27 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 Dcolumn_model_ng.h27 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 Dflex_model_ng.cpp284 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 Dflex_model_ng.h41 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 Dflex_model.h74 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 Ddump_log.cpp31 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 Dchain_animation.cpp29 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 Dchain_animation.h39 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 Drow_model_impl.cpp25 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 Dcolumn_model_impl.cpp28 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 Dflex_model_impl.h49 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 Dcj_row_ffi.cpp44 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 Dselect_component.cpp69 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 Ddrawing_font_test.cpp454 * @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 Drow_modifier.cpp70 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 Dcolumn_modifier.cpp78 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 Dskia_paint_test.cpp89 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 Dlist_position_map.h115 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 Dlist_item_group_model_ng.h33 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 Darkts_native_column_bridge.cpp99 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 Darkts_native_row_bridge.cpp96 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 Drosen_svg_painter.cpp515 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...]

Completed in 12 milliseconds

123456