Trait poppler::prelude::AnnotMarkupExt
source · pub trait AnnotMarkupExt: IsA<AnnotMarkup> + Sealed + 'static {
Show 14 methods
// Provided methods
fn date(&self) -> Option<Date> { ... }
fn external_data(&self) -> AnnotExternalDataType { ... }
fn label(&self) -> Option<GString> { ... }
fn opacity(&self) -> f64 { ... }
fn is_popup_is_open(&self) -> bool { ... }
fn popup_rectangle(&self) -> Option<Rectangle> { ... }
fn reply_to(&self) -> AnnotMarkupReplyType { ... }
fn subject(&self) -> Option<GString> { ... }
fn has_popup(&self) -> bool { ... }
fn set_label(&self, label: Option<&str>) { ... }
fn set_opacity(&self, opacity: f64) { ... }
fn set_popup(&self, popup_rect: &mut Rectangle) { ... }
fn set_popup_is_open(&self, is_open: bool) { ... }
fn set_popup_rectangle(&self, poppler_rect: &mut Rectangle) { ... }
}
Expand description
Trait containing all AnnotMarkup
methods.
§Implementors
AnnotCircle
, AnnotFileAttachment
, AnnotFreeText
, AnnotMarkup
Provided Methods§
sourcefn external_data(&self) -> AnnotExternalDataType
fn external_data(&self) -> AnnotExternalDataType
sourcefn opacity(&self) -> f64
fn opacity(&self) -> f64
Retrieves the opacity value of self
.
§Returns
the opacity value of self
,
between 0 (transparent) and 1 (opaque)
sourcefn is_popup_is_open(&self) -> bool
fn is_popup_is_open(&self) -> bool
sourcefn popup_rectangle(&self) -> Option<Rectangle>
fn popup_rectangle(&self) -> Option<Rectangle>
sourcefn reply_to(&self) -> AnnotMarkupReplyType
fn reply_to(&self) -> AnnotMarkupReplyType
sourcefn set_opacity(&self, opacity: f64)
fn set_opacity(&self, opacity: f64)
Sets the opacity of self
. This value applies to
all visible elements of self
in its closed state,
but not to the pop-up window that appears when it’s openened
§opacity
a constant opacity value, between 0 (transparent) and 1 (opaque)
sourcefn set_popup_is_open(&self, is_open: bool)
fn set_popup_is_open(&self, is_open: bool)
Sets the state of the popup window related to self
.
§is_open
whether popup window should initially be displayed open
sourcefn set_popup_rectangle(&self, poppler_rect: &mut Rectangle)
fn set_popup_rectangle(&self, poppler_rect: &mut Rectangle)
Sets the rectangle of the popup window related to self
.
This doesn’t have any effect if self
doesn’t have a
popup associated, use set_popup()
to associate
a popup window to a AnnotMarkup
.
§poppler_rect
a Rectangle
to set
Object Safety§
This trait is not object safe.