EvinceDocument.Annotation¶
- Subclasses:
 EvinceDocument.AnnotationAttachment,EvinceDocument.AnnotationText,EvinceDocument.AnnotationTextMarkup
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
The area of the page where the annotation is placed  | 
||
r/w  | 
The annotation color   | 
||
r/w  | 
The annotation contents  | 
||
r/w  | 
Last modified date as string  | 
||
r/w  | 
The annotation unique name  | 
||
w/co  | 
The page wehere the annotation is  | 
||
r/w  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class EvinceDocument.Annotation(**kwargs)¶
 - Bases:
 - Abstract:
 Yes
- Structure:
 
- equal(other)¶
 - Parameters:
 other (
EvinceDocument.Annotation) – anotherEvinceDocument.Annotation- Returns:
 - Return type:
 
Compare self and other.
- get_annotation_type()¶
 - Return type:
 
- get_area()¶
 - Returns:
 a
EvinceDocument.Rectangleto be filled with the annotation area- Return type:
 area:
EvinceDocument.Rectangle
Gets the area of self.
New in version 3.18.
- get_color()¶
 - 
Get the color of self.
Deprecated since version 3.6: Use
EvinceDocument.Annotation.get_rgba() instead. 
- get_contents()¶
 - Returns:
 a string with the contents of the annotation or
Noneif self has no contents.- Return type:
 
Get the contents of self. The contents of self is the text that is displayed in the annotation, or an alternate description of the annotation’s content for non-text annotations
- get_modified()¶
 - Returns:
 A string containing the last modification date.
- Return type:
 
Get the last modification date of self.
- get_name()¶
 - Returns:
 the string with the annotation’s name.
- Return type:
 
Get the name of self. The name of the annotation is a string that uniquely indenftifies self amongs all the annotations in the same page.
- get_page()¶
 - Returns:
 the
EvinceDocument.Pagewhere self appears- Return type:
 
Get the page where self appears.
- get_page_index()¶
 - Returns:
 the page index.
- Return type:
 
Get the index of the page where self appears. Note that the index is 0 based.
- get_rgba()¶
 - 
Gets the color of self.
New in version 3.6.
 
- set_area(area)¶
 - Parameters:
 area (
EvinceDocument.Rectangle) – aEvinceDocument.Rectangle- Returns:
 - Return type:
 
Set the area of the annotation to area.
New in version 3.18.
- set_color(color)¶
 - Parameters:
 - Returns:
 - Return type:
 
Set the color of the annotation to color. You can monitor changes to the annotation’s color by connecting to notify::color signal on self.
Deprecated since version 3.6: Use
EvinceDocument.Annotation.set_rgba() instead.
- set_contents(contents)¶
 - Parameters:
 contents (
str) –- Returns:
 - Return type:
 
Set the contents of self. You can monitor changes in the annotation’s contents by connecting to notify::contents signal of self.
- set_modified(modified)¶
 - Parameters:
 modified (
str) – string with the last modification date.- Returns:
 Trueif the last modification date has been updated,Falseotherwise.- Return type:
 
Set the last modification date of self to modified. To set the last modification date using a #time_t, use
EvinceDocument.Annotation.set_modified_from_time_t() instead. You can monitor changes to the last modification date by connecting to the notify::modified signal on self.
- set_modified_from_time(utime)¶
 - Parameters:
 utime (
int) – a #GTime- Returns:
 Trueif the last modified date has been updated,Falseotherwise.- Return type:
 
Set the last modification date of self to utime. You can monitor changes to the last modification date by connecting to the notify::modified sinal on self. For the time-format used, see
EvinceDocument.Document.misc_format_date().Deprecated since version 3.42: use
EvinceDocument.Annotation.set_modified_from_time_tinstead as GTime is deprecated because it is not year-2038 safe
- set_modified_from_time_t(utime)¶
 - Parameters:
 utime (
int) – a #time_t- Returns:
 Trueif the last modified date has been updated,Falseotherwise.- Return type:
 
Set the last modification date of self to utime. You can monitor changes to the last modification date by connecting to the notify::modified sinal on self. For the time-format used, see
EvinceDocument.Document.misc_format_datetime().
Property Details¶
- EvinceDocument.Annotation.props.area¶
 - Name:
 area- Type:
 - Default Value:
 - Flags:
 
The area of the page where the annotation is placed.
New in version 3.18.
- EvinceDocument.Annotation.props.color¶
 - 
The colour of the annotation as a
Gdk.Color.Deprecated since version 3.6: Use
EvinceDocument.Annotation:rgbainstead. 
- EvinceDocument.Annotation.props.contents¶
 - 
The annotation contents
 
- EvinceDocument.Annotation.props.modified¶
 - 
Last modified date as string
 
- EvinceDocument.Annotation.props.name¶
 - 
The annotation unique name
 
- EvinceDocument.Annotation.props.page¶
 - Name:
 page- Type:
 - Default Value:
 - Flags:
 
The page wehere the annotation is