gi-webkit2-4.0.25: WebKit2 bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.PrintCustomWidget

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf PrintCustomWidget o) => IsPrintCustomWidget o Source #

Type class for types which can be safely cast to PrintCustomWidget, for instance with toPrintCustomWidget.

Instances

Instances details
(GObject o, IsDescendantOf PrintCustomWidget o) => IsPrintCustomWidget o Source # 
Instance details

Defined in GI.WebKit2.Objects.PrintCustomWidget

toPrintCustomWidget :: (MonadIO m, IsPrintCustomWidget o) => o -> m PrintCustomWidget Source #

Cast to PrintCustomWidget, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

getTitle

printCustomWidgetGetTitle Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintCustomWidget a) 
=> a

printCustomWidget: a PrintCustomWidget

-> m Text

Returns: Title of the printCustomWidget.

Return the value of PrintCustomWidget:title property for the given printCustomWidget object.

Since: 2.16

getWidget

printCustomWidgetGetWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintCustomWidget a) 
=> a

printCustomWidget: a PrintCustomWidget

-> m (Maybe Widget)

Returns: a Widget.

Return the value of PrintCustomWidget:widget property for the given printCustomWidget object. The returned value will always be valid if called from apply or update callbacks, but it will be Nothing if called after the apply signal is emitted.

Since: 2.16

new

printCustomWidgetNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsWidget a) 
=> a

widget: a Widget

-> Text

title: a widget's title

-> m PrintCustomWidget

Returns: a new PrintOperation.

Create a new PrintCustomWidget with given widget and title. The widget ownership is taken and it is destroyed together with the dialog even if this object could still be alive at that point. You typically want to pass a container widget with multiple widgets in it.

Since: 2.16

Properties

title

The title of the custom widget.

Since: 2.16

constructPrintCustomWidgetTitle :: IsPrintCustomWidget o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “title” property. This is rarely needed directly, but it is used by new.

getPrintCustomWidgetTitle :: (MonadIO m, IsPrintCustomWidget o) => o -> m Text Source #

Get the value of the “title” property. When overloading is enabled, this is equivalent to

get printCustomWidget #title

widget

The custom Widget that will be embedded in the dialog.

Since: 2.16

constructPrintCustomWidgetWidget :: (IsPrintCustomWidget o, IsWidget a) => a -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “widget” property. This is rarely needed directly, but it is used by new.

getPrintCustomWidgetWidget :: (MonadIO m, IsPrintCustomWidget o) => o -> m (Maybe Widget) Source #

Get the value of the “widget” property. When overloading is enabled, this is equivalent to

get printCustomWidget #widget

Signals

apply

type C_PrintCustomWidgetApplyCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PrintCustomWidgetApplyCallback = IO () Source #

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.

Since: 2.16

afterPrintCustomWidgetApply :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetApplyCallback -> m SignalHandlerId Source #

Connect a signal handler for the apply signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after printCustomWidget #apply callback

onPrintCustomWidgetApply :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetApplyCallback -> m SignalHandlerId Source #

Connect a signal handler for the apply signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on printCustomWidget #apply callback

update

type C_PrintCustomWidgetUpdateCallback = Ptr () -> Ptr PageSetup -> Ptr PrintSettings -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type PrintCustomWidgetUpdateCallback Source #

Arguments

 = PageSetup

pageSetup: actual page setup

-> PrintSettings

printSettings: actual print settings

-> IO () 

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.

Since: 2.16

afterPrintCustomWidgetUpdate :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetUpdateCallback -> m SignalHandlerId Source #

Connect a signal handler for the update signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after printCustomWidget #update callback

onPrintCustomWidgetUpdate :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetUpdateCallback -> m SignalHandlerId Source #

Connect a signal handler for the update signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on printCustomWidget #update callback