libsysprof-ui: add fit-width zoom helper

This commit is contained in:
Christian Hergert
2019-05-14 21:09:24 -07:00
parent 67530d595d
commit ce3e7c5f4e
2 changed files with 16 additions and 0 deletions

View File

@ -70,5 +70,9 @@ gint sysprof_zoom_manager_get_width_for_duration (SysprofZoomMana
SYSPROF_AVAILABLE_IN_ALL
gint64 sysprof_zoom_manager_get_duration_for_width (SysprofZoomManager *self,
gint width);
SYSPROF_AVAILABLE_IN_ALL
gdouble sysprof_zoom_manager_fit_zoom_for_duration (SysprofZoomManager *self,
gint64 duration,
gint width);
G_END_DECLS