Structure
HSWidgetFrame
A structure that contains location and dimensions of widget in grid positions.
Declaration
typedef struct HSWidgetFrame {
...
} HSWidgetFrame;
Overview
Frames are a combination of location and dimensions. Location being grid position that follow iOS coordinate space where the origin is upper-left corner and positive extends towards the lower-right corner. While dimensions are number of grid positions that will be occupied. For instance a frame with origin of (2, 2) and size of (3, 2) would represent:
Topics
Constants
-
HSWidgetFrameZero
A frame constant with location (0, 0), and dimension containg 0 width and height.
Member Fields
Creating Frame
-
HSWidgetFrameMake
Make a widget frame using the specified row, column, number of rows and number of columns.
-
HSWidgetFrameMake (c++)
Make a widget frame using the specified origin and size.
Checking Characteristics
-
HSWidgetFrameContainsPosition
Returns whether a frame contains a specified position.
-
HSWidgetFrameEqualsFrame
Return whether two frames are equal in size and position.
Related Links
Position
-
HSWidgetPosition
A structure that contains location in grid positions.
Size
-
HSWidgetSize
A structure that contains dimensions in grid positions.