Hoogle Search

Within LTS Haskell 24.37 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. printOperationRun :: (PrintOperationClass self, WindowClass parent) => self -> PrintOperationAction -> parent -> IO PrintOperationResult

    gtk 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).

  2. printOperationSetAllowAsync :: PrintOperationClass self => self -> Bool -> IO ()

    gtk 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.

  3. printOperationSetCurrentPage :: PrintOperationClass self => self -> Int -> IO ()

    gtk 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.

  4. printOperationSetCustomTabLabel :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()

    gtk Graphics.UI.Gtk.Printing.PrintOperation

    Sets the label for the tab holding custom widgets.

  5. printOperationSetDeferDrawing :: PrintOperationClass self => self -> IO ()

    gtk Graphics.UI.Gtk.Printing.PrintOperation

    Sets up the PrintOperation to wait for calling of printOperationDrawPageFinish from application. It can be used for drawing page in another thread. This function must be called in the callback of "draw-page" signal.

    • Available since Gtk+ version 2.16

  6. printOperationSetExportFilename :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()

    gtk Graphics.UI.Gtk.Printing.PrintOperation

    Sets up the PrintOperation to generate a file instead of showing the print dialog. The intended use of this function is for implementing "Export to PDF" actions. Currently, PDF is the only supported format. "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.

  7. printOperationSetJobName :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()

    gtk Graphics.UI.Gtk.Printing.PrintOperation

    Sets the name of the print job. The name is 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.

  8. printOperationSetNPages :: PrintOperationClass self => self -> Int -> IO ()

    gtk Graphics.UI.Gtk.Printing.PrintOperation

    Sets 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 'draw-page' signal will be for page nPages - 1.

  9. printOperationSetShowProgress :: PrintOperationClass self => self -> Bool -> IO ()

    gtk Graphics.UI.Gtk.Printing.PrintOperation

    If showProgress is True, the print operation will show a progress dialog during the print operation.

  10. printOperationSetTrackPrintStatus :: PrintOperationClass self => self -> Bool -> IO ()

    gtk Graphics.UI.Gtk.Printing.PrintOperation

    If track_status is True, the print operation will try to continue report on the status of the print job in the printer queues and printer. This can allow your application to show things like "out of paper" issues, and when the print job actually reaches the printer. This function is often implemented using some form of polling, so it should not be enabled unless needed.

Page 64 of many | Previous | Next