vkf_viewer_set_pixel_ratio Interface

interface


Called by

interface~~vkf_viewer_set_pixel_ratio~~CalledByGraph interface~vkf_viewer_set_pixel_ratio vkf_viewer_set_pixel_ratio proc~resize WindowProxy%resize proc~resize->interface~vkf_viewer_set_pixel_ratio

public function vkf_viewer_set_pixel_ratio(viewer, ratio) bind(C, name="vkf_viewer_set_pixel_ratio")

Arguments

Type IntentOptional Attributes Name
type(c_ptr), value :: viewer

viewer handle (vkf_viewer_create)

real(kind=c_double), value :: ratio

framebuffer pixels per window unit (> 0)

Return Value integer(kind=c_int)

Description

A host's window now has ratio framebuffer pixels per window unit. (Qt's devicePixelRatio changed: moved to a screen of another scale, or the display's scaling changed.) Sizes in window units (line widths, markers, labels) are scaled by it; the host also resizes (vkf_viewer_resize) to the new framebuffer size. Returns 0, or -1 on failure.