PrintOperation.connectBeginPrint

Connect to BeginPrint signal.

Emitted after the user has finished changing print settings in the dialog, before the actual rendering starts.

A typical use for ::begin-print is to use the parameters from the gtk.print_context.PrintContext and paginate the document accordingly, and then set the number of pages with gtk.print_operation.PrintOperation.setNPages.

class PrintOperation
ulong
connectBeginPrint
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

void callback(gtk.print_context.PrintContext context, gtk.print_operation.PrintOperation printOperation)

context the gtk.print_context.PrintContext for the current operation (optional)

printOperation the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID