Home
last modified time | relevance | path

Searched refs:globalState (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/canvas/
H A Dcanvas_custom_paint_method_test_ng.cpp451 paintMethod->state_.globalState.SetAlpha(1.0);
454 EXPECT_TRUE(paintMethod->state_.globalState.HasGlobalAlpha());
483 paintMethod->state_.globalState.SetType(CompositeOperation::SOURCE_ATOP);
484 paintMethod->state_.globalState.SetAlpha(1.0);
485 EXPECT_TRUE(paintMethod->state_.globalState.HasGlobalAlpha());
524 paintMethod->state_.globalState.SetAlpha(1.0);
525 EXPECT_TRUE(paintMethod->state_.globalState.HasGlobalAlpha());
666 paintMethod->state_.globalState.SetAlpha(1.0);
667 EXPECT_TRUE(paintMethod->state_.globalState.HasGlobalAlpha());
707 paintMethod->state_.globalState.SetAlpha(1.0);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Dcustom_paint_paint_method.cpp376 if (state_.globalState.HasGlobalAlpha()) { in GetFillPaint()
378 brush.SetAlphaF(state_.globalState.GetAlpha() * in GetFillPaint()
381 brush.SetAlphaF(state_.globalState.GetAlpha()); in GetFillPaint()
421 if (state_.globalState.HasGlobalAlpha()) { in GetStrokePaint()
423 pen.SetAlphaF(state_.globalState.GetAlpha() * in GetStrokePaint()
426 pen.SetAlphaF(state_.globalState.GetAlpha()); in GetStrokePaint()
513 if (state_.globalState.HasGlobalAlpha()) { in DrawImageInternal()
514 imageBrush_.SetAlphaF(state_.globalState.GetAlpha()); in DrawImageInternal()
1966 state_.globalState = GlobalPaintState(); in ResetStates()
2129 if (state_.globalState.HasGlobalAlpha()) { in UpdateFillTxtStyle()
[all …]
H A Dcanvas_paint_method.cpp143 if (state_.globalState.GetType() != CompositeOperation::SOURCE_OVER) { in DrawPixelMap()
147 if (state_.globalState.HasGlobalAlpha()) { in DrawPixelMap()
148 imageBrush_.SetAlphaF(state_.globalState.GetAlpha()); in DrawPixelMap()
157 … (state_.globalState.GetType() != CompositeOperation::SOURCE_OVER) ? &layerOps : nullptr); in DrawPixelMap()
160 if (state_.globalState.GetType() != CompositeOperation::SOURCE_OVER) { in DrawPixelMap()
H A Dcustom_paint_paint_method.h133 state_.globalState.SetAlpha(alpha); in SetAlpha()
138 state_.globalState.SetType(operation); in SetCompositeType()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/
H A Doffscreen_canvas.h197 holder.globalState = globalState_; in SaveStates()
211 globalState_ = saveState.globalState; in RestoreStates()
H A Drender_custom_paint.h282 holder.globalState = globalState_; in SaveStates()
296 globalState_ = saveState.globalState; in RestoreStates()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dpaint_state.h429 GlobalPaintState globalState; member