Annotation

Constructors

this
this(EvAnnotation* evAnnotation, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

equal
bool equal(Annotation other)

Compare @annot and @other.

getAnnotationStruct
EvAnnotation* getAnnotationStruct(bool transferOwnership)

Get the main Gtk struct

getAnnotationType
EvAnnotationType getAnnotationType()
getArea
void getArea(Rectangle area)
getColor
void getColor(Color color)

Get the color of @annot.

getContents
string getContents()

Get the contents of @annot. The contents of @annot is the text that is displayed in the annotation, or an alternate description of the annotation's content for non-text annotations

getModified
string getModified()

Get the last modification date of @annot.

getName
string getName()

Get the name of @annot. The name of the annotation is a string that uniquely indenftifies @annot amongs all the annotations in the same page.

getPage
Page getPage()

Get the page where @annot appears.

getPageIndex
uint getPageIndex()

Get the index of the page where @annot appears. Note that the index is 0 based.

getRgba
void getRgba(RGBA rgba)

Gets the color of @annot.

getStruct
void* getStruct()

the main Gtk struct as a void*

setArea
bool setArea(Rectangle area)

Set the area of the annotation to @area.

setColor
bool setColor(Color color)

Set the color of the annotation to @color. You can monitor changes to the annotation's color by connecting to notify::color signal on @annot.

setContents
bool setContents(string contents)

Set the contents of @annot. You can monitor changes in the annotation's contents by connecting to notify::contents signal of @annot.

setModified
bool setModified(string modified)

Set the last modification date of @annot to @modified. To set the last modification date using a #GTime, use ev_annotation_set_modified_from_time() instead. You can monitor changes to the last modification date by connecting to the notify::modified signal on @annot.

setModifiedFromTime
bool setModifiedFromTime(GTime utime)

Set the last modification date of @annot to @utime. You can monitor changes to the last modification date by connecting to the notify::modified sinal on @annot. For the time-format used, see ev_document_misc_format_date().

setName
bool setName(string name)

Set the name of @annot. You can monitor changes of the annotation name by connecting to the notify::name signal on @annot.

setRgba
bool setRgba(RGBA rgba)

Set the color of the annotation to @rgba.

Static functions

getType
GType getType()

Variables

evAnnotation
EvAnnotation* evAnnotation;

the main Gtk struct

Meta