Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What's the use of CGRectGetMinX?

Shulou Source: shulou.com Published: 2022-06-01 10:53:22 09月29日 Update

This article mainly explains "what is the use of CGRectGetMinX". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the use of CGRectGetMinX"?

I. CGRectGetMinXCGRectGetMinY

CGRectGetMinX (control .frame) gets the smallest x-value control in the control .x

CGRectGetMinY (control .frame) gets the smallest y-value control in the control .y

CGRectGetMinX represents the X coordinate of a current control frame CGRectGetMinY represents the Y coordinate of a current control frame

II. CGRectGetMaxXCGRectGetMaxY

CGRectGetMaxX (control .frame) gets the maximum x value control in the control .x + control .width

CGRectGetMaxY (control .frame) gets the maximum y value control in the control .y + control .height

CGRectGetMaxX to get a frame maximum X coordinate CGRectGetMaxY to get a frame maximum Y coordinate

III. CGRectGetMidXCGRectGetMidY

CGRectGetMidX (control .frame); get the center x value control of the control .x + control .width / 2 is simply to get the center value coordinates of the current control x value

CGRectGetMidY (control .frame); get the center y value of the control. Y + control .height / 2 is simply to get the center value coordinates of the current control y value.

CGRectGetMidX denotes the X coordinate of a frame center point, and CGRectGetMidY represents the Y coordinate of a frame center point.

Thank you for your reading, the above is the content of "what is the use of CGRectGetMinX". After the study of this article, I believe you have a deeper understanding of what the use of CGRectGetMinX is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Controls coordinates maximum that is learning minimum central point content ideas situations articles more knowledge knowledge points articles follow questions practice push research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker Redmi Linux MariaDB