Home
last modified time | relevance | path

Searched refs:cursorColor (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/text_field/
H A Ddsl_text_field_creator_test.cpp140 const auto& cursorColor = textFieldComponent->GetCursorColor(); variable
141 EXPECT_EQ(cursorColor.GetAlpha(), TEXT_FIELD_ATTR_COLOR_ALPHA);
142 EXPECT_EQ(cursorColor.GetRed(), TEXT_FIELD_ATTR_COLOR_RED);
143 EXPECT_EQ(cursorColor.GetGreen(), TEXT_FIELD_ATTR_COLOR_GREEN);
144 EXPECT_EQ(cursorColor.GetBlue(), TEXT_FIELD_ATTR_COLOR_BLUE);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_overlay_modifier.cpp108 void TextOverlayModifier::SetCursorColor(uint32_t cursorColor) in SetCursorColor() argument
111 cursorColor_->Set(static_cast<int32_t>(cursorColor)); in SetCursorColor()
H A Dtext_paint_method.cpp148 auto cursorColor = layoutProperty->GetCursorColorValue(theme->GetCaretColor()); in UpdateOverlayModifier() local
149 textOverlayModifier_->SetCursorColor(cursorColor.GetValue()); in UpdateOverlayModifier()
H A Dtext_overlay_modifier.h38 void SetCursorColor(uint32_t cursorColor);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_paint_method.cpp177 auto cursorColor = paintProperty->GetCursorColorValue(theme->GetCursorColor()); in UpdateOverlayModifier() local
178 textFieldOverlayModifier_->SetCursorColor(cursorColor); in UpdateOverlayModifier()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/textfield/
H A Dtextfield_declaration.h83 Color cursorColor; member
491 style.cursorColor = color; in SetCursorColor()
498 return style.cursorColor; in GetCursorColor()
H A Dtextfield_declaration.cpp68 style.cursorColor = theme->GetCursorColor(); in InitializeStyle()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Drosen_render_text_field.cpp142 Color cursorColor = cursorColor_; in PaintCaret() local
145 cursorColor = style_.GetTextColor(); in PaintCaret()
148 paint.setColor(Constants::ConvertSkColor(cursorColor)); in PaintCaret()
161 brush.SetColor(cursorColor.GetValue()); in PaintCaret()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_testthree_ng.cpp290 std::optional<Color> cursorColor = textLayoutProperty->GetCursorColorValue(Color::BLACK); variable
291 ASSERT_NE(cursorColor, std::nullopt);
292 EXPECT_EQ(cursorColor.value(), Color::BLACK);