A widget for selecting printing properties
PtWidget --> PtBasic --> PtContainer --> PtPrintSel
For more information, see the diagram of the widget hierarchy.
<photon/PtPrintSel.h>
The PtPrintSel widget lets a user select a printer, change its properties, and optionally select a range of pages and the number of copies to print.
A PtPrintSel widget.
Resource | C type | Pt type | Default |
---|---|---|---|
Pt_ARG_PRINT_CONTEXT | PpPrintContext_t | Struct | NULL |
Pt_ARG_PRINT_FLAGS | unsigned | Flag | See below |
Pt_CB_PRINT_PROPS | PtCallback_t * | Link | NULL |
C type | Pt type | Default |
---|---|---|
PpPrintContext_t | Struct | NULL |
The current Print Context settings. This resource isn't available through PhAB, but you'll need a Print Context in order to do any printing. Use PpPrintCreatePC() to create a Print Context, and PpPrintSetPC() to change its settings.
When you use PtGetResources() to get this resource, you must provide a PpPrintContext_t structure, which is filled in directly with the values of the context. Unlike most calls to PtGetResources(), you aren't given a pointer into the widget's internal memory. |
C type | Pt type | Default |
---|---|---|
unsigned | Flag | Pt_PRINTSEL_ALL_PANES | Pt_PRINTSEL_PROP_APP | Pt_PRINTSEL_NO_SELECT_RANGE |
Flags to modify the appearance of the widget:
C type | Pt type | Default |
---|---|---|
PtCallback_t * | Link | NULL |
A list of callbacks that are invoked when:
Each callback is passed a PtCallbackInfo_t structure that contains at least the following members:
These callbacks should return Pt_CONTINUE.
If the widget modifies an inherited resource, the "Default override" column indicates the new value. This modification affects any subclasses of the widget.
The PtPrintSel class defines the following convenience function: