PTSquare
@interface PTSquare : PTMarkup
Square annotation is used to display a rectangle on the page. When opened, a square annotation can display a pop-up window containing the text of the associated note. The rectangle may be inscribed and possibly padded within the annotation rectangle defined by the annotation dictionary’s Rect entry.
-
Creates an Square annotation and initializes it using given Cos/SDF object.
Note
The constructor does not copy any data, but is instead the logical equivalent of a type cast.Parameters
d
The Cos/SDF object to initialze the annotation with.
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Creates a new Square annotation in the specified document.
Declaration
Parameters
doc
A document to which the annotation is added.
pos
A rectangle specifying the annotation’s bounds, in user space coordinates.
Return Value
A newly created blank Square annotation.