MBMImageContent


@interface MBMImageContent : NSObject

Describes the image content, e.g. where text can be fit into an image.

When sizing icons with icon-text-fit, the icon size will be adjusted so that the this content box fits exactly around the text.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLeft:(float)left
                                     top:(float)top
                                   right:(float)right
                                  bottom:(float)bottom;

    Swift

    init(left: Float, top: Float, right: Float, bottom: Float)
  • Distance to the left, in screen pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float left;

    Swift

    var left: Float { get }
  • top

    Distance to the top, in screen pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float top;

    Swift

    var top: Float { get }
  • Distance to the right, in screen pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float right;

    Swift

    var right: Float { get }
  • Distance to the bottom, in screen pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float bottom;

    Swift

    var bottom: Float { get }
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isEqualToImageContent:(nonnull MBMImageContent *)other;

    Swift

    func isEqual(to other: ImageContent) -> Bool