Skia
2D Graphics Library
SkAnnotation.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkAnnotation_DEFINED
9 #define SkAnnotation_DEFINED
10 
11 #include "include/core/SkTypes.h"
12 
13 class SkData;
14 struct SkPoint;
15 struct SkRect;
16 class SkCanvas;
17 
29 SK_API void SkAnnotateRectWithURL(SkCanvas*, const SkRect&, SkData*);
30 
39 SK_API void SkAnnotateNamedDestination(SkCanvas*, const SkPoint&, SkData*);
40 
51 
52 #endif
SK_API void SkAnnotateRectWithURL(SkCanvas *, const SkRect &, SkData *)
Annotate the canvas by associating the specified URL with the specified rectangle (in local coordinat...
SK_API void SkAnnotateNamedDestination(SkCanvas *, const SkPoint &, SkData *)
Annotate the canvas by associating a name with the specified point.
SK_API void SkAnnotateLinkToDestination(SkCanvas *, const SkRect &, SkData *)
Annotate the canvas by making the specified rectangle link to a named destination.
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
SkData holds an immutable data buffer.
Definition: SkData.h:25
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582