Home
last modified time | relevance | path

Searched refs:style_ (Results 1 - 25 of 50) sorted by relevance

12

/foundation/graphic/graphic_utils_lite/test/
H A Dstyle_unit_test.cpp27 static Style* style_; member in OHOS::StyleTest
29 Style* StyleTest::style_ = nullptr; member in OHOS::StyleTest
33 if (style_ == nullptr) { in SetUpTestCase()
34 style_ = new Style(); in SetUpTestCase()
40 if (style_ != nullptr) { in TearDownTestCase()
41 delete style_; in TearDownTestCase()
42 style_ = nullptr; in TearDownTestCase()
54 if (style_ == nullptr) { in HWTEST_F()
58 style_->SetStyle(STYLE_BACKGROUND_COLOR, Color::Gray().full); in HWTEST_F()
59 EXPECT_EQ(style_ in HWTEST_F()
[all...]
/foundation/arkui/ui_lite/test/uitest/test_border_margin_padding/
H A Dui_test_border_margin_padding.cpp52 view_->style_.SetStyle(STYLE_MARGIN_LEFT, MARGIN_SIZE);
53 view_->style_.SetStyle(STYLE_MARGIN_TOP, MARGIN_SIZE);
54 view_->style_.SetStyle(STYLE_MARGIN_RIGHT, MARGIN_SIZE);
55 view_->style_.SetStyle(STYLE_MARGIN_BOTTOM, MARGIN_SIZE);
57 view_->style_.SetStyle(STYLE_MARGIN_LEFT, 0);
58 view_->style_.SetStyle(STYLE_MARGIN_TOP, 0);
59 view_->style_.SetStyle(STYLE_MARGIN_RIGHT, 0);
60 view_->style_.SetStyle(STYLE_MARGIN_BOTTOM, 0);
83 view_->style_.SetStyle(STYLE_BORDER_WIDTH, 20); // 20: border width
84 view_->style_
[all...]
H A Dui_test_border_margin_padding.h42 style_ = StyleDefault::GetDefaultStyle(); in UITestBorderMarginPadding()
43 style_.bgOpa_ = OPA_OPAQUE; in UITestBorderMarginPadding()
44 style_.bgColor_ = Color::Gray(); in UITestBorderMarginPadding()
75 Style style_; member in OHOS::UITestBorderMarginPadding
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_circle_progress.h212 progressImagePos_.x = x + style_->paddingLeft_ + style_->borderWidth_; in SetProgressImagePosition()
213 progressImagePos_.y = y + style_->paddingTop_ + style_->borderWidth_; in SetProgressImagePosition()
227 backgroundImagePos_.x = x + style_->paddingLeft_ + style_->borderWidth_; in SetBackgroundImagePosition()
228 backgroundImagePos_.y = y + style_->paddingTop_ + style_->borderWidth_; in SetBackgroundImagePosition()
H A Dtext_adapter.h170 return style_; in GetStyle()
278 Style style_; member in OHOS::TextAdapter
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_view.cpp50 style_(nullptr), in UIView()
80 delete style_; in ~UIView()
81 style_ = nullptr; in ~UIView()
89 uint16_t r = style_->borderRadius_; // radius must be positive in OnPreDraw()
110 BaseGfxEngine::GetInstance()->DrawRect(gfxDstBuffer, GetOrigRect(), invalidatedArea, *style_, opa); in OnDraw()
183 style_ = &(theme->GetMainStyle()); in SetupThemeStyles()
185 style_ = &(StyleDefault::GetDefaultStyle()); in SetupThemeStyles()
192 delete style_; in SetStyle()
195 style_ = &style; in SetStyle()
201 style_ in SetStyle()
[all...]
H A Dui_axis.cpp96 BaseGfxEngine::GetInstance()->DrawLine(gfxDstBuffer, start_, end_, invalidatedArea, style_->lineWidth_, in OnDraw()
97 style_->lineColor_, style_->lineOpa_); in OnDraw()
113 style_->lineWidth_, style_->lineColor_, style_->lineOpa_); in DrawAxisMark()
196 style_->lineWidth_, style_->lineColor_, style_->lineOpa_); in DrawAxisMark()
H A Dui_image_view.cpp232 style_ = &(StyleDefault::GetBackgroundTransparentStyle()); in UIImageView()
322 int16_t widgetWidth = viewRect.GetWidth() - style_->paddingLeft_ - style_->paddingRight_ - in UpdateContentMatrix()
323 style_->borderWidth_ * 2; // 2: excludes the border-left and border-right in UpdateContentMatrix()
324 int16_t widgetHeight = viewRect.GetHeight() - style_->paddingTop_ - style_->paddingBottom_ - in UpdateContentMatrix()
325 style_->borderWidth_ * 2; // 2: excludes the border-top and border-bottom in UpdateContentMatrix()
330 Vector3<int16_t> translate(style_->paddingLeft_ + style_->borderWidth_, in UpdateContentMatrix()
331 style_ in UpdateContentMatrix()
[all...]
H A Dui_circle_progress.cpp97 arcinfo.center.x = center_.x + rect.GetLeft() + style_->paddingLeft_ + style_->borderWidth_; in DrawCommonCircle()
98 arcinfo.center.y = center_.y + rect.GetTop() + style_->paddingTop_ + style_->borderWidth_; in DrawCommonCircle()
127 BaseGfxEngine::GetInstance()->DrawRect(gfxDstBuffer, GetOrigRect(), invalidatedArea, *style_, opaScale_); in OnDraw()
H A Dui_arc_label.cpp152 style_ = (theme != nullptr) ? &(theme->GetLabelStyle()) : &(StyleDefault::GetLabelStyle()); in orientation_()
278 orientation, *style_, opaScale, compatibilityMode_); in DrawArcText()
309 arcCenter_, style_->letterSpace_, orientation_, arcTextInfo_); in ReMeasure()
318 arcTextInfo_.arcCenter.x = arcCenter_.x - GetX() + style_->borderWidth_ + style_->paddingLeft_; in ReMeasure()
319 arcTextInfo_.arcCenter.y = arcCenter_.y - GetY() + style_->borderWidth_ + style_->paddingTop_; in ReMeasure()
333 arcLabelText_->GetFontSize(), style_->letterSpace_, maxLength); in GetLineEnd()
379 arcLabelText_->ReMeasureTextSize(rect, *style_); in OnMeasureArcTextInfo()
395 int16_t maxTextLength = arcLabelText_->GetMetaTextWidth(*style_); in OnMeasureArcTextInfo()
[all...]
H A Dui_time_picker.cpp44 style_ = &(theme->GetPickerBackgroundStyle()); in timePickerListener_()
46 style_ = &(StyleDefault::GetPickerBackgroundStyle()); in timePickerListener_()
48 backgroundFontId_ = style_->font_; in timePickerListener_()
49 backgroundColor_ = style_->textColor_; in timePickerListener_()
51 style_ = &(theme->GetPickerHighlightStyle()); in timePickerListener_()
53 style_ = &(StyleDefault::GetPickerHighlightStyle()); in timePickerListener_()
58 highlightFontId_ = style_->font_; in timePickerListener_()
59 highlightColor_ = style_->textColor_; in timePickerListener_()
H A Dui_picker.cpp115 style_ = &(theme->GetPickerBackgroundStyle()); in UIPicker()
117 style_ = &(StyleDefault::GetPickerBackgroundStyle()); in UIPicker()
119 backgroundFontId_ = style_->font_; in UIPicker()
120 backgroundColor_ = style_->textColor_; in UIPicker()
124 style_ = &(theme->GetPickerHighlightStyle()); in UIPicker()
126 style_ = &(StyleDefault::GetPickerHighlightStyle()); in UIPicker()
128 highlightFontId_ = style_->font_; in UIPicker()
129 highlightColor_ = style_->textColor_; in UIPicker()
H A Dui_chart.cpp475 data->GetFillColor(), style_->lineOpa_); in DrawDataSerials()
619 Style style = *style_; in DrawSmoothPolyLine()
633 rect.SetLeft(MATH_MIN(start.x, end.x) - style_->lineWidth_); in DrawSmoothPolyLine()
634 rect.SetRight(MATH_MAX(start.x, end.x) + style_->lineWidth_); in DrawSmoothPolyLine()
635 rect.SetTop(MATH_MIN(start.y, end.y) - style_->lineWidth_); in DrawSmoothPolyLine()
636 rect.SetBottom(MATH_MAX(start.y, end.y) + style_->lineWidth_); in DrawSmoothPolyLine()
642 baseGfxEngine->DrawLine(gfxDstBuffer, start, end, invalidatedArea, style_->lineWidth_, color, OPA_OPAQUE); in DrawSmoothPolyLine()
646 arcinfo.radius = (style_->lineWidth_ + 1) >> 1; in DrawSmoothPolyLine()
654 baseGfxEngine->DrawLine(gfxDstBuffer, start, end, invalidatedArea, style_->lineWidth_, color, OPA_OPAQUE); in DrawSmoothPolyLine()
674 Style style = *style_; in DrawPolyLine()
[all...]
H A Dtext_adapter.cpp42 style_ = StyleDefault::GetBackgroundTransparentStyle(); in TextAdapter()
43 fontId_ = style_.font_; in TextAdapter()
75 newView->UIView::SetStyle(style_); in GetView()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/
H A Dpaint.cpp30 style_ = other.style_;
58 style_ = other.style_; in operator =()
98 style_ = PaintStyle::PAINT_FILL; in AttachBrush()
118 style_ = PaintStyle::PAINT_STROKE; in AttachPen()
140 style_ = style; in SetStyle()
145 return style_ == PaintStyle::PAINT_FILL_STROKE || style_ == PaintStyle::PAINT_STROKE; in HasStrokeStyle()
245 style_ in Reset()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dborder_edge.h44 return style_; in GetBorderStyle()
60 (borderEdge.GetWidth().Unit() == width_.Unit()) && (borderEdge.GetBorderStyle() == style_); in operator ==()
93 style_ = style; in SetStyle()
109 .append(std::to_string((int)style_)) in ToString()
122 BorderStyle style_ { BorderStyle::NONE };
H A Dshadow.h59 : offset_(offset), color_(spotColor), style_(style) in Shadow()
66 : offset_(offset), color_(spotColor), style_(style) in Shadow()
204 return style_; in GetStyle()
255 ShadowStyle style_ = ShadowStyle::None; member in OHOS::Ace::final
H A Dborder_edge.cpp21 : color_(color), width_(width), style_(style) in BorderEdge()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_recording_canvas_test.cpp136 extendRecordingCanvas.paintBrush_.style_ = Drawing::Paint::PaintStyle::PAINT_FILL; in HWTEST_F()
139 extendRecordingCanvas.paintPen_.style_ = Drawing::Paint::PaintStyle::PAINT_FILL; in HWTEST_F()
142 extendRecordingCanvas.paintBrush_.style_ = Drawing::Paint::PaintStyle::PAINT_NONE; in HWTEST_F()
165 extendRecordingCanvas.paintBrush_.style_ = Drawing::Paint::PaintStyle::PAINT_FILL; in HWTEST_F()
168 extendRecordingCanvas.paintPen_.style_ = Drawing::Paint::PaintStyle::PAINT_FILL; in HWTEST_F()
171 extendRecordingCanvas.paintBrush_.style_ = Drawing::Paint::PaintStyle::PAINT_NONE; in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/
H A Dtexgine_paint.cpp22 : style_(Style::FILL), brush_(std::make_shared<RSBrush>()), pen_(std::make_shared<RSPen>()) {} in TexginePaint()
36 return style_; in GetStyle()
81 style_ = style; in SetStyle()
117 return style_ == rhs.GetStyle() && *brush_ == rhs.GetBrush() && *pen_ == rhs.GetPen(); in operator ==()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/common/
H A Dpaint.h42 : style_(PaintStyle::STROKE_FILL_STYLE), in Paint()
178 style_ = style; in SetStyle()
233 return style_; in GetStyle()
733 PaintStyle style_; member in OHOS::Paint
/foundation/arkui/ace_engine/frameworks/core/components/data_panel/
H A Ddata_panel_component.h81 return style_; in GetColorType()
86 style_ = type; in SetColorType()
105 SegmentStyleType style_ = SegmentStyleType::NONE; member in OHOS::Ace::final
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/
H A Dpaint.h47 PaintStyle GetStyle() const { return style_; } in GetStyle()
48 bool IsValid() const { return style_ != PaintStyle::PAINT_NONE; } in IsValid()
116 PaintStyle style_ = PaintStyle::PAINT_NONE; variable
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dcanvas_renderer.cpp111 style_.SetFontStyle(fontStyle); in SetFont()
112 style_.SetFontWeight(weight); in SetFont()
113 style_.SetFontSize(fontSize); in SetFont()
114 style_.SetFontFamilies(families); in SetFont()
126 style_.SetTextBaseline(baseline); in SetTextBaseline()
218 paintState_.SetTextStyle(style_); in MeasureText()
/foundation/arkui/ace_engine/frameworks/core/components/side_bar/
H A Drender_side_bar_container.h61 return style_; in GetStyle()
153 std::string style_; member in OHOS::Ace::RenderSideBarContainer

Completed in 15 milliseconds

12