PapersDocument.AnnotationStamp

g GObject.Object GObject.Object PapersDocument.Annotation PapersDocument.Annotation GObject.Object->PapersDocument.Annotation PapersDocument.AnnotationMarkup PapersDocument.AnnotationMarkup PapersDocument.Annotation->PapersDocument.AnnotationMarkup PapersDocument.AnnotationStamp PapersDocument.AnnotationStamp PapersDocument.AnnotationMarkup->PapersDocument.AnnotationStamp

Subclasses:

None

Methods

Inherited:

PapersDocument.AnnotationMarkup (11), PapersDocument.Annotation (19), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (page)

get_surface ()

set_surface (surface)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

PapersDocument.AnnotationMarkup (6), PapersDocument.Annotation (8)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class PapersDocument.AnnotationStamp(**kwargs)
Bases:

PapersDocument.AnnotationMarkup

Abstract:

No

Structure:

PapersDocument.AnnotationStampClass

classmethod new(page)
Parameters:

page (PapersDocument.Page) – a PapersDocument.Page

Return type:

PapersDocument.Annotation

Creates a new stamp annotation. ATM only the custom image type via PapersDocument.AnnotationStamp.set_surface is implemented, other stamps (draft, etc.) are not.

New in version 48.0.

get_surface()
Returns:

the custom cairo surface of the stamp, if it exists.

Return type:

cairo.Surface

Set the custom cairo surface of the stamp.

New in version 48.0.

set_surface(surface)
Parameters:

surface (cairo.Surface) – a cairo.Surface

Set the custom cairo surface of the stamp.

New in version 48.0.