Trait webkit2gtk::prelude::PrintCustomWidgetExt
source · [−]pub trait PrintCustomWidgetExt: 'static {
fn title(&self) -> Option<GString>;
fn widget(&self) -> Option<Widget>;
fn connect_apply<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_update<F: Fn(&Self, &PageSetup, &PrintSettings) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
v2_16
only.Expand description
Required Methods
sourcefn title(&self) -> Option<GString>
fn title(&self) -> Option<GString>
Return the value of property::PrintCustomWidget::title
property.
Return the value of property::PrintCustomWidget::title
property for the given
self
object.
Returns
Title of the self
.
sourcefn widget(&self) -> Option<Widget>
fn widget(&self) -> Option<Widget>
Return the value of property::PrintCustomWidget::widget
property.
Return the value of property::PrintCustomWidget::widget
property for the given
self
object. The returned value will always be valid if called
from signal::PrintCustomWidget::apply
or signal::PrintCustomWidget::update
callbacks, but it will be None
if called after the
signal::PrintCustomWidget::apply
signal is emitted.
Returns
a gtk::Widget
.
sourcefn connect_apply<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_apply<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Emitted right before the printing will start. You should read the information from the widget and update the content based on it if necessary. The widget is not guaranteed to be valid at a later time.
sourcefn connect_update<F: Fn(&Self, &PageSetup, &PrintSettings) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_update<F: Fn(&Self, &PageSetup, &PrintSettings) + 'static>(
&self,
f: F
) -> SignalHandlerId
Emitted after change of selected printer in the dialog. The actual page setup and print settings are available and the custom widget can actualize itself according to their values.
page_setup
actual page setup
print_settings
actual print settings