PXClipRect Class Reference
| Inherits from | NSObject |
| Conforms to | NSCopying |
| Declared in | PXClipRect.h PXClipRect.m |
Overview
Describes the clip area within a TextureData object. The coordinates are in points as opposed to pixels.
Tasks
-
rotationSpecifies the rotation offset to be applied to the area of the texture covered by this clip rect when applied to a PXTexture.
property -
xThe horizontal position of the top-left corner of the clip rectangle, in points.
property -
yThe vertical position of the top-left corner of the clip rectangle, in points.
property -
widthThe width of the rectangle in points.
property -
heightThe height of the rectangle in points.
property
Properties
height
The height of the rectangle in points.
@property (nonatomic) float heightDeclared In
PXClipRect.hrotation
Specifies the rotation offset to be applied to the area of the texture covered by this clip rect when applied to a PXTexture.
@property (nonatomic) float rotationDiscussion
Rotation value is in degrees.
Avoid using values that aren’t multiples of 90.0 (it makes the hit-test act unintuitively, albeit correctly). For regular rotation changes just use the [PXTexture rotation] property.
Declared In
PXClipRect.hwidth
The width of the rectangle in points.
@property (nonatomic) float widthDeclared In
PXClipRect.h