RRSlotLayout

Objective-C

@interface RRSlotLayout : RRAbstractLayout

Swift

class RRSlotLayout : RRAbstractLayout

A layout that arranges multiple renderable RRSlot instances that can be arbitrary placed within the renderview. Since the associated slots are positioned based on coordinate frames in viewport coordinates, it must be considered to update the frames of the slots for resize events if needed. This also applies for the renderToImage method of the RRGLRenderView, since this also temporarily changes the viewport size when rendering the image.

  • Initializes a new RRSlotLayout;

    Declaration

    Objective-C

    - (instancetype _Nullable)init;

    Swift

    init?()

    Return Value

    An instance of RRSlotLayout on success, nil otherwise.

  • An array of RRSlot instances that should be visible within the renderview. For overlapping slot regions, the latter slot in the array is always rendered on top.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<RRSlot *> *_Nullable slots;

    Swift

    var slots: [RRSlot]? { get set }
  • Gets/Sets the background color of the view.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull backgroundColor;

    Swift

    var backgroundColor: UnsafeMutablePointer<Int32> { get set }