Data Structures | |
struct | Ewl_Media |
Inherits from the Ewl_Widget class and extends it to provide for multi-line media layout, obstacle wrapping, and a variety of formatting. More... | |
struct | Ewl_Media |
Inherits from the Ewl_Widget class and extends it to provide for multi-line media layout, obstacle wrapping, and a variety of formatting. More... | |
Defines | |
#define | EWL_MEDIA(media) ((Ewl_Media *) media) |
Typecasts a pointer to an Ewl_Media pointer. | |
Functions | |
Ewl_Widget * | ewl_media_new (char *media) |
Allocate a new media widget. | |
void | ewl_media_init (Ewl_Media *m, char *media) |
Initialize the fields and callbacks of a media object. | |
void | ewl_media_media_set (Ewl_Media *m, char *media) |
Set the media of a media widget. | |
char * | ewl_media_media_get (Ewl_Media *m) |
Retrieve the media of a media widget. | |
int | ewl_media_length_get (Ewl_Media *m) |
Retrieve the length of the media displayed by the media widget. | |
void | ewl_media_length_time_get (Ewl_Media *m, int *h, int *min, double *s) |
Puts the length of the video into the h, m, s variables. | |
void | ewl_media_play_set (Ewl_Media *m, int p) |
Sets the media widget into the given state. | |
int | ewl_media_seekable_get (Ewl_Media *m) |
Returns if the media area is seekable. | |
double | ewl_media_position_get (Ewl_Media *m) |
Returns the position of the current media. | |
void | ewl_media_position_time_get (Ewl_Media *m, int *h, int *min, double *s) |
Puts the position of the video into the h, m, s variables. | |
void | ewl_media_position_set (Ewl_Media *m, double p) |
Sets the media widget to the specified position. | |
int | ewl_media_audio_mute_get (Ewl_Media *m) |
Checks if the media widget is muted. | |
void | ewl_media_audio_mute_set (Ewl_Media *m, int mute) |
Mutes the media widget. | |
double | ewl_media_audio_volume_get (Ewl_Media *m) |
Gets the current volume from the media widget. | |
void | ewl_media_audio_volume_set (Ewl_Media *m, double v) |
Sets the media widget to the given volume. |
|
Checks if the media widget is muted.
|
|
Mutes the media widget.
|
|
Gets the current volume from the media widget.
|
|
Sets the media widget to the given volume.
|
|
Initialize the fields and callbacks of a media object.
|
|
Retrieve the length of the media displayed by the media widget.
|
|
Puts the length of the video into the h, m, s variables.
|
|
Retrieve the media of a media widget.
|
|
Set the media of a media widget.
|
|
Allocate a new media widget.
|
|
Sets the media widget into the given state.
|
|
Returns the position of the current media.
|
|
Sets the media widget to the specified position.
|
|
Puts the position of the video into the h, m, s variables.
|
|
Returns if the media area is seekable.
|