RRSlot

Objective-C

@interface RRSlot : RRRenderable

Swift

class RRSlot : RRRenderable

This class defines the base class for slot instances that are used within the RRSlotLayout.

  • Defines the slot’s frame within the renderview’s coordinate space.

    Declaration

    Objective-C

    @property (nonatomic) CGRect frame;

    Swift

    var frame: CGRect { get set }
  • Defines how the slot’s content is scaled to the defined frame.

    Declaration

    Objective-C

    @property (nonatomic) RRScalingMode scalingMode;

    Swift

    var scalingMode: RRScalingMode { get set }
  • Returns the actual tight fitting boundingbox of the slot’s content within the renderview’s coorinate space

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGRect boundingBox2D;

    Swift

    var boundingBox2D: CGRect { get }