mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
libsysprof-ui: land new UI design
This comprises a massive rewrite of the UI for browsing captures. We use the SysprofAid class to scan capture files for content and then auto- matically add visualizers and details pages. To avoid breaking things incrementally, we just land this as a very large commit. Not necessarily ideal, but given the amount of stuff that could break, this is easier. As part of this process, we're removing a lot of the surface API so that we can limit how much we need to maintain in terms of ABI.
This commit is contained in:
@ -20,61 +20,38 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
|
||||
# error "Only <sysprof-ui.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SYSPROF_TYPE_ZOOM_MANAGER (sysprof_zoom_manager_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_FINAL_TYPE (SysprofZoomManager, sysprof_zoom_manager, SYSPROF, ZOOM_MANAGER, GObject)
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SysprofZoomManager *sysprof_zoom_manager_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkAdjustment *sysprof_zoom_manager_get_adjustment (SysprofZoomManager *self);
|
||||
gboolean sysprof_zoom_manager_get_can_zoom_in (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sysprof_zoom_manager_get_can_zoom_out (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sysprof_zoom_manager_get_min_zoom (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sysprof_zoom_manager_get_max_zoom (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sysprof_zoom_manager_set_min_zoom (SysprofZoomManager *self,
|
||||
gdouble min_zoom);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sysprof_zoom_manager_set_max_zoom (SysprofZoomManager *self,
|
||||
gdouble max_zoom);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sysprof_zoom_manager_zoom_in (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sysprof_zoom_manager_zoom_out (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sysprof_zoom_manager_reset (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gdouble sysprof_zoom_manager_get_zoom (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sysprof_zoom_manager_set_zoom (SysprofZoomManager *self,
|
||||
gdouble zoom);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gchar *sysprof_zoom_manager_get_zoom_label (SysprofZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gint sysprof_zoom_manager_get_width_for_duration (SysprofZoomManager *self,
|
||||
gint64 duration);
|
||||
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);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gdouble sysprof_zoom_manager_get_offset_at_time (SysprofZoomManager *self,
|
||||
gint64 offset,
|
||||
gint width);
|
||||
|
||||
Reference in New Issue
Block a user