Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype PrintCustomWidget = PrintCustomWidget (ManagedPtr PrintCustomWidget)
- class (GObject o, IsDescendantOf PrintCustomWidget o) => IsPrintCustomWidget o
- toPrintCustomWidget :: (MonadIO m, IsPrintCustomWidget o) => o -> m PrintCustomWidget
- printCustomWidgetGetTitle :: (HasCallStack, MonadIO m, IsPrintCustomWidget a) => a -> m Text
- printCustomWidgetGetWidget :: (HasCallStack, MonadIO m, IsPrintCustomWidget a) => a -> m (Maybe Widget)
- printCustomWidgetNew :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m PrintCustomWidget
- constructPrintCustomWidgetTitle :: (IsPrintCustomWidget o, MonadIO m) => Text -> m (GValueConstruct o)
- getPrintCustomWidgetTitle :: (MonadIO m, IsPrintCustomWidget o) => o -> m Text
- constructPrintCustomWidgetWidget :: (IsPrintCustomWidget o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getPrintCustomWidgetWidget :: (MonadIO m, IsPrintCustomWidget o) => o -> m (Maybe Widget)
- type C_PrintCustomWidgetApplyCallback = Ptr () -> Ptr () -> IO ()
- type PrintCustomWidgetApplyCallback = IO ()
- afterPrintCustomWidgetApply :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetApplyCallback -> m SignalHandlerId
- genClosure_PrintCustomWidgetApply :: MonadIO m => PrintCustomWidgetApplyCallback -> m (GClosure C_PrintCustomWidgetApplyCallback)
- mk_PrintCustomWidgetApplyCallback :: C_PrintCustomWidgetApplyCallback -> IO (FunPtr C_PrintCustomWidgetApplyCallback)
- noPrintCustomWidgetApplyCallback :: Maybe PrintCustomWidgetApplyCallback
- onPrintCustomWidgetApply :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetApplyCallback -> m SignalHandlerId
- wrap_PrintCustomWidgetApplyCallback :: PrintCustomWidgetApplyCallback -> C_PrintCustomWidgetApplyCallback
- type C_PrintCustomWidgetUpdateCallback = Ptr () -> Ptr PageSetup -> Ptr PrintSettings -> Ptr () -> IO ()
- type PrintCustomWidgetUpdateCallback = PageSetup -> PrintSettings -> IO ()
- afterPrintCustomWidgetUpdate :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetUpdateCallback -> m SignalHandlerId
- genClosure_PrintCustomWidgetUpdate :: MonadIO m => PrintCustomWidgetUpdateCallback -> m (GClosure C_PrintCustomWidgetUpdateCallback)
- mk_PrintCustomWidgetUpdateCallback :: C_PrintCustomWidgetUpdateCallback -> IO (FunPtr C_PrintCustomWidgetUpdateCallback)
- noPrintCustomWidgetUpdateCallback :: Maybe PrintCustomWidgetUpdateCallback
- onPrintCustomWidgetUpdate :: (IsPrintCustomWidget a, MonadIO m) => a -> PrintCustomWidgetUpdateCallback -> m SignalHandlerId
- wrap_PrintCustomWidgetUpdateCallback :: PrintCustomWidgetUpdateCallback -> C_PrintCustomWidgetUpdateCallback
Exported types
newtype PrintCustomWidget Source #
Memory-managed wrapper type.
PrintCustomWidget (ManagedPtr PrintCustomWidget) |
Instances
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
(GObject o, IsDescendantOf PrintCustomWidget o) => IsPrintCustomWidget o Source # | |
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 #
:: (HasCallStack, MonadIO m, IsPrintCustomWidget a) | |
=> a |
|
-> m Text | Returns: Title of the |
Return the value of PrintCustomWidget
:title
property for the given
printCustomWidget
object.
Since: 2.16
getWidget
printCustomWidgetGetWidget Source #
:: (HasCallStack, MonadIO m, IsPrintCustomWidget a) | |
=> a |
|
-> m (Maybe Widget) | Returns: a |
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
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> Text |
|
-> m PrintCustomWidget | Returns: a new |
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, MonadIO m) => Text -> m (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, MonadIO m, IsWidget a) => a -> m (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
genClosure_PrintCustomWidgetApply :: MonadIO m => PrintCustomWidgetApplyCallback -> m (GClosure C_PrintCustomWidgetApplyCallback) Source #
Wrap the callback into a GClosure
.
mk_PrintCustomWidgetApplyCallback :: C_PrintCustomWidgetApplyCallback -> IO (FunPtr C_PrintCustomWidgetApplyCallback) Source #
Generate a function pointer callable from C code, from a C_PrintCustomWidgetApplyCallback
.
noPrintCustomWidgetApplyCallback :: Maybe PrintCustomWidgetApplyCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PrintCustomWidgetApplyCallback
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
wrap_PrintCustomWidgetApplyCallback :: PrintCustomWidgetApplyCallback -> C_PrintCustomWidgetApplyCallback Source #
Wrap a PrintCustomWidgetApplyCallback
into a C_PrintCustomWidgetApplyCallback
.
update
type C_PrintCustomWidgetUpdateCallback = Ptr () -> Ptr PageSetup -> Ptr PrintSettings -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PrintCustomWidgetUpdateCallback Source #
= PageSetup |
|
-> PrintSettings |
|
-> 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
genClosure_PrintCustomWidgetUpdate :: MonadIO m => PrintCustomWidgetUpdateCallback -> m (GClosure C_PrintCustomWidgetUpdateCallback) Source #
Wrap the callback into a GClosure
.
mk_PrintCustomWidgetUpdateCallback :: C_PrintCustomWidgetUpdateCallback -> IO (FunPtr C_PrintCustomWidgetUpdateCallback) Source #
Generate a function pointer callable from C code, from a C_PrintCustomWidgetUpdateCallback
.
noPrintCustomWidgetUpdateCallback :: Maybe PrintCustomWidgetUpdateCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PrintCustomWidgetUpdateCallback
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