OGMRip Gtk+ Reference Manual | ||||
---|---|---|---|---|
OGMRipSourceChooserOGMRipSourceChooser — Source chooser interface used by OGMRipSourceChooserWidget |
#include <ogmrip-source-chooser.h> enum OGMRipSourceType; OGMRipSourceChooser; OGMRipSourceChooserIface; void ogmrip_source_chooser_set_title (OGMRipSourceChooser *chooser, OGMDvdTitle *title); OGMDvdTitle* ogmrip_source_chooser_get_title (OGMRipSourceChooser *chooser); OGMRipSource* ogmrip_source_chooser_get_active (OGMRipSourceChooser *chooser, OGMRipSourceType *type); void ogmrip_source_chooser_select_language (OGMRipSourceChooser *chooser, gint language);
typedef enum { OGMRIP_SOURCE_INVALID = -1, OGMRIP_SOURCE_NONE, OGMRIP_SOURCE_STREAM, OGMRIP_SOURCE_FILE } OGMRipSourceType;
The type of a source
typedef struct { GTypeInterface base_iface; void (* set_title) (OGMRipSourceChooser *chooser, OGMDvdTitle *title); OGMDvdTitle * (* get_title) (OGMRipSourceChooser *chooser); OGMRipSource * (* get_active) (OGMRipSourceChooser *chooser, OGMRipSourceType *type); void (* select_language) (OGMRipSourceChooser *chooser, gint language); } OGMRipSourceChooserIface;
void ogmrip_source_chooser_set_title (OGMRipSourceChooser *chooser, OGMDvdTitle *title);
Sets the OGMDvdTitle from which to select the source.
|
An OGMRipSourceChooser |
|
An OGMDvdTitle |
OGMDvdTitle* ogmrip_source_chooser_get_title (OGMRipSourceChooser *chooser);
Returns the OGMDvdTitle which was passed to ogmrip_source_chooser_set_title()
.
|
An OGMRipSourceChooser |
Returns : |
The current OGMDvdTitle |
OGMRipSource* ogmrip_source_chooser_get_active (OGMRipSourceChooser *chooser, OGMRipSourceType *type);
Returns the active source and its type.
|
An OGMRipSourceChooser |
|
A pointer to store the type of the chooser |
Returns : |
The active OGMRipSource |
void ogmrip_source_chooser_select_language (OGMRipSourceChooser *chooser, gint language);
Select the first source entry of the chosen language.
|
An OGMRipSourceChooser |
|
The language to select |