Home
last modified time | relevance | path

Searched refs:widthPercent (Results 1 - 2 of 2) sorted by relevance

/foundation/arkui/ui_lite/frameworks/components/
H A Dui_view.cpp898 void UIView::SetWidthPercent(float widthPercent) in SetWidthPercent() argument
900 if (IsInvalid(widthPercent)) { in SetWidthPercent()
904 int16_t newWidth = static_cast<int16_t>(GetParent()->GetWidth() * widthPercent); in SetWidthPercent()
947 void UIView::ResizePercent(float widthPercent, float heightPercent) in ResizePercent() argument
949 if (IsInvalid(widthPercent) || IsInvalid(heightPercent)) { in ResizePercent()
953 int16_t newWidth = static_cast<int16_t>(GetParent()->GetWidth() * widthPercent); in ResizePercent()
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()
1038 int16_t newWidth = static_cast<int16_t>(GetParent()->GetWidth() * widthPercent); in SetPositionPercent()
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_view.h836 * @param widthPercent Indicates the percentage to set, the decimal form of which ranges from 0 to 1.
840 virtual void SetWidthPercent(float widthPercent);
860 * @param widthPercent Indicates the percentage to set, the decimal form of which ranges from 0 to 1.
885 * @param widthPercent Indicates the percentage that represents the proportion of the view's width
892 virtual void ResizePercent(float widthPercent, float heightPercent);
995 * @param widthPercent Indicates the percentage that represents the proportion of the view's width
1002 virtual void SetPositionPercent(float xPercent, float yPercent, float widthPercent, float heightPercent);

Completed in 5 milliseconds