PrintOperation.connectPaginate
gulong connectPaginate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.print_context.PrintContext)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.print_operation.PrintOperation)))
&& Parameters!T.length < 3)Connect to Paginate signal.
Emitted after the ::begin-print signal, but before the actual rendering starts.
It keeps getting emitted until a connected signal handler returns true.
The ::paginate signal is intended to be used for paginating a document in small chunks, to avoid blocking the user interface for a long time. The signal handler should update the number of pages using [gtk.print_operation.PrintOperation.setNPages], and return true if the document has been completely paginated.
If you don't need to do pagination in chunks, you can simply do it all in the ::begin-print handler, and set the number of pages from there.
Parameters
callback | signal callback delegate or function to connect bool 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) Returns true if pagination is complete |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID