Searched refs:yPercent (Results 1 - 3 of 3) sorted by relevance
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_view.cpp | 989 void UIView::SetYPercent(float yPercent) in SetYPercent() argument 991 if (IsInvalid(yPercent)) { in SetYPercent() 995 int16_t newY = static_cast<int16_t>(GetParent()->GetHeight() * yPercent); in SetYPercent() 1011 void UIView::SetPositionPercent(float xPercent, float yPercent) in SetPositionPercent() argument 1013 if (IsInvalid(xPercent) || IsInvalid(yPercent)) { in SetPositionPercent() 1018 int16_t newY = static_cast<int16_t>(GetParent()->GetHeight() * yPercent); in SetPositionPercent() 1030 void UIView::SetPositionPercent(float xPercent, float yPercent, float widthPercent, float heightPercent) in SetPositionPercent() argument 1032 if (IsInvalid(xPercent) || IsInvalid(yPercent) || IsInvalid(widthPercent) || IsInvalid(heightPercent)) { in SetPositionPercent() 1037 int16_t newY = static_cast<int16_t>(GetParent()->GetHeight() * yPercent); in SetPositionPercent()
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_view.h | 930 * @param yPercent Indicates the percentage to set, the decimal form of which ranges from 0 to 1. 934 virtual void SetYPercent(float yPercent); 971 * @param yPercent Indicates the percentage that represents the proportion of the view's y-coordinate 976 virtual void SetPositionPercent(float xPercent, float yPercent); 993 * @param yPercent Indicates the percentage that represents the proportion of the view's y-coordinate 1002 virtual void SetPositionPercent(float xPercent, float yPercent, float widthPercent, float heightPercent);
|
/foundation/multimodalinput/input/intention/cooperate/plugin/src/ |
H A D | cooperate_context.cpp | 379 double yPercent = std::clamp<double>(cursorPos.y, 0.0, PERCENT) / PERCENT; in SetCursorPosition() local 384 cursorPos_.y = static_cast<int32_t>(yPercent * display->GetHeight()); in SetCursorPosition()
|
Completed in 5 milliseconds