Hoogle Search
Within LTS Haskell 24.10 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
printOperationNPages :: PrintOperationClass self => Attr self Intgtk3 Graphics.UI.Gtk.Printing.PrintOperation The number of pages in the document. This must be set to a positive number before the rendering starts. It may be set in a beginPrint signal handler. Note that the page numbers passed to the requestPageSetup and drawPage signals are 0-based, i.e. if the user chooses to print all pages, the last drawPage signal will be for page nPages - 1. Allowed values: >= GMaxulong Default value: -1 Since 2.10
printOperationNPagesToPrint :: PrintOperationClass self => ReadAttr self Intgtk3 Graphics.UI.Gtk.Printing.PrintOperation The number of pages that will be printed. Note that this value is set during print preparation phase ('PrintStatusPreparing'), so this value should never be get before the data generation phase ('PrintStatusGeneratingData'). You can connect to the statusChanged signal and call printOperationGetNPagesToPrint when print status is 'PrintStatusGeneratingData'. This is typically used to track the progress of print operation. Allowed values: >= GMaxulong Default value: -1 Since 2.18
printOperationNew :: IO PrintOperationgtk3 Graphics.UI.Gtk.Printing.PrintOperation Creates a new PrintOperation.
printOperationPreviewEndPreview :: PrintOperationPreviewClass self => self -> IO ()gtk3 Graphics.UI.Gtk.Printing.PrintOperation Ends a preview. This function must be called to finish a custom print preview.
printOperationPreviewIsSelected :: PrintOperationPreviewClass self => self -> Int -> IO Boolgtk3 Graphics.UI.Gtk.Printing.PrintOperation Returns whether the given page is included in the set of pages that have been selected for printing.
printOperationPreviewRenderPage :: PrintOperationPreviewClass self => self -> Int -> IO ()gtk3 Graphics.UI.Gtk.Printing.PrintOperation Renders a page to the preview, using the print context that was passed to the "preview" handler together with preview. A custom iprint preview should use this function in its expose handler to render the currently selected page. Note that this function requires a suitable cairo context to be associated with the print context.
-
gtk3 Graphics.UI.Gtk.Printing.PrintOperation The PrintSettings used for initializing the dialog. Setting this property is typically used to re-establish print settings from a previous print operation, see printOperationRun. Since 2.10
-
gtk3 Graphics.UI.Gtk.Printing.PrintOperation Runs the print operation, by first letting the user modify print settings in the print dialog, and then print the document. Normally that this function does not return until the rendering of all pages is complete. You can connect to the statusChanged signal on op to obtain some information about the progress of the print operation. Furthermore, it may use a recursive mainloop to show the print dialog. If you call printOperationSetAllowAsync or set the allowAsync property the operation will run asynchronously if this is supported on the platform. The done signal will be emitted with the result of the operation when the it is done (i.e. when the dialog is canceled, or when the print succeeds or fails).
printOperationSetAllowAsync :: PrintOperationClass self => self -> Bool -> IO ()gtk3 Graphics.UI.Gtk.Printing.PrintOperation Sets whether the printOperationRun may return before the print operation is completed. Note that some platforms may not allow asynchronous operation.
printOperationSetCurrentPage :: PrintOperationClass self => self -> Int -> IO ()gtk3 Graphics.UI.Gtk.Printing.PrintOperation Sets the current page. If this is called before printOperationRun, the user will be able to select to print only the current page. Note that this only makes sense for pre-paginated documents.