Home
last modified time | relevance | path

Searched refs:bottom (Results 1 - 25 of 439) sorted by relevance

12345678910>>...18

/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dedge.h30 // Types of padding and margin. Contains four directions: left, top, right and bottom.
38 Edge(double left, double top, double right, double bottom, DimensionUnit unit = DimensionUnit::PX) in Edge() argument
40 bottom_(Dimension(bottom, unit)) {} in Edge()
41 Edge(const std::string& left, const std::string& top, const std::string& right, const std::string& bottom, in Edge() argument
43 right_(CalcDimension(right, unit)), bottom_(CalcDimension(bottom, unit)) {} in Edge()
44 Edge(const CalcDimension& left, const CalcDimension& top, const CalcDimension& right, const CalcDimension& bottom) in Edge() argument
45 : left_(left), top_(top), right_(right), bottom_(bottom) {} in Edge()
46 Edge(const Dimension& left, const Dimension& top, const Dimension& right, const Dimension& bottom, in Edge() argument
49 right_(AnimatableDimension(right, option)), bottom_(AnimatableDimension(bottom, option)) {} in Edge()
50 Edge(const CalcDimension& left, const CalcDimension& top, const CalcDimension& right, const CalcDimension& bottom, in Edge() argument
140 SetBottom(const AnimatableDimension& bottom) SetBottom() argument
145 SetBottom(const CalcDimension& bottom) SetBottom() argument
150 SetBottom(const Dimension& bottom) SetBottom() argument
203 EdgePx(double left, double top, double right, double bottom) EdgePx() argument
204 EdgePx(const std::string& left, const std::string& top, const std::string& right, const std::string& bottom) EdgePx() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dmeasure_property.h374 std::optional<T> bottom; member
383 bottom = padding; in SetEdges()
391 bottom = bottomValue; in SetEdges()
396 return (left == value.left) && (right == value.right) && (top == value.top) && (bottom == value.bottom); in operator ==()
415 bottom = value.bottom; in UpdateWithCheck()
436 if (value.bottom.has_value() && bottom != value.bottom) { in UpdateLocalizedPadding()
501 std::optional<float> bottom; global() member
[all...]
H A Dmeasure_utils.cpp114 auto bottom = ConvertToPx(padding.bottom, scaleProperty, percentReference); in ConvertToPaddingPropertyF() local
127 if (bottom.has_value()) { in ConvertToPaddingPropertyF()
128 bottom = floor(bottom.value()); in ConvertToPaddingPropertyF()
141 if (bottom.has_value()) { in ConvertToPaddingPropertyF()
142 bottom = std::max(bottom.value(), 0.0f); in ConvertToPaddingPropertyF()
145 return PaddingPropertyF { left, right, top, bottom }; in ConvertToPaddingPropertyF()
175 auto bottom in ConvertToBorderWidthPropertyF() local
200 auto bottom = ConvertToPx(padding.bottom, scaleProperty, selfSize.Height()); UpdatePaddingPropertyF() local
502 ConvertToCalcPaddingProperty(const std::optional<CalcDimension>& top, const std::optional<CalcDimension>& bottom, const std::optional<CalcDimension>& left, const std::optional<CalcDimension>& right) ConvertToCalcPaddingProperty() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dpath_layout_algorithm.cpp52 auto bottom = skRect.bottom(); in MeasureContent() local
59 auto bottom = rect.GetBottom(); in MeasureContent() local
61 if (NearZero(right) && NearZero(bottom)) { in MeasureContent()
68 if (NearZero(bottom)) { in MeasureContent()
69 bottom += lineWidth; in MeasureContent()
71 return SizeF(right, bottom); in MeasureContent()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkrect_fuzzer/
H A Drect_fuzzer.cpp42 float bottom = GetObject<float>(); in RectFuzzTest000() local
43 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest000()
50 OH_Drawing_RectSetBottom(nullptr, bottom); in RectFuzzTest000()
51 OH_Drawing_RectSetBottom(rect, bottom); in RectFuzzTest000()
83 float bottom = GetObject<float>(); in RectFuzzTest001() local
84 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest001()
85 OH_Drawing_Rect *rect1 = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest001()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/
H A Dtest_common.h63 float bottom; member
64 bool Contains(float x, float y) const { return x >= left && x < right && y >= top && y < bottom; } in Contains()
66 float Height(){ return (bottom - top); } in Height()
68 float CenterY(){ return (bottom - top) / 2; } // 2 for mid in CenterY()
74 float b = bottom - dy; in Inset()
81 bottom = b; in Inset()
89 bottom += dy; in Offset()
96 bottom = y + height; in SetXYWH()
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dposition_param.h38 std::pair<AnimatableDimension, bool> bottom = { AnimatableDimension(0.0, DimensionUnit::PX), false }; member
46 std::optional<Dimension> bottom; member
62 void SetBottom(const CalcDimension& bottom) in SetBottom()
64 this->bottom = bottom; in SetBottom()
74 return ((this->top == rhs.top) && (this->left == rhs.left) && (this->bottom == rhs.bottom) && in operator ==()
84 str.append("bottom: [").append(bottom.has_value() ? bottom in ToString()
[all...]
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
H A Drender_component.h126 virtual void SetBottom(const Dimension& bottom) in SetBottom() argument
128 positionParam_.bottom.first = bottom; in SetBottom()
129 positionParam_.bottom.second = true; in SetBottom()
132 virtual void SetBottom(const AnimatableDimension& bottom) in SetBottom() argument
134 positionParam_.bottom.first = AnimatableDimension(bottom); in SetBottom()
135 positionParam_.bottom.second = true; in SetBottom()
155 positionParam_.bottom.second = hasBottom; in SetHasBottom()
175 return positionParam_.bottom in GetBottom()
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/include/mission/
H A Dsnapshot.h67 Rect(int32_t left, int32_t top, int32_t right, int32_t bottom) in Rect()
72 this->bottom = bottom; in Rect()
78 !parcel.WriteInt32(right) || !parcel.WriteInt32(bottom)) {
89 int32_t bottom = parcel.ReadInt32(); in Unmarshalling() local
90 auto rectPtr = new Rect(left, top, right, bottom); in Unmarshalling()
97 int32_t bottom = 0; member
/foundation/arkui/ui_lite/frameworks/layout/
H A Dflex_layout.cpp104 int16_t bottom; in CalValidLength() local
116 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in CalValidLength()
117 totalValidLength += (child->GetRelativeRect().GetHeight() + top + bottom); in CalValidLength()
156 int16_t bottom; in GetRowMaxHeight() local
169 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in GetRowMaxHeight()
177 height = MATH_MAX(height, child->GetRelativeRect().GetHeight() + top + bottom); in GetRowMaxHeight()
231 int16_t bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in GetCrossAxisPosY() local
242 posY = GetHeight() - child->GetRelativeRect().GetHeight() - bottom - offset; in GetCrossAxisPosY()
251 posY = (GetHeight() - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top + offset; // 2: half in GetCrossAxisPosY()
320 int16_t bottom; in CalColumnCount() local
345 int16_t bottom; GetColumnMaxWidth() local
378 int16_t bottom; GetColumnsHeight() local
476 int16_t bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); LayoutVertical() local
[all...]
H A Dgrid_layout.cpp55 int16_t bottom; in LayoutHorizontal() local
70 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in LayoutHorizontal()
74 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutHorizontal()
89 int16_t bottom; in LayoutVertical() local
104 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in LayoutVertical()
108 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutVertical()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_water_flow_sections.cpp27 std::optional<CalcDimension> bottom; in SetMarginProperty() local
28 JSViewAbstract::ParseMarginOrPaddingCorner(paddingObj, top, bottom, left, right); in SetMarginProperty()
38 if (bottom.has_value()) { in SetMarginProperty()
39 if (bottom.value().Unit() == DimensionUnit::CALC) { in SetMarginProperty()
40 margin.bottom = NG::CalcLength(bottom.value().CalcValue()); in SetMarginProperty()
42 margin.bottom = NG::CalcLength(bottom.value()); in SetMarginProperty()
H A Djs_checkbox.cpp329 if (jsObj->HasProperty("top") || jsObj->HasProperty("bottom") in GetOldPadding()
338 ParseJsDimensionVp(jsObj->GetProperty("bottom"), bottomDimen); in GetOldPadding()
352 padding.bottom = bottomDimen.ConvertToPx(); in GetOldPadding()
365 padding.bottom = length.ConvertToPx(); in GetOldPadding()
379 commonCalcDimension.top.has_value() || commonCalcDimension.bottom.has_value()) { in GetNewPadding()
380 padding = GetPadding(commonCalcDimension.top, commonCalcDimension.bottom, commonCalcDimension.left, in GetNewPadding()
395 const std::optional<CalcDimension>& bottom, const std::optional<CalcDimension>& left, in GetPadding()
425 if (bottom.has_value()) { in GetPadding()
426 if (bottom.value().Unit() == DimensionUnit::CALC) { in GetPadding()
427 padding.bottom in GetPadding()
394 GetPadding(const std::optional<CalcDimension>& top, const std::optional<CalcDimension>& bottom, const std::optional<CalcDimension>& left, const std::optional<CalcDimension>& right) GetPadding() argument
[all...]
H A Djs_checkboxgroup.cpp278 if (jsObj->HasProperty("top") || jsObj->HasProperty("bottom") in GetOldPadding()
287 ParseJsDimensionVp(jsObj->GetProperty("bottom"), bottomDimen); in GetOldPadding()
301 padding.bottom = bottomDimen.ConvertToPx(); in GetOldPadding()
314 padding.bottom = length.ConvertToPx(); in GetOldPadding()
327 commonCalcDimension.top.has_value() || commonCalcDimension.bottom.has_value()) { in GetNewPadding()
328 padding = GetPadding(commonCalcDimension.top, commonCalcDimension.bottom, commonCalcDimension.left, in GetNewPadding()
343 const std::optional<CalcDimension>& bottom, const std::optional<CalcDimension>& left, in GetPadding()
372 if (bottom.has_value()) { in GetPadding()
373 if (bottom.value().Unit() == DimensionUnit::CALC) { in GetPadding()
374 padding.bottom in GetPadding()
342 GetPadding(const std::optional<CalcDimension>& top, const std::optional<CalcDimension>& bottom, const std::optional<CalcDimension>& left, const std::optional<CalcDimension>& right) GetPadding() argument
[all...]
/foundation/window/window_manager/utils/src/
H A Dcutout_info.cpp39 parcel.WriteInt32(waterfallDisplayAreaRects_.bottom.posX_) && in Marshalling()
40 parcel.WriteInt32(waterfallDisplayAreaRects_.bottom.posY_) && in Marshalling()
41 parcel.WriteUint32(waterfallDisplayAreaRects_.bottom.width_) && in Marshalling()
42 parcel.WriteUint32(waterfallDisplayAreaRects_.bottom.height_) && in Marshalling()
112 parcel.ReadInt32(waterfallDisplayAreaRects.bottom.posX_) && in ReadWaterfallDisplayAreaRects()
113 parcel.ReadInt32(waterfallDisplayAreaRects.bottom.posY_) && in ReadWaterfallDisplayAreaRects()
114 parcel.ReadUint32(waterfallDisplayAreaRects.bottom.width_) && in ReadWaterfallDisplayAreaRects()
115 parcel.ReadUint32(waterfallDisplayAreaRects.bottom.height_))) { in ReadWaterfallDisplayAreaRects()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsgpuoverdrawcanvaslistener_fuzzer/
H A Drsgpuoverdrawcanvaslistener_fuzzer.cpp97 float bottom = GetData<float>(); in DoRect() local
98 Drawing::Rect rect(left, right, top, bottom); in DoRect()
112 float bottom = GetData<float>(); in DoDrawRoundRect() local
113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect()
132 float bottom = GetData<float>(); in DoDrawNestedRoundRect() local
133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect()
142 bottom = GetData<float>(); in DoDrawNestedRoundRect()
143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect()
162 float bottom = GetData<float>(); in DoDrawArc() local
163 Drawing::Rect rect(left, right, top, bottom); in DoDrawArc()
181 float bottom = GetData<float>(); DoDrawPie() local
200 float bottom = GetData<float>(); DoDrawOval() local
334 float bottom = GetData<float>(); DoDrawImageRect() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscpuoverdrawcanvaslistener_fuzzer/
H A Drscpuoverdrawcanvaslistener_fuzzer.cpp97 float bottom = GetData<float>(); in DoRect() local
98 Drawing::Rect rect(left, right, top, bottom); in DoRect()
112 float bottom = GetData<float>(); in DoDrawRoundRect() local
113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect()
132 float bottom = GetData<float>(); in DoDrawNestedRoundRect() local
133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect()
142 bottom = GetData<float>(); in DoDrawNestedRoundRect()
143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect()
162 float bottom = GetData<float>(); in DoDrawArc() local
163 Drawing::Rect rect(left, right, top, bottom); in DoDrawArc()
181 float bottom = GetData<float>(); DoDrawPie() local
200 float bottom = GetData<float>(); DoDrawOval() local
347 float bottom = GetData<float>(); DoDrawImageRect() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/positioned/
H A Drender_positioned.cpp85 void RenderPositioned::SetBottom(const Dimension& bottom) in SetBottom() argument
87 if (NearEqual(bottom_.Value(), bottom.Value()) && (bottom_.Unit() == bottom.Unit())) { in SetBottom()
90 bottom_ = bottom; in SetBottom()
/foundation/arkui/ace_engine/frameworks/base/image/
H A Dpixel_map.h71 Dimension bottom; member
82 result.append(", bottom: "); in ToString()
83 result.append(bottom.ToString()); in ToString()
89 return left == slice.left && right == slice.right && top == slice.top && bottom == slice.bottom; in operator ==()
93 return left.IsValid() || right.IsValid() || top.IsValid() || bottom.IsValid(); in Valid()
105 bottom = sliceDimension; in SetResizableBottom()
/foundation/arkui/ace_engine/frameworks/core/components/tween/
H A Dtween_component.h141 void SetBottom(const Dimension& bottom) in SetBottom() argument
143 positionParam_.bottom.first = bottom; in SetBottom()
144 positionParam_.bottom.second = true; in SetBottom()
164 positionParam_.bottom.second = hasBottom; in SetHasBottom()
/foundation/arkui/ace_engine/frameworks/core/components/shape/
H A Drosen_render_shape.cpp64 return Size(skRect.right(), skRect.bottom()); in CalcSize()
102 return Size(skRect.right(), skRect.bottom()); in CreateRect()
181 return Size(skRect.right(), skRect.bottom()); in CreatePolygon()
223 auto bottom = skRect.bottom(); in CreatePath() local
224 if (NearZero(right) && NearZero(bottom)) { in CreatePath()
231 if (NearZero(bottom)) { in CreatePath()
232 bottom = lineWidth.ConvertToPx(); in CreatePath()
234 return Size(right, bottom); in CreatePath()
239 auto bottom in CreatePath()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_utils.h74 swiperPaddingBottom = GET_PADDING_PROPERTY_VALUE_PX(swiperPaddingProperty->bottom); in CalcIndicatrFrameOffSet()
88 auto bottom = indicatorLayoutProperty->GetBottom(); in CalcIndicatrFrameOffSet() local
100 CalcIndicatrOffsetY(top, bottom, swiperPaddingTop, swiperPaddingBottom, in CalcIndicatrFrameOffSet()
168 static float CalcIndicatrOffsetY(const std::optional<Dimension>& top, const std::optional<Dimension>& bottom, in CalcIndicatrOffsetY() argument
177 } else if (bottom.has_value() && GreatOrEqual(bottom.value().Value(), 0)) { in CalcIndicatrOffsetY()
178 auto bottomValue = GetValidEdgeLength(swiperHeight, indicatorHeight, bottom.value()); in CalcIndicatrOffsetY()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_checkbox_group_ffi.cpp100 Dimension bottom(params.bottom, static_cast<DimensionUnit>(params.bottomUnit)); in FfiOHOSAceFrameworkCheckBoxGroupSetPaddings()
106 padding.bottom = NG::CalcLength(bottom); in FfiOHOSAceFrameworkCheckBoxGroupSetPaddings()
H A Dcj_checkbox_ffi.cpp75 Dimension bottom(params.bottom, static_cast<DimensionUnit>(params.bottomUnit)); in FfiOHOSAceFrameworkCheckBoxSetPaddings()
81 padding.bottom = NG::CalcLength(bottom); in FfiOHOSAceFrameworkCheckBoxSetPaddings()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dfilltypes.cpp43 float bottom = 150; // 150 矩阵创建参数 in showPath() local
44 OH_Drawing_Rect* rectAngLe = OH_Drawing_RectCreate(0, 0, right, bottom); // 0, 0, 创建矩阵对象参数 in showPath()
52 // 其中这里平移画布的x=rectAngLe.left + rectAngLe.right.y=rectAngLe.top + rectAngLe.bottom in showPath()
53 OH_Drawing_CanvasTranslate(canvas, right * 0.5, bottom * 0.5); // 0.5 0.5 平移到中点 in showPath()
55 OH_Drawing_CanvasTranslate(canvas, -(right * 0.5), -(bottom * 0.5)); // 0.5 0.5 平移到中点 in showPath()

Completed in 13 milliseconds

12345678910>>...18