Home
last modified time | relevance | path

Searched refs:buttonPaintProperty (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/
H A Dtoggle_button_pattern.cpp78 auto buttonPaintProperty = GetPaintProperty<ToggleButtonPaintProperty>(); in OnModifyDone() local
79 CHECK_NULL_VOID(buttonPaintProperty); in OnModifyDone()
81 isOn_ = buttonPaintProperty->GetIsOnValue(); in OnModifyDone()
84 if (buttonPaintProperty->HasIsOn()) { in OnModifyDone()
85 bool isOn = buttonPaintProperty->GetIsOnValue(); in OnModifyDone()
94 auto selectedColor = buttonPaintProperty->GetSelectedColor().value_or(checkedColor_); in OnModifyDone()
97 auto bgColor = buttonPaintProperty->GetBackgroundColor().value_or(unCheckedColor_); in OnModifyDone()
290 auto buttonPaintProperty = host->GetPaintProperty<ToggleButtonPaintProperty>(); in OnClick() local
291 CHECK_NULL_VOID(buttonPaintProperty); in OnClick()
293 selectedColor = buttonPaintProperty->GetBackgroundColor().value_or(unCheckedColor_); in OnClick()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/toggle/
H A Dtoggle_test_ng.cpp615 auto buttonPaintProperty = frameNode->GetPaintProperty<ToggleButtonPaintProperty>(); variable
616 EXPECT_NE(buttonPaintProperty, nullptr);
617 EXPECT_EQ(buttonPaintProperty->GetSelectedColor(), toggleButtonTheme->GetCheckedColor());
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dselect_overlay_node.cpp164 auto buttonPaintProperty = pasteButton->GetPaintProperty<SecurityComponentPaintProperty>(); in BuildPasteButton() local
166 buttonPaintProperty->UpdateFontColor(textStyle.GetTextColor()); in BuildPasteButton()
168 buttonPaintProperty->UpdateFontColor( in BuildPasteButton()
184 buttonPaintProperty->UpdateBackgroundColor(Color::TRANSPARENT); in BuildPasteButton()