struct Gtk::PrintOperation::PaginateSignal
- Gtk::PrintOperation::PaginateSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
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::PrintOperation#n_pages=
, 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.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/print_operation.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Gtk::PrintContext, Bool)) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::PrintContext, Bool), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::PrintOperation, Gtk::PrintContext, Bool), *, after : Bool = false) : GObject::SignalConnection
- #emit(context : Gtk::PrintContext) : Nil
-
#name : String
The signal name
Instance methods inherited from struct GObject::Signal
[](detail : String) : self
[],
name : String
name
Constructor methods inherited from struct GObject::Signal
new(source : GObject::Object, detail : String? = nil)
new
Instance Method Detail
def connect(*, after : Bool = false, &block : Proc(Gtk::PrintContext, Bool)) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::PrintContext, Bool), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::PrintOperation, Gtk::PrintContext, Bool), *, after : Bool = false) : GObject::SignalConnection
#