lib/ewl_media.c File Reference
#include "ewl_base.h"
#include "ewl_media.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"
#include <Evas.h>

Functions | |
| 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. | |
| void | ewl_media_cb_configure (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_media_cb_realize (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_media_cb_reveal (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_media_cb_unrealize (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| int | ewl_media_init (Ewl_Media *m) |
| Initialize the fields and callbacks of a media object. | |
| unsigned int | ewl_media_is_available (void) |
| This will check if the modules required for the media widget were available at compile time or not. | |
| 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. | |
| const char * | ewl_media_media_get (Ewl_Media *m) |
| Retrieve the media of a media widget. | |
| void | ewl_media_media_set (Ewl_Media *m, const char *media) |
| Set the media of a media widget. | |
| Ewl_Media_Module_Type | ewl_media_module_get (Ewl_Media *m) |
| Retrieve the module of a media widget. | |
| int | ewl_media_module_set (Ewl_Media *m, Ewl_Media_Module_Type module) |
| Set the module of a media widget. | |
| Ewl_Widget * | ewl_media_new (void) |
| Allocate a new media widget. | |
| void | ewl_media_play_set (Ewl_Media *m, int p) |
| Sets the media widget into the given state. | |
| double | ewl_media_position_get (Ewl_Media *m) |
| Returns the position of the current media. | |
| void | ewl_media_position_set (Ewl_Media *m, double p) |
| Sets the media widget to the specified position. | |
| 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. | |
| int | ewl_media_seekable_get (Ewl_Media *m) |
| Returns if the media area is seekable. | |
Function Documentation
| void ewl_media_cb_configure | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_MEDIA, EWL_MEDIA_TYPE, and Ewl_Media::video.
Referenced by ewl_media_init().
| void ewl_media_cb_realize | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Embed::canvas, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_embed_widget_find(), EWL_MEDIA, ewl_media_module_set(), EWL_MEDIA_TYPE, Ewl_Media::media, Ewl_Media::module, and Ewl_Media::video.
Referenced by ewl_media_init().
| void ewl_media_cb_reveal | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_MEDIA, EWL_MEDIA_TYPE, Ewl_Widget::smart_object, and Ewl_Media::video.
Referenced by ewl_media_init().
| void ewl_media_cb_unrealize | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_MEDIA, EWL_MEDIA_TYPE, and Ewl_Media::video.
Referenced by ewl_media_init().