ocarina/include/ocarina/button.h
Bryan Schumaker e409c2317f ocarina: Added a random button
Random hasn't been implemented in libsaria yet, but I can still create
the button to test preferences.  The random button should set itself to
the value store in the preferences file.
2011-11-07 08:32:01 -05:00

40 lines
854 B
C++

#ifndef OCARINA_BUTTON_H
#define OCARINA_BUTTON_H
#include <string>
using namespace std;
#include <ocarina/gtk.h>
GtkWidget *make_button(const gchar *stockid,
void (* func)(GtkWidget *, GdkEvent *, gpointer),
bool show);
GtkWidget *make_text_button(const gchar *stockid,
string text,
void (* func)(GtkWidget *, GdkEvent *, gpointer),
bool show);
GtkWidget *make_play_button();
GtkWidget *make_pause_button();
GtkWidget *make_stop_button();
GtkWidget *make_rewind_button();
GtkWidget *make_forward_button();
GtkWidget *make_next_button();
GtkWidget *make_random_button();
GtkWidget *make_open_button();
GtkWidget *make_volume_button();
enum button_list_t {
PLAY_BUTTON_LIST,
PAUSE_BUTTON_LIST,
};
void show_button_list(button_list_t);
void hide_button_list(button_list_t);
#endif /* OCARINA_BUTTON_H */