MMKBalloonGeometry

@interface MMKBalloonGeometry : NSObject

Undocumented

Summary

Class methods

+ (nonnull MMKBalloonGeometry *)balloonGeometryWithAnchor:(nonnull MMKBalloonAnchor *)anchor
                                                    width:( float)width
                                                   height:( float)height
                                              imageAnchor:( CGPoint)imageAnchor
                                              contentRect:(nonnull MMKRect *)contentRect
                                              balloonRect:(nonnull MMKRect *)balloonRect;

Properties

@property (nonatomic, readonly, nonnull) MMKBalloonAnchor *anchor;
Undocumented

@property (nonatomic, readonly) float width;
Total balloon image size

@property (nonatomic, readonly) float height;
Undocumented

@property (nonatomic, readonly) CGPoint imageAnchor;
Anchor inside image rect

@property (nonatomic, readonly, nonnull) MMKRect *contentRect;
area with main information, except leg/borders

@property (nonatomic, readonly, nonnull) MMKRect *balloonRect;
area with balloon, except leg, shadows, etc

Class methods

balloonGeometryWithAnchor:width:height:imageAnchor:contentRect:balloonRect:

+ (nonnull MMKBalloonGeometry *)balloonGeometryWithAnchor:(nonnull MMKBalloonAnchor *)anchor
                                                    width:( float)width
                                                   height:( float)height
                                              imageAnchor:( CGPoint)imageAnchor
                                              contentRect:(nonnull MMKRect *)contentRect
                                              balloonRect:(nonnull MMKRect *)balloonRect;


Properties

anchor

@property (nonatomic, readonly, nonnull) MMKBalloonAnchor *anchor;

Undocumented


width

@property (nonatomic, readonly) float width;

Total balloon image size


height

@property (nonatomic, readonly) float height;

Undocumented


imageAnchor

@property (nonatomic, readonly) CGPoint imageAnchor;

Anchor inside image rect. Coordinates from 0 to 1 are inside the image.


contentRect

@property (nonatomic, readonly, nonnull) MMKRect *contentRect;

area with main information, except leg/borders


balloonRect

@property (nonatomic, readonly, nonnull) MMKRect *balloonRect;

area with balloon, except leg, shadows, etc.