get_selected_region


Description:

[ Version ( since = "0.16" ) ]
public Region get_selected_region (double scale, SelectionStyle style, Rectangle selection)

Returns a region containing the area that would be rendered by render_selection.

The returned region must be freed with cairo_region_destroy

Parameters:

this

a Page

scale

scale specified as pixels per point

style

a SelectionStyle

selection

start and end point of selection as a rectangle

Returns:

a cairo_region_t