Index: include/core/SkAnnotation.h |
=================================================================== |
--- include/core/SkAnnotation.h (revision 8005) |
+++ include/core/SkAnnotation.h (working copy) |
@@ -14,6 +14,7 @@ |
class SkDataSet; |
class SkStream; |
class SkWStream; |
+struct SkPoint; |
/** |
* Experimental class for annotating draws. Do not use directly yet. |
@@ -64,6 +65,18 @@ |
* Returns the canonical key whose payload is a URL |
*/ |
static const char* URL_Key(); |
+ |
+ /** |
+ * Returns the canonical key whose payload is the name of a destination to |
+ * be defined. |
+ */ |
+ static const char* Define_Named_Dest_Key(); |
+ |
+ /** |
+ * Returns the canonical key whose payload is the name of a destination to |
+ * be linked to. |
+ */ |
+ static const char* Link_Named_Dest_Key(); |
}; |
/////////////////////////////////////////////////////////////////////////////// |
@@ -86,4 +99,30 @@ |
*/ |
SK_API void SkAnnotateRectWithURL(SkCanvas*, const SkRect&, SkData*); |
+/** |
+ * Experimental! |
+ * |
+ * Annotate the canvas by associating a name with the specified point. |
+ * |
+ * If the backend of this canvas does not support annotations, this call is |
+ * safely ignored. |
+ * |
+ * The caller is responsible for managing its ownership of the SkData. |
+ */ |
+SK_API void SkAnnotateNamedDestination(SkCanvas*, const SkPoint&, SkData*); |
+ |
+/** |
+ * Experimental! |
+ * |
+ * Annotate the canvas by making the specified rectangle link to a named |
+ * destination. |
+ * |
+ * If the backend of this canvas does not support annotations, this call is |
+ * safely ignored. |
+ * |
+ * The caller is responsible for managing its ownership of the SkData. |
+ */ |
+SK_API void SkAnnotateLinkToDestination(SkCanvas*, const SkRect&, SkData*); |
+ |
+ |
#endif |