Lines Matching defs:brush1
74 OH_Drawing_Brush* brush1 = OH_Drawing_BrushCreate();
75 OH_Drawing_BrushSetAntiAlias(brush1, false);
76 EXPECT_EQ(OH_Drawing_BrushIsAntiAlias(brush1), false);
77 OH_Drawing_BrushSetColor(brush1, OH_Drawing_ColorSetArgb(0xFF, 0xFF, 0x00, 0x00));
78 EXPECT_EQ(OH_Drawing_BrushGetColor(brush1), 0xFFFF0000);
80 OH_Drawing_BrushSetAlpha(brush1, alpha);
81 EXPECT_EQ(OH_Drawing_BrushGetAlpha(brush1), alpha);
108 OH_Drawing_Brush* brush1 = OH_Drawing_BrushCreate();
109 OH_Drawing_BrushSetAntiAlias(brush1, true);
110 OH_Drawing_BrushSetColor(brush1, OH_Drawing_ColorSetArgb(0x00, 0xFF, 0x00, 0xFF));
112 OH_Drawing_BrushSetAlpha(brush1, alpha);
114 OH_Drawing_BrushReset(brush1);
115 EXPECT_EQ(OH_Drawing_BrushIsAntiAlias(brush1), false);
116 EXPECT_EQ(OH_Drawing_BrushGetColor(brush1), 0xFF000000);
117 EXPECT_EQ(OH_Drawing_BrushGetAlpha(brush1), 0xFF);
119 OH_Drawing_BrushDestroy(brush1);