Home
last modified time | relevance | path

Searched refs:paintStyle_ (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dfocus_box.cpp22 paintStyle_ = style; in SetStyle()
24 if (paintStyle_->strokeWidth.has_value() && paintStyle_->strokeWidth->IsNegative()) { in SetStyle()
25 paintStyle_->strokeWidth.reset(); in SetStyle()
27 if (!paintStyle_->strokeColor && !paintStyle_->strokeWidth && !paintStyle_->margin) { in SetStyle()
28 paintStyle_.reset(); in SetStyle()
35 return paintStyle_.has_value(); in HasCustomStyle()
45 if (box.paintStyle_->strokeColor) { in ToJsonValue()
46 json->Put("strokeColor", box.paintStyle_->strokeColor.value().ToString().c_str()); in ToJsonValue()
48 if (box.paintStyle_->strokeWidth) { in ToJsonValue()
51 if (box.paintStyle_->margin) { in ToJsonValue()
[all …]
H A Dfocus_box.h44 std::optional<FocusBoxStyle> paintStyle_;
H A Dfocus_hub.cpp1580 if (box_.paintStyle_ && box_.paintStyle_->strokeColor) { in PaintFocusState()
1581 paintColor = box_.paintStyle_->strokeColor.value(); in PaintFocusState()
1588 if (box_.paintStyle_ && box_.paintStyle_->strokeWidth) { in PaintFocusState()
1589 paintWidth = box_.paintStyle_->strokeWidth.value(); in PaintFocusState()
1608 if (box_.paintStyle_ && box_.paintStyle_->margin) { in PaintFocusState()
1609 focusPaddingVp = box_.paintStyle_->margin.value(); in PaintFocusState()
1687 if (box_.paintStyle_ && box_.paintStyle_->strokeColor) { in PaintInnerFocusState()
1688 paintColor = box_.paintStyle_->strokeColor.value(); in PaintInnerFocusState()
1695 if (box_.paintStyle_ && box_.paintStyle_->strokeWidth) { in PaintInnerFocusState()
1696 paintWidth = box_.paintStyle_->strokeWidth.value(); in PaintInnerFocusState()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dpaint_state.h186 paintStyle_ = PaintStyle::Color; in SetColor()
197 paintStyle_ = PaintStyle::Gradient; in SetGradient()
268 paintStyle_ = PaintStyle::ImagePattern; in SetPattern()
291 paintStyle_ = PaintStyle::ImagePattern; in SetPatternNG()
307 return paintStyle_; in GetPaintStyle()
317 PaintStyle paintStyle_ = PaintStyle::Color; variable
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/canvas/
H A Dcanvas_custom_paint_method_test_ng.cpp443 paintMethod->state_.strokeState.paintStyle_ = PaintStyle::Color;
455 paintMethod->state_.strokeState.paintStyle_ = PaintStyle::Gradient;
662 paintMethod->state_.fillState.paintStyle_ = OHOS::Ace::PaintStyle::Color;
674 paintMethod->state_.fillState.paintStyle_ = OHOS::Ace::PaintStyle::Gradient;
706 paintMethod->state_.fillState.paintStyle_ = OHOS::Ace::PaintStyle::Color;
718 paintMethod->state_.fillState.paintStyle_ = OHOS::Ace::PaintStyle::Gradient;
750 paintMethod->state_.fillState.paintStyle_ = OHOS::Ace::PaintStyle::Color;