JubeatPlus 3.9.11
Loading...
Searching...
No Matches
BalloonView Class Reference

A speech balloon: a rounded rectangle with one triangular arrow. More...

#include <BalloonView.h>

Inheritance diagram for BalloonView:
Collaboration diagram for BalloonView:

Properties

BalloonViewArrowDirection arrowDirection
 The edge the arrow sits on.
CGFloat arrowPosision
 How far along its edge the arrow's centre sits, in points from the leading edge.
CGSize arrowSize
 The arrow's base width and its height measured outwards from the edge.
UIColor * balloonColor
 The balloon's fill.
UIColor * borderColor
 The outline's colour.
CGFloat borderRadius
 The corner radius.
CGFloat borderWidth
 The outline's width.
UIEdgeInsets contentEdgeInsets
 Padding between the balloon's inner edge and contentRect.
CGRect contentRect
 The rectangle a caller may lay content out in.

Detailed Description

A speech balloon: a rounded rectangle with one triangular arrow.

Property Documentation

◆ arrowDirection

- (BalloonViewArrowDirection) arrowDirection
readwritenonatomicassign

The edge the arrow sits on.

Defaults to BalloonViewArrowDirectionUp.

◆ arrowPosision

- (CGFloat) arrowPosision
readwritenonatomicassign

How far along its edge the arrow's centre sits, in points from the leading edge.

Defaults to 0.3, which is below the minimum the drawing code enforces, so the default always clamps up to borderRadius plus half the arrow width. The spelling is the binary's.

◆ arrowSize

- (CGSize) arrowSize
readwritenonatomicassign

The arrow's base width and its height measured outwards from the edge.

Defaults to 20 x 12.

◆ balloonColor

- (UIColor*) balloonColor
readwritenonatomicstrong

The balloon's fill.

Defaults to black at 0.6 alpha.

◆ borderColor

- (UIColor*) borderColor
readwritenonatomicstrong

The outline's colour.

Defaults to white.

◆ borderRadius

- (CGFloat) borderRadius
readwritenonatomicassign

The corner radius.

Defaults to 8.

◆ borderWidth

- (CGFloat) borderWidth
readwritenonatomicassign

The outline's width.

Defaults to 2.

The outline straddles the balloon's edge, so the drawing code insets every edge by half of it. A value of zero or less suppresses the stroke colour and width, though not the stroke itself.

◆ contentEdgeInsets

- (UIEdgeInsets) contentEdgeInsets
readwritenonatomicassign

Padding between the balloon's inner edge and contentRect.

Defaults to zero.

◆ contentRect

- (CGRect) contentRect
readnonatomicassign

The rectangle a caller may lay content out in.

The bounds inset by the border, then by the arrow's height on whichever edge carries it, then by contentEdgeInsets. Computed on each call; there is no backing ivar.

Ghidra address:
0x1ba468
Ghidra address:
0x1ba468

The documentation for this class was generated from the following files: