Home
last modified time | relevance | path

Searched refs:height_ (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/foundation/ace/ace_engine/frameworks/base/geometry/
Dsize.h33 Size(double width, double height) : width_(width), height_(height) {} in Size()
42 return height_; in Height()
52 height_ = height; in SetHeight()
58 height_ = size.Height(); in SetSize()
68 return NearEqual(height_, INFINITE_SIZE); in IsHeightInfinite()
73 return NearEqual(width_, INFINITE_SIZE) || NearEqual(height_, INFINITE_SIZE); in IsInfinite()
78 return NearEqual(width_, 0.0) || NearEqual(height_, 0.0); in IsEmpty()
83 height_ += height; in AddHeight()
95 height_ -= height; in MinusHeight()
107 return width_ > 0.0 && height_ > 0.0; in IsValid()
[all …]
Drect.h48 height_ = height; in SetRect()
62 height_ *= scale; in ApplyScale()
70 height_ = round(height_ * scale.Height()); in ApplyScaleAndRound()
80 return height_ > 0.0 ? y_ : y_ + height_; in Top()
90 return height_ > 0.0 ? y_ + height_ : y_; in Bottom()
100 return height_; in Height()
106 height_ = size.Height(); in SetSize()
111 return Size(width_, height_); in GetSize()
142 height_ = height; in SetHeight()
148 (point.GetY() < (y_ + height_)); in IsInRegion()
[all …]
Ddimension_rect.h34 : width_(width), height_(height), offset_(offset) in DimensionRect()
37 … DimensionRect(const Dimension& width, const Dimension& height) : width_(width), height_(height) {} in DimensionRect()
46 return height_; in GetHeight()
62 height_ = size.Height(); in SetSize()
73 height_ = height; in SetHeight()
80 height_ = 0.0_vp; in Reset()
86 Dimension height_ = 0.0_vp; variable
Ddimension_size.h34 … DimensionSize(const Dimension& width, const Dimension& height) : width_(width), height_(height) {} in DimensionSize()
43 return height_; in Height()
53 height_ = height; in SetHeight()
59 height_ = size.Height(); in SetSize()
81 if (NearEqual(height_.Value(), INFINITE_SIZE)) { in ToString()
84 ss << height_.ToString(); in ToString()
93 Dimension height_ = 0.0_vp; variable
/foundation/graphic/standard/rosen/modules/2d_graphics/include/utils/
Dsize.h47 scalar height_; variable
50 inline SizeF::SizeF() noexcept : width_(0.0), height_(0.0) {} in SizeF()
52 inline SizeF::SizeF(const SizeF& s) noexcept : width_(s.Width()), height_(s.Height()) {} in SizeF()
54 inline SizeF::SizeF(scalar w, scalar h) noexcept : width_(w), height_(h) {} in SizeF()
58 return width_ == 0 && height_ == 0; in IsZero()
63 return width_ <= 0 || height_ <= 0; in IsEmpty()
73 return height_; in Height()
83 height_ = h; in SetHeight()
88 return s1.width_ == s2.width_ && s1.height_ == s2.height_;
93 return s1.width_ != s2.width_ || s1.height_ != s2.height_;
[all …]
/foundation/ace/ace_engine/frameworks/core/components/qrcode/
Drender_qrcode.cpp50 height_ = NormalizePercentToPx(qrcode_->GetQrcodeHeight(), true); in PerformLayout()
54 height_ = width_; in PerformLayout()
56 width_ = height_; in PerformLayout()
58 if (LessOrEqual(width_, height_)) { in PerformLayout()
59 height_ = width_; in PerformLayout()
61 width_ = height_; in PerformLayout()
71 height_ = 0.0; in PerformLayout()
74 height_ = maxSize.Height(); in PerformLayout()
75 if (LessOrEqual(width_, height_)) { in PerformLayout()
76 height_ = width_; in PerformLayout()
[all …]
/foundation/windowmanager/utils/include/
Dwindow_helper.h85 return (r.posX_ == 0 && r.posY_ == 0 && r.width_ == 0 && r.height_ == 0); in IsEmptyRect()
97 dstRect.height_ = std::max(minVerticalFloatingH, oriDstRect.height_); in GetFixedWindowRectByLimitSize()
100 dstRect.height_ = std::max(minVerticalFloatingW, oriDstRect.height_); in GetFixedWindowRectByLimitSize()
105 …dstRect.height_ = std::min(static_cast<uint32_t>(MAX_FLOATING_SIZE * virtualPixelRatio), dstRect.h… in GetFixedWindowRectByLimitSize()
113 dstRect.posY_ = oriDstRect.posY_ + static_cast<int32_t>(oriDstRect.height_) - in GetFixedWindowRectByLimitSize()
114 static_cast<int32_t>(dstRect.height_); in GetFixedWindowRectByLimitSize()
141 if (oriDstRect.height_ != lastRect.height_) { in GetFixedWindowRectByLimitPosition()
142 dstRect.height_ = lastRect.height_; in GetFixedWindowRectByLimitPosition()
147 static_cast<int32_t>(displayLimitRect.height_ - windowTitleBarH))) { in GetFixedWindowRectByLimitPosition()
148 …dstRect.posY_ = displayLimitRect.posY_ + static_cast<int32_t>(displayLimitRect.height_ - windowTit… in GetFixedWindowRectByLimitPosition()
[all …]
/foundation/windowmanager/wm/test/systemtest/
Dwindow_test_utils.cpp114 uint32_t defaultH = static_cast<uint32_t>(displayRect_.height_ * ratio); in GetDefaultFoatingRect()
118 if (defaultW <= limitDisplayRect_.width_ && defaultH <= limitDisplayRect_.height_) { in GetDefaultFoatingRect()
122 …32_t centerPosY = limitDisplayRect_.posY_ + static_cast<int32_t>(limitDisplayRect_.height_ / half); in GetDefaultFoatingRect()
138 bool vertical = displayRect_.width_ < displayRect_.height_; in GetLimitedDecoRect()
145 std::max(minFloatingH, rect.height_ + winFrameH), in GetLimitedDecoRect()
155 bool vertical = displayRect_.width_ < displayRect_.height_; in CalcLimitedRect()
162 std::max(minFloatingH, rect.height_), in CalcLimitedRect()
171 bool vertical = displayRect_.width_ < displayRect_.height_; in GetFloatingLimitedRect()
179 std::max(minFloatingH, rect.height_), in GetFloatingLimitedRect()
191 if (displayRect_.width_ < displayRect_.height_) { in InitByDisplayRect()
[all …]
Dwindow_move_drag_test.cpp154 startRectExceptFrame.height_ = startPointRect_.height_ - in CalExpectRects()
171 oriRect.height_ -= diffY; in CalExpectRects()
172 …(startPointY_ >= startRectExceptFrame.posY_ + static_cast<int32_t>(startRectExceptFrame.height_)) { in CalExpectRects()
173 oriRect.height_ += diffY; in CalExpectRects()
182 bool isVertical = (utils::displayRect_.width_ < utils::displayRect_.height_) ? true : false; in CalExpectRects()
198 …startPointY_ = startPointRect_.posY_ + static_cast<int32_t>(startPointRect_.height_ * POINT_HOTZON…
236 static_cast<int32_t>(startPointRect_.height_ + hotZone_ * POINT_HOTZONE_RATIO);
240 static_cast<int32_t>(startPointRect_.height_ + hotZone_ * DRAG_HOTZONE_RATIO);
257 …startPointY_ = startPointRect_.posY_ + static_cast<int32_t>(startPointRect_.height_ * POINT_HOTZON…
260 …pointY_ = startPointRect_.posY_ + static_cast<int32_t>(startPointRect_.height_ * DRAG_HOTZONE_RATI…
[all …]
/foundation/windowmanager/wmserver/src/
Dwindow_layout_policy_cascade.cpp75 …primaryLimitRect_.posY_, primaryLimitRect_.width_, primaryLimitRect_.height_, secondaryLimitRect_.… in LayoutWindowNode()
76 secondaryLimitRect_.posY_, secondaryLimitRect_.width_, secondaryLimitRect_.height_); in LayoutWindowNode()
103 splitDockerRect.width_, splitDockerRect.height_); in UpdateWindowNode()
136 …l.posX_ == r.posX_) && (l.posY_ == r.posY_) && (l.width_ == r.width_) && (l.height_ == r.height_)); in IsLayoutChanged()
145 if (rect.width_ < rect.height_) { in LimitMoveBounds()
156 (limitRect_.posY_ + static_cast<int32_t>(limitRect_.height_ - minVerticalSplitH))) { in LimitMoveBounds()
157 … rect.posY_ = limitRect_.posY_ + static_cast<int32_t>(limitRect_.height_ - minVerticalSplitH); in LimitMoveBounds()
161 rect.posX_, rect.posY_, rect.width_, rect.height_); in LimitMoveBounds()
171 uint32_t defaultH = static_cast<uint32_t>(displayRect_.height_ * ratio); in InitCascadeRect()
175 if (defaultW <= limitRect_.width_ && defaultH <= limitRect_.height_) { in InitCascadeRect()
[all …]
Dwindow_layout_policy.cpp105 uint32_t defaultH = static_cast<uint32_t>(displayRect_.height_ * ratio); in UpdateDefaultFoatingRect()
109 if (defaultW <= limitRect_.width_ && defaultH <= limitRect_.height_) { in UpdateDefaultFoatingRect()
113 int32_t centerPosY = limitRect_.posY_ + static_cast<int32_t>(limitRect_.height_ / half); in UpdateDefaultFoatingRect()
128 rect.height_ -= (winTitleBarH + winFrameW); in SetRectForFloating()
136 return displayRect_.width_ < displayRect_.height_; in IsVertical()
171 winRect.height_ = std::min(limitRect.height_, winRect.height_); in UpdateFloatingLayoutRect()
178 … limitRect.posY_ + static_cast<int32_t>(limitRect.height_) - static_cast<int32_t>(winRect.height_), in UpdateFloatingLayoutRect()
192 rect.height_ = winRect.height_ + winTitleBarH + winFrameW; in ComputeDecoratedWindowRect()
203 if (rect.width_ < rect.height_) { in CalcAndSetNodeHotZone()
208 rect.height_ += (hotZone + hotZone); in CalcAndSetNodeHotZone()
[all …]
/foundation/multimedia/media_standard/services/engine/gstreamer/avcodec/format_processor/
Dprocessor_vdec_impl.cpp40 CHECK_AND_RETURN_RET(format.GetIntValue("height", height_) == true, MSERR_INVALID_VAL); in ProcessMandatory()
44 width_, height_, pixelFormat_, frameRate_); in ProcessMandatory()
63 CHECK_AND_RETURN_RET(height_ > 0 && height_ < MAX_HEIGHT, nullptr); in GetInputPortConfig()
69 "width", G_TYPE_INT, width_, "height", G_TYPE_INT, height_, in GetInputPortConfig()
74 "width", G_TYPE_INT, width_, "height", G_TYPE_INT, height_, in GetInputPortConfig()
79 "width", G_TYPE_INT, width_, "height", G_TYPE_INT, height_, in GetInputPortConfig()
84 "width", G_TYPE_INT, width_, "height", G_TYPE_INT, height_, in GetInputPortConfig()
91 "width", G_TYPE_INT, width_, "height", G_TYPE_INT, height_, in GetInputPortConfig()
110 config->bufferSize_ = CompressedBufSize(width_, height_, false, codecName_); in GetInputPortConfig()
119 CHECK_AND_RETURN_RET(height_ > 0 && height_ < MAX_HEIGHT, nullptr); in GetOutputPortConfig()
[all …]
Dprocessor_venc_impl.cpp39 CHECK_AND_RETURN_RET(format.GetIntValue("height", height_) == true, MSERR_INVALID_VAL); in ProcessMandatory()
43 width_, height_, pixelFormat_, frameRate_); in ProcessMandatory()
81 CHECK_AND_RETURN_RET(height_ > 0 && height_ < MAX_HEIGHT, nullptr); in GetInputPortConfig()
85 "height", G_TYPE_INT, height_, in GetInputPortConfig()
99 static_cast<uint32_t>(width_), static_cast<uint32_t>(height_), alignment); in GetInputPortConfig()
107 CHECK_AND_RETURN_RET(height_ > 0 && height_ < MAX_HEIGHT, nullptr); in GetOutputPortConfig()
133 config->bufferSize_ = CompressedBufSize(width_, height_, true, codecName_); in GetOutputPortConfig()
/foundation/windowmanager/dmserver/src/
Dabstract_display.cpp33 height_(info->height_), in AbstractDisplay()
36 if ((width_ >= LARGE_SCREEN_WIDTH) || (height_ >= LARGE_SCREEN_WIDTH)) { in AbstractDisplay()
55 return height_; in GetHeight()
75 height_ = height; in SetHeight()
106 std::swap(width_, height_); in RequestRotation()
141 height_ = static_cast<int32_t>(info->height_); in BindAbstractScreen()
161 displayInfo->height_ = height_; in ConvertToDisplayInfo()
/foundation/graphic/standard/rosen/modules/render_service_base/src/screen_manager/
Drs_screen_mode_info.cpp21 : width_(width),height_(height), refreshRate_(refreshRate), modeId_(id) in RSScreenModeInfo()
26 height_(other.height_), refreshRate_(other.refreshRate_), modeId_(other.modeId_) in RSScreenModeInfo()
33 height_ = other.height_; in operator =()
41 return parcel.WriteInt32(width_) && parcel.WriteInt32(height_) && in Marshalling()
67 return height_; in GetScreenHeight()
92 height_ = height; in SetScreenHeight()
/foundation/distributedhardware/distributedcamera/camera_hdf/hdi_impl/include/utils/
Dconstants.h94 int32_t height_; member
96 DCResolution() : width_(0), height_(0) {} in DCResolution()
98 DCResolution(int32_t width, int32_t height) : width_(width), height_(height) {} in DCResolution()
102 return (this->width_ == others.width_) && (this->height_ == others.height_);
108 (this->width_ == others.width_ && this->height_ < others.height_);
/foundation/ace/ace_engine/frameworks/core/pipeline/base/
Dmeasurable.h60 return height_; in GetHeight()
65 height_ = AnimatableDimension(dimension, option);
70 height_ = AnimatableDimension(dimension, option);
75 height_ = AnimatableDimension(height, unit);
80 height_ = AnimatableDimension(height, unit);
85 height_ = dimension; in SetHeight()
90 AnimatableDimension height_ {-1.0, DimensionUnit::PX};
/foundation/distributedhardware/distributedcamera/services/cameraservice/sourceservice/include/distributedcameramgr/dcamerainterface/
Dicamera_source_data_process.h30 … : width_(width), height_(height), format_(format), dataspace_(dataspace), encodeType_(encodeType), in DCameraStreamConfig()
35 int32_t height_; variable
43 …return this->width_ == others.width_ && this->height_ == others.height_ && this->format_ == others…
50 …->width_ < others.width_) || ((this->width_ == others.width_) && (this->height_ < others.height_));
/foundation/ace/ace_engine/interfaces/innerkits/ace/
Dviewport_config.h27 : width_(width), height_(height), density_(density) in ViewportConfig()
34 height_ = height; in SetSize()
50 return height_; in Height()
86 config.append(" size:(" + std::to_string(width_) + ", " + std::to_string(height_) + ")"); in ToString()
95 int32_t height_ = 0; variable
/foundation/graphic/standard/rosen/modules/render_service_base/include/common/
Drs_rect.h33 T height_; member
63 …eft_ == rect.left_) && (top_ == rect.top_) && (width_ == rect.width_) && (height_ == rect.height_);
68 …eft_ != rect.left_) || (top_ != rect.top_) || (width_ != rect.width_) || (height_ != rect.height_);
93 return top_ + height_; in GetBottom()
101 height_ = bottom - top_; in SetBottom()
113 height_ = 0; in Clear()
117 return width_ <= 0 || height_ <= 0; in IsEmpty()
/foundation/ace/ace_engine/frameworks/core/pipeline/layers/
Dtexture_layer.cpp24 builder.AddTexture(x_ + x, y_ + y, width_, height_, id_, freeze_, opacity_); in AddToScene()
30 height_ = height; in Update()
40 DumpLog::GetInstance().AddDesc("Size:(", width_, ",", height_, ")"); in Dump()
/foundation/graphic/standard/rosen/modules/2d_graphics/src/image/
Dimage.cpp23 Image::Image() noexcept : imageImplPtr(ImplFactory::CreateImageImpl()), width_(0), height_(0) {} in Image()
45 height_ = imageImplPtr->GetHeight(); in GetHeight()
46 return height_; in GetHeight()
/foundation/ace/ace_engine/frameworks/core/components/shape/
Drosen_render_shape.cpp52 if (width_.IsValid() && height_.IsValid()) { in CalcSize()
53 return Size(NormalizePercentToPx(width_, false), NormalizePercentToPx(height_, true)); in CalcSize()
64 …ct::MakeLTRB(0.0f, 0.0f, NormalizePercentToPx(width_, false), NormalizePercentToPx(height_, true)); in CreateRect()
98 double height = NormalizePercentToPx(height_, true); in CreateCircle()
110 auto height = NormalizePercentToPx(height_, true); in CreateEllipse()
129 if (width_.IsValid() && height_.IsValid()) { in CreatePolygon()
130 return Size(NormalizePercentToPx(width_, false), NormalizePercentToPx(height_, true)); in CreatePolygon()
142 if (width_.IsValid() && height_.IsValid()) { in CreatePath()
143 return Size(NormalizePercentToPx(width_, false), NormalizePercentToPx(height_, true)); in CreatePath()
Dflutter_render_shape.cpp52 if (width_.IsValid() && height_.IsValid()) { in CalcSize()
53 return Size(NormalizePercentToPx(width_, false), NormalizePercentToPx(height_, true)); in CalcSize()
64 NormalizePercentToPx(height_, true)); in CreateRect()
102 double height = NormalizePercentToPx(height_, true); in CreateCircle()
114 auto height = NormalizePercentToPx(height_, true); in CreateEllipse()
133 if (width_.IsValid() && height_.IsValid()) { in CreatePolygon()
134 return Size(NormalizePercentToPx(width_, false), NormalizePercentToPx(height_, true)); in CreatePolygon()
146 if (width_.IsValid() && height_.IsValid()) { in CreatePath()
147 return Size(NormalizePercentToPx(width_, false), NormalizePercentToPx(height_, true)); in CreatePath()
/foundation/ace/ace_engine/frameworks/core/components/triangle/
Dtriangle_component.h45 return height_; in GetHeight()
49 height_ = height; in SetHeight()
72 Dimension height_; variable

12345678910>>...13