MBMImageContent.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /**
  4. * Describes the image content, e.g. where text can be fit into an image.
  5. *
  6. * When sizing icons with `icon-text-fit`, the icon size will be adjusted so that the this content box fits exactly around the text.
  7. */
  8. NS_SWIFT_NAME(ImageContent)
  9. __attribute__((visibility ("default")))
  10. @interface MBMImageContent : NSObject
  11. // This class provides custom init which should be called
  12. - (nonnull instancetype)init NS_UNAVAILABLE;
  13. // This class provides custom init which should be called
  14. + (nonnull instancetype)new NS_UNAVAILABLE;
  15. - (nonnull instancetype)initWithLeft:(float)left
  16. top:(float)top
  17. right:(float)right
  18. bottom:(float)bottom;
  19. /** Distance to the left, in screen pixels. */
  20. @property (nonatomic, readonly) float left;
  21. /** Distance to the top, in screen pixels. */
  22. @property (nonatomic, readonly) float top;
  23. /** Distance to the right, in screen pixels. */
  24. @property (nonatomic, readonly) float right;
  25. /** Distance to the bottom, in screen pixels. */
  26. @property (nonatomic, readonly) float bottom;
  27. - (BOOL)isEqualToImageContent:(nonnull MBMImageContent *)other;
  28. @end