Download

Support

lib/ewl_media.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


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...

Defines

#define EWL_MEDIA(media)   ((Ewl_Media *) media)
#define EWL_MEDIA_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_MEDIA_TYPE))
#define EWL_MEDIA_TYPE   "media"

Typedefs

typedef struct Ewl_Media Ewl_Media

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, void *user_data)
void ewl_media_cb_realize (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_media_cb_reveal (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_media_cb_unrealize (Ewl_Widget *w, void *ev_data, void *user_data)
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_Widgetewl_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.

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:50:10 2008