Advanced Gtk+ Sequencer Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <ags/X/ags_navigation.h> #define AGS_NAVIGATION_DEFAULT_TACT_STEP #define AGS_NAVIGATION_REWIND_STEPS #define AGS_NAVIGATION_SEEK_STEPS struct AgsNavigation; struct AgsNavigationClass; enum AgsNavigationFlags;void ags_navigation_change_position (AgsNavigation *navigation
,); AgsNavigation * ags_navigation_new ();
gdouble tactvoid ags_navigation_set_seeking_sensitive (AgsNavigation *navigation
,);
gboolean enabledgchar * ags_navigation_tact_to_time_string ();
gdouble tactvoid ags_navigation_update_time_string (,
double tact);
gchar *time_string
AgsNavigation is a composite widget to control playback of AgsAudio objects. It can start AgsMachine in bulk mode or position the stream.
struct AgsNavigation { GtkVBox vbox; guint flags; AgsDevout *devout; GtkToggleButton *expander; GtkSpinButton *bpm; gdouble current_bpm; GtkToggleButton *rewind; GtkButton *previous; GtkToggleButton *play; GtkButton *stop; GtkButton *next; GtkToggleButton *forward; GtkCheckButton *loop; GtkLabel *position_time; GtkSpinButton *position_tact; GtkLabel *duration_time; GtkSpinButton *duration_tact; GtkSpinButton *loop_left_tact; GtkSpinButton *loop_right_tact; GtkCheckButton *scroll; };
struct AgsNavigationClass { GtkVBoxClass vbox; void (*change_position)(AgsNavigation *navigation, gdouble tact); };
typedef enum { AGS_NAVIGATION_BLOCK_TACT = 1, AGS_NAVIGATION_BLOCK_PLAY = 1 << 1, AGS_NAVIGATION_BLOCK_TIC = 1 << 2, } AgsNavigationFlags;
void ags_navigation_change_position (AgsNavigation *navigation
,);
gdouble tact
Change tact position of editor. The scrollbar is adjustet and its playback position seeked.
|
the AgsNavigation |
|
the new position |
Since 0.4
AgsNavigation * ags_navigation_new ();
Creates an AgsNavigation to control the tree.
Returns : |
a new AgsNavigation |
Since 0.4
void ags_navigation_set_seeking_sensitive (AgsNavigation *navigation
,);
gboolean enabled
gchar * ags_navigation_tact_to_time_string ();
gdouble tact
Convert tact unit to time.
|
the new position |
Returns : |
tact as time string |
Since 0.4