### ----------------------------------------------------
### -- PDF::Class
### -- Licenses: Artistic-2.0
### -- Authors: David Warring
### -- File: lib/PDF/Annot/Caret.rakumod
### ----------------------------------------------------
unit class PDF::Annot::Caret;

use PDF::Annot::_Markup;
also is PDF::Annot::_Markup;

use PDF::COS::Tie;
use PDF::COS::Name;

use ISO_32000::Table_180-Additional_entries_specific_to_a_caret_annotation;
also does ISO_32000::Table_180-Additional_entries_specific_to_a_caret_annotation;

use ISO_32000_2::Table_183-Additional_entries_specific_to_a_caret_annotation;
also does ISO_32000_2::Table_183-Additional_entries_specific_to_a_caret_annotation;

has Numeric @.RD is entry(:len(4), :alias<rectangle-differences>);  # (Optional; PDF 1.5) A set of four numbers describing the numerical differences between two rectangles: the Rect entry of the annotation and the actual boundaries of the underlying square or circle. Such a difference can occur in situations where a border effect (described by BE) causes the size of the Rect to increase beyond that of the square or circle.
# The four numbers correspond to the differences in default user space between the left, top, right, and bottom coordinates of Rect and those of the square or circle, respectively. Each value must be greater than or equal to 0. The sum of the top and bottom differences must be less than the height of Rect, and the sum of the left and right differences must be less than the width of Rect.

my subset Symbol of PDF::COS::Name where 'P'|'None';
has Symbol $.Sy is entry(:alias<symbol>) # (Optional) A name specifying a symbol that shall be associated with the caret:
    # P - A new paragraph symbol (¶) should be associated with thecaret.
    # None - No symbol should be associated with the caret.


