Home
last modified time | relevance | path

Searched refs:width_ (Results 1 - 25 of 705) sorted by relevance

12345678910>>...29

/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dsize_t.h35 SizeT(T width, T height) : width_(width), height_(height) {} in SizeT()
40 width_ = mainSize; in SizeT()
43 width_ = crossSize; in SizeT()
50 width_ = 0; in Reset()
56 return width_; in Width()
66 return axis == Axis::HORIZONTAL ? width_ : height_; in MainSize()
71 return axis == Axis::HORIZONTAL ? height_ : width_; in CrossSize()
76 width_ = width; in SetWidth()
86 axis == Axis::HORIZONTAL ? width_ = mainSize : height_ = mainSize; in SetMainSize() local
91 axis == Axis::HORIZONTAL ? height_ = crossSize : width_ in SetCrossSize()
[all...]
H A Drect_t.h59 width_ = 0; in Reset()
67 width_ = width; in SetRect()
81 width_ *= scale; in ApplyScale()
89 width_ = round(width_ * scale); in ApplyScaleAndRound()
95 return GreatNotEqual(width_, 0) ? x_ : x_ + width_; in Left()
105 return GreatNotEqual(width_, 0) ? x_ + width_ : x_; in Right()
125 return width_; in Width()
382 ss << width_; ToString() local
450 T width_ = 0; global() member in OHOS::Ace::NG::RectT
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dsize.h33 Size(double width, double height) : width_(width), height_(height) {} in Size()
52 return width_; in Width()
62 width_ = width; in SetWidth()
72 width_ = size.Width(); in SetSize()
78 return NearEqual(width_, INFINITE_SIZE); in IsWidthInfinite()
88 return NearEqual(width_, INFINITE_SIZE) || NearEqual(height_, INFINITE_SIZE); in IsInfinite()
93 return NearEqual(width_, 0.0) || NearEqual(height_, 0.0); in IsEmpty()
104 width_ += value; in AddWidth()
116 width_ -= width; in MinusWidth()
122 return width_ > 0. in IsValid()
220 ss << width_; ToString() local
234 double width_ = 0.0; global() member in OHOS::Ace::Size
[all...]
H A Drect.h47 width_ = width; in SetRect()
61 width_ *= scale; in ApplyScale()
69 width_ = round(width_ * scale.Width()); in ApplyScaleAndRound()
75 return GreatNotEqual(width_, 0.0) ? x_ : x_ + width_; in Left()
85 return GreatNotEqual(width_, 0.0) ? x_ + width_ : x_; in Right()
95 return width_; in Width()
105 width_ in SetSize()
371 ss << width_; ToString() local
412 double width_ = 0.0; global() member in OHOS::Ace::Rect
[all...]
H A Ddimension_rect.h35 : width_(width), height_(height), offset_(offset) in DimensionRect()
38 DimensionRect(const Dimension& width, const Dimension& height) : width_(width), height_(height) {} in DimensionRect()
42 return width_; in GetWidth()
62 width_ = size.Width(); in SetSize()
68 width_ = width; in SetWidth()
78 width_ = 0.0_vp; in Reset()
89 ss << width_.ToString(); in ToString()
102 jsonValue->Put("width", width_.ToString().c_str()); in ToJsonString()
108 Dimension width_ = 0.0_vp; member in OHOS::Ace::DimensionRect
H A Ddimension_size.h34 DimensionSize(const Dimension& width, const Dimension& height) : width_(width), height_(height) {} in DimensionSize()
38 return width_; in Width()
48 width_ = width; in SetWidth()
58 width_ = size.Width(); in SetSize()
75 if (NearEqual(width_.Value(), INFINITE_SIZE)) { in ToString()
78 ss << width_.ToString(); in ToString()
92 Dimension width_ = 0.0_vp; member in OHOS::Ace::DimensionSize
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Dsize.h48 scalar width_; member in OHOS::Rosen::Drawing::SizeF
52 inline SizeF::SizeF() noexcept : width_(0.0), height_(0.0) {}
54 inline SizeF::SizeF(const SizeF& s) noexcept : width_(s.Width()), height_(s.Height()) {} in height_()
56 inline SizeF::SizeF(scalar w, scalar h) noexcept : width_(w), height_(h) {} in height_()
62 return width_ == 0 && height_ == 0; in IsZero()
67 return width_ <= 0 || height_ <= 0; in IsEmpty()
72 return width_; in Width()
82 width_ = w; in SetWidth()
92 return s1.width_ == s2.width_ in operator ==()
120 int width_; global() member in OHOS::Rosen::Drawing::SizeI
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/qrcode/
H A Drender_qrcode.cpp49 width_ = NormalizePercentToPx(qrcode_->GetQrcodeWidth(), false); 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()
70 width_ = 0.0; in PerformLayout()
73 width_ = maxSize.Width(); in PerformLayout()
75 if (LessOrEqual(width_, height_)) { in PerformLayout()
76 height_ = width_; in PerformLayout()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dborder_edge.h49 return width_; in GetWidth()
54 return width_.ConvertToPx(dipScale); in GetWidthInPx()
59 return (borderEdge.GetColor() == color_) && NearEqual(borderEdge.GetWidth().Value(), width_.Value()) && in operator ==()
60 (borderEdge.GetWidth().Unit() == width_.Unit()) && (borderEdge.GetBorderStyle() == style_); in operator ==()
66 width_.SetValue(0.0); in SetWidth()
69 width_ = AnimatableDimension(width, option); in SetWidth()
75 width_.SetValue(0.0); in SetWidth()
78 width_ = width; in SetWidth()
98 return width_.IsValid(); in IsValid()
105 .append(std::to_string(width_ in ToString()
121 AnimatableDimension width_; global() member in OHOS::Ace::final
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
H A Dprogress_layout_algorithm.cpp66 float width_ = selfIdealWidth.value_or(contentConstraint.percentReference.Width()); in MeasureContent() local
71 width_ = diameter; in MeasureContent()
73 height_ = width_; in MeasureContent()
76 height_ = std::min(width_, height_); in MeasureContent()
78 width_ = height_; in MeasureContent()
82 width_ = contentConstraint.percentReference.Width(); in MeasureContent()
85 height_ = contentConstraint.parentIdealSize.Height().value_or(GetChildHeight(layoutWrapper, width_)); in MeasureContent()
88 if (width_ >= height_) { in MeasureContent()
91 width_ = std::min(width_, strokeWidth in MeasureContent()
111 float width_ = progressTheme ? progressTheme->GetTrackWidth().ConvertToPx() : contentConstraint.maxSize.Width(); MeasureContentForApiNine() local
[all...]
/foundation/window/window_manager/test/systemtest/wms/
H A Dwindow_test_utils.cpp149 uint32_t defaultW = std::max(static_cast<uint32_t>(displayRect_.width_ * ratio), in GetDefaultFloatingRect()
155 if (defaultW <= limitDisplayRect_.width_ && defaultH <= limitDisplayRect_.height_) { in GetDefaultFloatingRect()
156 resRect.posX_ = limitDisplayRect_.posX_ + static_cast<int32_t>((limitDisplayRect_.width_ - defaultW) / half); in GetDefaultFloatingRect()
170 std::min(std::max(rect.posX_, maxPosRemain - static_cast<int32_t>(rect.width_)), in CalcLimitedRect()
171 static_cast<int32_t>(displayRect_.width_) - maxPosRemain), in CalcLimitedRect()
173 std::min(std::max(minFloatingW, rect.width_), maxLimitLen), in CalcLimitedRect()
186 std::max(minFloatingW, rect.width_), in GetFloatingLimitedRect()
200 resRect.width_ = rect.width_ + winFrameW + winFrameW; in GetDecorateRect()
211 if (displayRect_.width_ < displayRect in InitByDisplayRect()
[all...]
H A Dwindow_input_method_test.cpp98 if (Utils::customAppRect_.width_ == inputMethodWindow->GetRect().width_) { in HWTEST_F()
99 ASSERT_EQ(inputMethodWindow->GetRect().width_, Utils::customAppRect_.width_); in HWTEST_F()
110 if (Utils::customAppRect_.width_ == inputMethodWindow->GetRect().width_) { in HWTEST_F()
111 ASSERT_EQ(inputMethodWindow->GetRect().width_, Utils::customAppRect_.width_); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_view_box.h41 return width_; in Width()
61 width_ = width; in SetWidth()
70 return width_.Value() > 0.0 && height_.Value() > 0.0; in IsValid()
77 width_ = shapeViewBox.width_; in operator =()
84 return (x_ == shapeViewBox.x_) && (y_ == shapeViewBox.y_) && (width_ == shapeViewBox.width_) && in operator ==()
90 return (x_ != shapeViewBox.x_) || (y_ != shapeViewBox.y_) || (width_ != shapeViewBox.width_) || in operator !=()
97 Dimension width_ member in OHOS::Ace::NG::final
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/screen_manager/
H A Drs_virtual_screen_resolution.cpp21 : width_(width), height_(height) in RSVirtualScreenResolution()
26 : width_(other.width_), height_(other.height_) in RSVirtualScreenResolution()
32 width_ = other.width_; in operator =()
39 return parcel.WriteUint32(width_) && parcel.WriteUint32(height_); in Marshalling()
56 return width_; in GetVirtualScreenWidth()
66 width_ = width; in SetVirtualScreenWidth()
H A Drs_screen_mode_info.cpp21 : width_(width), height_(height), refreshRate_(refreshRate), modeId_(id) in RSScreenModeInfo()
25 RSScreenModeInfo::RSScreenModeInfo(const RSScreenModeInfo& other) : width_(other.width_), in RSScreenModeInfo()
32 width_ = other.width_; in operator =()
41 return parcel.WriteInt32(width_) && parcel.WriteInt32(height_) && in Marshalling()
62 return width_; in GetScreenWidth()
82 width_ = width; in SetScreenWidth()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_layout_element.cpp49 width_ = height_ = property->GetIconSize().value().ConvertToPx(); in Init()
51 width_ = height_ = theme->GetIconSize().ConvertToPx(); in Init()
61 iconConstraint.selfIdealSize.SetWidth(width_); in DoMeasure()
71 if (GreatNotEqual(minIconSize_, (width_ - reduceSize))) { in ShrinkWidth()
72 int remain = reduceSize - (width_ - minIconSize_); in ShrinkWidth()
73 height_ = width_ = minIconSize_; in ShrinkWidth()
77 width_ -= reduceSize; in ShrinkWidth()
78 height_ = width_; in ShrinkWidth()
89 width_ = height_ = minIconSize_; in ShrinkHeight()
93 width_ in ShrinkHeight()
[all...]
H A Dsecurity_component_layout_algorithm.cpp135 leftSpace = left_.width_ + icon_.width_ + right_.width_; in UpdateTextSize()
137 leftSpace = left_.width_ + middle_.width_ + icon_.width_ + right_.width_; in UpdateTextSize()
160 double iconWidth = icon_.width_; in ShrinkWidth()
161 double textWidth = text_.width_; in ShrinkWidth()
299 double contextWidth = std::max(text_.width_, icon in MeasureIntegralSize()
[all...]
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcamerainterface/
H A Dicamera_source_data_process.h31 : width_(width), height_(height), format_(format), dataspace_(dataspace), encodeType_(encodeType), in DCameraStreamConfig()
35 int32_t width_; member in OHOS::DistributedHardware::DCameraStreamConfig
44 return this->width_ == others.width_ && this->height_ == others.height_ && this->format_ == others.format_ && in operator ==()
51 return (this->width_ < others.width_) || ((this->width_ == others.width_) && (this->height_ < others.height_)); in operator <()
/foundation/window/window_manager/wmserver/src/
H A Dwindow_layout_policy_cascade.cpp90 node->GetWindowId(), rect.posX_, rect.posY_, rect.width_, rect.height_); in Reorder()
175 requestRect.posX_, requestRect.posY_, requestRect.width_, requestRect.height_); in PerformWindowLayout()
218 if (rect.width_ < rect.height_) { in LimitDividerInDisplayRegion()
221 } else if (rect.posX_ + static_cast<int32_t>(rect.width_) > in LimitDividerInDisplayRegion()
222 limitRect.posX_ + static_cast<int32_t>(limitRect.width_)) { in LimitDividerInDisplayRegion()
223 rect.posX_ = limitRect.posX_ + static_cast<int32_t>(limitRect.width_ - rect.width_); in LimitDividerInDisplayRegion()
234 rect.posX_, rect.posY_, rect.width_, rect.height_); in LimitDividerInDisplayRegion()
259 uint32_t defaultW = std::max(static_cast<uint32_t>(displayRect.width_ * ratio), in InitCascadeRect()
267 if (defaultW <= limitRect.width_ in InitCascadeRect()
[all...]
/foundation/arkui/ui_lite/frameworks/render/
H A Drender_buffer.h36 RenderBuffer() : renBuf_(0), start_(0), width_(0), height_(0), bufStride_(0) {} in RenderBuffer()
48 width_(0), in RenderBuffer()
66 width_ = areaWidth; in Attach()
87 return width_; in GetWidth()
124 return RowData(0, width_ - 1, GetRowPtr(y)); in GetRow()
130 uint32_t width_; // Area width. member in OHOS::RenderBuffer
/foundation/window/window_manager/dmserver/src/
H A Dabstract_display.cpp40 width_ = static_cast<int32_t>(info->width_); in AbstractDisplay()
46 if (width_ > height_) { in AbstractDisplay()
51 if (info->width_ < info->height_) { in AbstractDisplay()
67 if ((info->width_ >= PHONE_SCREEN_WIDTH) || (info->height_ >= PHONE_SCREEN_WIDTH)) { in AbstractDisplay()
68 if ((info->width_ == PAD_SCREEN_WIDTH) || (info->height_ == PAD_SCREEN_WIDTH)) { in AbstractDisplay()
87 xDpi_ = width_ * INCH_2_MM / phyWidth_; in CalculateXYDpi()
98 return width_; in GetWidth()
138 width_ = width; in SetWidth()
151 xDpi_ = width_ * INCH_2_M in UpdateXDpi()
[all...]
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
H A Dmeasurable.h30 return width_; in GetWidth()
35 width_ = AnimatableDimension(dimension, option); in SetWidth()
40 width_ = AnimatableDimension(dimension, option); in SetWidth()
45 width_ = AnimatableDimension(width, unit); in SetWidth()
50 width_ = AnimatableDimension(width, unit); in SetWidth()
55 width_ = dimension; in SetWidth()
89 AnimatableDimension width_ {-1.0, DimensionUnit::PX};
/foundation/arkui/ace_engine/frameworks/core/components/arc/
H A Drender_arc.cpp30 if (!NearZero(width_)) { in PerformLayout()
31 arcWidth_ = width_; in PerformLayout()
76 width_ = context->NormalizeToPx(arcComponent->GetWidth()); in Update()
92 return width_; in GetWidth()
125 width_ = width; in SetWidth()
165 double outArcAngle = width_ / (outerRadius_ - width_ / ARC_RADIUS_TO_DIAMETER) / ARC_RADIUS_TO_DIAMETER; in IsInRegion()
167 if (distance > outerRadius_ || distance < outerRadius_ - width_) { in IsInRegion()
/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Dviewport_config.h27 : width_(width), height_(height), density_(density) in ViewportConfig()
33 width_ = width; in SetSize()
45 return width_; in Width()
95 return width_ == other.Width() && in operator ==()
112 config.append(" size: (" + std::to_string(width_) + ", " + std::to_string(height_) + ")"); in ToString()
121 int32_t width_ = 0; member in OHOS::Ace::ViewportConfig
/foundation/multimedia/image_effect/frameworks/native/render_environment/graphic/
H A Drender_texture.h32 width_ = w; in RenderTexture()
40 return width_; in Width()
66 name_ = GLUtils::CreateTexture2D(width_, height_, 1, internalFormat_, GL_LINEAR, GL_LINEAR,
77 width_ = 0;
85 GLsizei width_{ 0 };

Completed in 17 milliseconds

12345678910>>...29