Method
PapersViewAnnotationsContextadd_annotation_sync
since: 48.0
Declaration [src]
PpsAnnotation*
pps_annotations_context_add_annotation_sync (
PpsAnnotationsContext* self,
gint page_index,
PpsAnnotationType type,
const PpsPoint* start,
const PpsPoint* end,
const GdkRGBA* color,
const gpointer user_data
)
Parameters
page_index-
Type:
gintThe index of the page where the annotation will be added.
type-
Type:
PpsAnnotationTypeThe type of annotation to add.
start-
Type:
PpsPointPoint where to start creating an annotation.
The data is owned by the caller of the method. end-
Type:
PpsPointPoint where to end creating the annotation. It is ignored for TEXT annotations.
The data is owned by the caller of the method. color-
Type:
GdkRGBAThe color to give to the annotation.
The data is owned by the caller of the method. user_data-
Type:
const gpointerA pointer with auxiliary data that is annotation-dependent.
The argument can be NULL.
Return value
Type: PpsAnnotation
The newly created annotation.
| The returned data is owned by the instance. |