luminate-old/Sources/CModules/include/mpv_widget.h

36 lines
1.3 KiB
C

#ifndef MPV_WIDGET_H
#define MPV_WIDGET_H
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define MPV_TYPE_WIDGET (mpv_widget_get_type())
#define MPV_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MPV_TYPE_WIDGET, MpvWidget))
#define MPV_IS_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MPV_TYPE_WIDGET))
typedef struct _MpvWidget MpvWidget;
typedef struct _MpvWidgetClass MpvWidgetClass;
struct _MpvWidgetClass {
GtkWidgetClass parent_class;
};
GType mpv_widget_get_type (void);
GtkWidget *mpv_widget_new (void);
void mpv_widget_load_url (MpvWidget *self, const char *url);
void mpv_widget_play (MpvWidget *self);
void mpv_widget_pause (MpvWidget *self);
void mpv_widget_seek_relative (MpvWidget *self, double offset_seconds);
void mpv_widget_seek_absolute (MpvWidget *self, double position_seconds);
void mpv_widget_set_volume (MpvWidget *self, double volume);
double mpv_widget_get_position (MpvWidget *self);
double mpv_widget_get_duration (MpvWidget *self);
gboolean mpv_widget_get_paused (MpvWidget *self);
double mpv_widget_get_volume (MpvWidget *self);
G_END_DECLS
#endif /* MPV_WIDGET_H */