pub trait AnnotExt: IsA<Annot> + Sealed + 'static {
// Provided methods
fn annot_type(&self) -> AnnotType { ... }
fn color(&self) -> Option<Color> { ... }
fn contents(&self) -> Option<GString> { ... }
fn flags(&self) -> AnnotFlag { ... }
fn modified(&self) -> Option<GString> { ... }
fn name(&self) -> Option<GString> { ... }
fn page_index(&self) -> i32 { ... }
fn rectangle(&self) -> Rectangle { ... }
fn set_color(&self, poppler_color: Option<&Color>) { ... }
fn set_contents(&self, contents: &str) { ... }
fn set_flags(&self, flags: AnnotFlag) { ... }
fn set_rectangle(&self, poppler_rect: &mut Rectangle) { ... }
}
Expand description
Provided Methods§
sourcefn annot_type(&self) -> AnnotType
fn annot_type(&self) -> AnnotType
sourcefn contents(&self) -> Option<GString>
fn contents(&self) -> Option<GString>
Retrieves the contents of self
.
§Returns
a new allocated string with the contents of self
. It
must be freed with g_free()
when done.
sourcefn flags(&self) -> AnnotFlag
fn flags(&self) -> AnnotFlag
Retrieves the flag field specifying various characteristics of the
self
.
§Returns
the flag field of self
.
sourcefn modified(&self) -> Option<GString>
fn modified(&self) -> Option<GString>
Retrieves the last modification data of self
. The returned
string will be either a PDF format date or a text string.
See also poppler_date_parse()
§Returns
a new allocated string with the last modification data of
self
. It must be freed with g_free()
when done.
sourcefn name(&self) -> Option<GString>
fn name(&self) -> Option<GString>
Retrieves the name of self
.
§Returns
a new allocated string with the name of self
. It must
be freed with g_free()
when done.
sourcefn page_index(&self) -> i32
fn page_index(&self) -> i32
sourcefn set_contents(&self, contents: &str)
fn set_contents(&self, contents: &str)
Sets the contents of self
to the given value,
replacing the current contents.
§contents
a text string containing the new contents
sourcefn set_rectangle(&self, poppler_rect: &mut Rectangle)
fn set_rectangle(&self, poppler_rect: &mut Rectangle)
Object Safety§
This trait is not object safe.