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

  •   rotation

    Specifies the rotation offset to be applied to the area of the texture covered by this clip rect when applied to a PXTexture.

    property
  •   x

    The horizontal position of the top-left corner of the clip rectangle, in points.

    property
  •   y

    The vertical position of the top-left corner of the clip rectangle, in points.

    property
  •   width

    The width of the rectangle in points.

    property
  •   height

    The height of the rectangle in points.

    property

Properties

height

The height of the rectangle in points.

@property (nonatomic) float height

Declared In

PXClipRect.h

rotation

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 rotation

Discussion

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.h

width

The width of the rectangle in points.

@property (nonatomic) float width

Declared In

PXClipRect.h

x

The horizontal position of the top-left corner of the clip rectangle, in points.

@property (nonatomic) float x

Declared In

PXClipRect.h

y

The vertical position of the top-left corner of the clip rectangle, in points.

@property (nonatomic) float y

Declared In

PXClipRect.h