Details
struct GtkScopeAppSignal
struct GtkScopeAppSignal; |
Each GtkScopeApp contains one or more signals. These signals are encapsulated in
the opaque GtkScopeAppSignal data structure.
gtk_scope_app_new ()
GtkWidget* gtk_scope_app_new (const gchar *title,
gint width,
gint height,
Gscope *gs); |
Create a new GtkScopeApp.
gtk_scope_app_construct ()
void gtk_scope_app_construct (GtkScopeApp *scope_app,
const gchar *title,
gint width,
gint height,
Gscope *gs); |
This function is similar to gtk_scope_app_new() but used if this widget is
subclassed.
gtk_scope_app_get_title ()
gchar* gtk_scope_app_get_title (GtkScopeApp *scope_app); |
Returns name of the scope application.
gtk_scope_app_set_title ()
void gtk_scope_app_set_title (GtkScopeApp *scope_app,
const gchar *title); |
Sets name of the scope application.
gtk_scope_app_set_size ()
void gtk_scope_app_set_size (GtkScopeApp *scope_app,
gint16 x,
gint16 y); |
Sets the size of the scope application.
gtk_scope_app_set_position ()
void gtk_scope_app_set_position (GtkScopeApp *scope_app,
gint16 x,
gint16 y); |
Sets the position of the scope application.
gtk_scope_app_get_xzoom ()
gfloat gtk_scope_app_get_xzoom (GtkScopeApp *scope_app); |
Get the X zoom value. The X zoom value is 1 by default. Larger values stretch
the displayed signals along the horizontal axis while smaller values compress
the displayed signals.
gtk_scope_app_get_xbias ()
gfloat gtk_scope_app_get_xbias (GtkScopeApp *scope_app); |
Get the X bias value. The X bias value is 0 by default. This function affects
the scope behavior only in playback mode
(gtk_scope_app_set_playback_mode). When the bias value is greater than 0, the
signals are shifted to the right. This value ranges from 0 to 1.
gtk_scope_app_get_yzoom ()
gfloat gtk_scope_app_get_yzoom (GtkScopeApp *scope_app); |
Get the Y zoom value. The Y zoom value is 1 by default. Larger values stretch
the displayed signals along the vertical axis while smaller values compress the
displayed signals.
gtk_scope_app_get_ybias ()
gfloat gtk_scope_app_get_ybias (GtkScopeApp *scope_app); |
Get the Y bias value. The Y bias value is 0 by default. When the bias value is
greater than 0, the signals are shifted up. This value ranges from -1 to 1.
gtk_scope_app_start_program ()
void gtk_scope_app_start_program (GtkScopeApp *scope_app); |
When a program is associated with this application (see Gscope, gscope_new()
and gscope_start_program()), start the program. This program is not specific to
each GtkScopeApp but it is application wide. Normally, the program generates
signal data for all scopes.
gtk_scope_app_stop_program ()
void gtk_scope_app_stop_program (GtkScopeApp *scope_app); |
When a program is associated with this application (see
gtk_scope_app_start_program()), stop the program.
gtk_scope_app_get_mode ()
Return the scope mode. The scope can be in polling or playback mode. In polling
mode, signal data is obtained from a running program. In playback mode, data is
plotted from a file. See GtkScopeMode.
gtk_scope_app_set_polling_mode ()
gint gtk_scope_app_set_polling_mode (GtkScopeApp *scope_app,
int period); |
Set the mode of the scope to polling mode. Once the mode of the scope is set, it
cannot be changed.
gtk_scope_app_stop_polling ()
void gtk_scope_app_stop_polling (GtkScopeApp *scope_app); |
When the scope is in polling mode, stop polling for signal data.
gtk_scope_app_is_polling_started ()
gint gtk_scope_app_is_polling_started
(GtkScopeApp *scope_app); |
Is the scope in polling mode and polling currently?
gtk_scope_app_set_playback_mode ()
gint gtk_scope_app_set_playback_mode (GtkScopeApp *scope_app,
char *filename,
int period); |
Set the mode of the scope to playback mode. Once the mode of the scope is set,
it cannot be changed.
gtk_scope_app_set_sampling_period ()
void gtk_scope_app_set_sampling_period
(GtkScopeApp *scope_app,
int period); |
Set the sampling period of the scope.
gtk_scope_app_start_recording ()
gint gtk_scope_app_start_recording (GtkScopeApp *scope_app,
char *filename); |
In polling mode, start recording signal data to filename.
gtk_scope_app_stop_recording ()
void gtk_scope_app_stop_recording (GtkScopeApp *scope_app); |
In polling mode, if data is being recorded, stop recording signal data.
gtk_scope_app_is_recording ()
gint gtk_scope_app_is_recording (GtkScopeApp *scope_app); |
Is the scope recording data?
gtk_scope_app_get_recording_file ()
gchar* gtk_scope_app_get_recording_file
(GtkScopeApp *scope_app); |
Get the filename in which data is being recorded.
gtk_scope_app_set_recording_file ()
void gtk_scope_app_set_recording_file
(GtkScopeApp *scope_app,
gchar *filename); |
Set the filename to which data should be recorded.
gtk_scope_app_in_fft_display ()
gint gtk_scope_app_in_fft_display (GtkScopeApp *scope_app); |
Is the GtkScopeApp displaying signals in frequency format?
gtk_scope_app_set_fft_display ()
gint gtk_scope_app_set_fft_display (GtkScopeApp *scope_app); |
Make the scope display signals in frequency format.
gtk_scope_app_set_time_display ()
gint gtk_scope_app_set_time_display (GtkScopeApp *scope_app); |
Make the scope display signals in time format (the default).
gtk_scope_app_set_signal_line_attribute ()
Set the line attribute of all the signals on this scope.
gtk_scope_app_nr_signals ()
gint gtk_scope_app_nr_signals (GtkScopeApp *scope_app); |
Get the number of signals associated with this scope.
gtk_scope_app_get_signal_n ()
Get the nth signal associated with this scope. Signals are stored in
GtkScopeApp in a linked list. Signals are numbered from 0.
gtk_scope_app_get_signal_byname ()
Each signal in the scope has a name associated with it (see
GscopeSignal). Returns the signal with name.
gtk_scope_app_set_colors ()
void gtk_scope_app_set_colors (GtkScopeApp *scope_app,
char **colors,
int nr); |
Provide a set of color strings to the scope. Normally, each signal has a color
associated with it (see GscopeSignal). If users don't specify any color, then a
color is arbitrarily chosen for the signal by the gscope library. Users can
change this behavior by providing a set of colors to the scope with this
function.
gtk_scope_app_clear ()
Clear the scope.
gtk_scope_app_free_last_signal ()
void gtk_scope_app_free_last_signal (GtkScopeApp *scope_app); |
Remove the last signal from the scope.
gtk_scope_app_free_last_nsignals ()
void gtk_scope_app_free_last_nsignals
(GtkScopeApp *scope_app,
int n); |
Remove the last n signals from the scope.
gtk_scope_app_hide_signal_parameters ()
void gtk_scope_app_hide_signal_parameters
(GtkScopeApp *scope_app,
int hide); |
Hide the display of signal parameters from the scope.
gtk_scope_app_signal_new ()
Create a new signal and add it to GtkScopeApp.
gtk_scope_app_signal_free ()
Destroy a signal. Removes the signal from the scope.
gtk_scope_app_signal_update ()
Update a scope signal with new signal data.
gtk_scope_app_signal_get_name ()
Get the name of the signal.
gtk_scope_app_signal_set_name ()
Set the signal name.
gtk_scope_app_signal_get_min ()
Get the minimum value that is plotted for the signal (when y zoom is 1).
gtk_scope_app_signal_set_min ()
Set the minimum value that is plotted for the signal (when y zoom is 1).
gtk_scope_app_signal_get_max ()
Get the maximum value that is plotted for the signal (when y zoom is 1).
gtk_scope_app_signal_set_max ()
Set the maximum value that is plotted for the signal (when y zoom is 1).
gtk_scope_app_signal_set_range ()
void gtk_scope_app_signal_set_range (GtkScopeAppSignal *gch,
gfloat min,
gfloat max); |
Set the minimum and maximum value that is plotted for the signal (when y zoom is
1).
gtk_scope_app_signal_get_filter ()
Get the filter value of the signal. When the filter value is 0, the signal is
not filtered. The filter value ranges from 0 to 1. In between 0 and 1, the
signal is low-pass filtered before being displayed.
gtk_scope_app_signal_set_filter ()
Set the filter value of the signal. The filter value ranges from 0 to 1.
gtk_scope_app_signal_get_signal_line_attributes ()
Get the line attribute of this signal.
gtk_scope_app_signal_set_signal_line_attributes ()
Set the line attribute of this signal.
gtk_scope_app_signal_get_hidden ()
Is the signal hidden?
gtk_scope_app_signal_toggle_hidden ()
Toggle between hiding and showing the signal.
gtk_scope_app_signal_set_color ()
Set the color of the signal.
gtk_scope_app_signal_set_gdkcolor ()
Set the color of the signal.
gtk_scope_app_signal_get_style ()
Return the Gtk style of this signal.