X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.h;h=06616376c96045447dcd81af766bf236f1d1e0a0;hb=f46e495ef1db0a4e522462ac18260f2151fa2b89;hp=62157eed76a5613e552571aa0a0e322be3a23c3a;hpb=1bc6525bd6274b7f06f5fa8355b539dd9307f599;p=pulseview.git diff --git a/pv/view/view.h b/pv/view/view.h index 62157eed..06616376 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -148,7 +148,13 @@ signals: private: void get_scroll_layout(double &length, double &offset) const; - + + /** + * Simultaneously sets the zoom and offset. + * @param scale The scale to set the view to in seconds per pixel. This + * value is clamped between MinScale and MaxScale. + * @param offset The offset of the left edge of the view in seconds. + */ void set_zoom(double scale, int offset); void update_scroll();