Hoogle Search
Within LTS Haskell 24.9 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
printOperationExportFilename :: (PrintOperationClass self, GlibString string) => Attr self stringgtk Graphics.UI.Gtk.Printing.PrintOperation The name of a file to generate instead of showing the print dialog. Currently, PDF is the only supported format. The intended use of this property is for implementing "Export to PDF" actions. "Print to PDF" support is independent of this and is done by letting the user pick the "Print to PDF" item from the list of printers in the print dialog. Default value: Nothing Since 2.10
printOperationGetError :: PrintOperationClass self => self -> IO ()gtk Graphics.UI.Gtk.Printing.PrintOperation Call this when the result of a print operation is PrintOperationResultError, either as returned by printOperationRun, or in the done signal handler. The returned GError will contain more details on what went wrong.
printOperationGetNPagesToPrint :: PrintOperationClass self => self -> IO Intgtk Graphics.UI.Gtk.Printing.PrintOperation Returns the number of pages that will be printed. Note that this value is set during print preparation phase (PrintStatusPreparing), so this function should never be called 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.
- Available since Gtk+ version 2.18
printOperationGetStatus :: PrintOperationClass self => self -> IO PrintStatusgtk Graphics.UI.Gtk.Printing.PrintOperation Returns the status of the print operation. Also see printOperationGetStatusString.
printOperationGetStatusString :: (PrintOperationClass self, GlibString string) => self -> IO stringgtk Graphics.UI.Gtk.Printing.PrintOperation Returns a string representation of the status of the print operation. The string is translated and suitable for displaying the print status e.g. in a Statusbar. Use printOperationGetStatus to obtain a status value that is suitable for programmatic use.
printOperationHasSelection :: PrintOperationClass self => Attr self Boolgtk Graphics.UI.Gtk.Printing.PrintOperation Determines whether there is a selection in your application. This can allow your application to print the selection. This is typically used to make a Selection button sensitive. Default value: False Since 2.18
printOperationIsFinished :: PrintOperationClass self => self -> IO Boolgtk Graphics.UI.Gtk.Printing.PrintOperation A convenience function to find out if the print operation is finished, either successfully (PrintStatusFinished) or unsuccessfully (PrintStatusFinishedAborted). Note: when you enable print status tracking the print operation can be in a non-finished state even after done has been called, as the operation status then tracks the print job status on the printer.
printOperationJobName :: (PrintOperationClass self, GlibString string) => Attr self stringgtk Graphics.UI.Gtk.Printing.PrintOperation A string used to identify the job (e.g. in monitoring applications like eggcups). If you don't set a job name, GTK+ picks a default one by numbering successive print jobs. Default value: "" Since 2.10
printOperationNPages :: PrintOperationClass self => Attr self Intgtk 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 Intgtk 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