Top | ![]() |
![]() |
![]() |
![]() |
void | xdp_portal_take_screenshot () |
char * | xdp_portal_take_screenshot_finish () |
void | xdp_portal_pick_color () |
GVariant * | xdp_portal_pick_color_finish () |
These functions let the application take a screenshot or pick a color.
The underlying portal is org.freedesktop.portal.Screenshot.
void xdp_portal_take_screenshot (XdpPortal *portal
,XdpParent *parent
,XdpScreenshotFlags flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer data
);
Takes a screenshot.
When the request is done, callback
will be called. You can then
call xdp_portal_take_screenshot_finish()
to get the results.
portal |
||
parent |
parent window information. |
[nullable] |
flags |
options for this call |
|
cancellable |
optional GCancellable. |
[nullable] |
callback |
a callback to call when the request is done. |
[scope async] |
data |
data to pass to |
[closure] |
char * xdp_portal_take_screenshot_finish (XdpPortal *portal
,GAsyncResult *result
,GError **error
);
Finishes a screenshot request, and returns the result in the form of a URI pointing to an image file.
void xdp_portal_pick_color (XdpPortal *portal
,XdpParent *parent
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer data
);
Lets the user pick a color from the screen.
When the request is done, callback
will be called. You can then
call xdp_portal_pick_color_finish()
to get the results.
portal |
||
parent |
parent window information. |
[nullable] |
cancellable |
optional GCancellable. |
[nullable] |
callback |
a callback to call when the request is done. |
[scope async] |
data |
data to pass to |
[closure] |
GVariant * xdp_portal_pick_color_finish (XdpPortal *portal
,GAsyncResult *result
,GError **error
);
Finishes a pick-color request, and returns the result in the form of a GVariant of the form (ddd), containing red, green and blue components in the range [0,1].