Method
XdpPortalprepare_print
Declaration [src]
void
xdp_portal_prepare_print (
XdpPortal* portal,
XdpParent* parent,
const char* title,
GVariant* settings,
GVariant* page_setup,
XdpPrintFlags flags,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
)
Description [src]
Presents a print dialog to the user and returns print settings and page setup.
When the request is done, callback
will be called. You can then
call xdp_portal_prepare_print_finish()
to get the results.
Parameters
parent |
XdpParent |
Parent window information. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
title |
const char* |
Tile for the print dialog. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
settings |
GVariant* |
Serialized print settings. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
page_setup |
GVariant* |
Serialized page setup. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
flags |
XdpPrintFlags |
Options for this call. |
|
cancellable |
GCancellable* |
Optional |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
callback |
GAsyncReadyCallback |
A callback to call when the request is done. |
|
data |
gpointer |
Data to pass to |