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; }
Available on crate feature v2_16 only.
Expand description

Trait containing all PrintCustomWidget methods.

Implementors

PrintCustomWidget

Required Methods

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.

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.

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.

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

actual print settings

Implementors