Home
last modified time | relevance | path

Searched refs:backgroundRect_ (Results 1 - 3 of 3) sorted by relevance

/foundation/arkui/ui_lite/frameworks/components/
H A Dui_box_scroll_bar.cpp29 backgroundRect_.SetRect(x, y, x + width - 1, y + height - 1); in SetPosition()
36 if (!rect.Intersect(invalidatedArea, backgroundRect_)) { in OnDraw()
44 if (backgroundRect_.GetWidth() < backgroundRect_.GetHeight()) { in OnDraw()
45 int16_t forgroundHeight = static_cast<int16_t>(foregroundProportion_ * backgroundRect_.GetHeight()); in OnDraw()
49 int16_t forgroundTop = backgroundRect_.GetTop() + in OnDraw()
50 static_cast<int16_t>(scrollProgress_ * (backgroundRect_.GetHeight() - forgroundHeight)); in OnDraw()
51 rect.SetRect(backgroundRect_.GetLeft(), forgroundTop, backgroundRect_.GetRight(), in OnDraw()
54 int16_t forgroundWidth = static_cast<int16_t>(foregroundProportion_ * backgroundRect_ in OnDraw()
[all...]
H A Dui_box_scroll_bar.h33 Rect backgroundRect_; member in OHOS::UIBoxScrollBar
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_scroll_bar_test.cpp75 return backgroundRect_.GetWidth(); in GetWidth()
80 return backgroundRect_.GetHeight(); in GetHeight()

Completed in 3 milliseconds