# Legacy classes - not part of public EO API
elm_legacy_eolian_files = \
- lib/elementary/efl_ui_video_legacy.eo \
lib/elementary/efl_ui_win_legacy.eo \
lib/elementary/efl_ui_clock_legacy.eo \
lib/elementary/elm_code_widget_legacy.eo \
lib/elementary/efl_ui_radio_legacy_eo.c \
lib/elementary/efl_ui_textpath_eo.legacy.c \
lib/elementary/efl_ui_textpath_legacy_eo.c \
+lib/elementary/efl_ui_video_eo.legacy.c \
+lib/elementary/efl_ui_video_legacy_eo.c \
lib/elementary/elm_hoversel_eo.c \
lib/elementary/elm_hoversel_eo.legacy.c \
lib/elementary/elm_hoversel_item_eo.c \
lib/elementary/efl_ui_textpath_eo.legacy.h \
lib/elementary/efl_ui_textpath_legacy_eo.h \
lib/elementary/efl_ui_textpath_legacy_eo.legacy.h \
+lib/elementary/efl_ui_video_eo.legacy.h \
+lib/elementary/efl_ui_video_legacy_eo.h \
+lib/elementary/efl_ui_video_legacy_eo.legacy.h \
lib/elementary/elm_hoversel_eo.h \
lib/elementary/elm_hoversel_eo.legacy.h \
lib/elementary/elm_hoversel_item_eo.h \
EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_video)
#include "efl_ui_video.eo.c"
+#include "efl_ui_video_eo.legacy.c"
-#include "efl_ui_video_legacy.eo.h"
+#include "efl_ui_video_legacy_eo.h"
#define MY_CLASS_NAME_LEGACY "elm_video"
efl_player_play_set(obj, EINA_FALSE);
}
-#include "efl_ui_video_legacy.eo.c"
+#include "efl_ui_video_legacy_eo.c"
class @beta Efl.Ui.Video extends Efl.Ui.Layout_Base implements Efl.File, Efl.Player, Efl.Access.Widget.Action
{
[[Efl UI video class]]
- legacy_prefix: elm_video;
methods {
@property remember_position {
set {
--- /dev/null
+
+EAPI void
+elm_video_remember_position_set(Efl_Ui_Video *obj, Eina_Bool remember)
+{
+ efl_ui_video_remember_position_set(obj, remember);
+}
+
+EAPI Eina_Bool
+elm_video_remember_position_get(const Efl_Ui_Video *obj)
+{
+ return efl_ui_video_remember_position_get(obj);
+}
+
+EAPI Efl_Canvas_Object *
+elm_video_emotion_get(const Efl_Ui_Video *obj)
+{
+ return efl_ui_video_emotion_get(obj);
+}
+
+EAPI const char *
+elm_video_title_get(const Efl_Ui_Video *obj)
+{
+ return efl_ui_video_title_get(obj);
+}
--- /dev/null
+#ifndef _EFL_UI_VIDEO_EO_LEGACY_H_
+#define _EFL_UI_VIDEO_EO_LEGACY_H_
+
+#ifndef _EFL_UI_VIDEO_EO_CLASS_TYPE
+#define _EFL_UI_VIDEO_EO_CLASS_TYPE
+
+typedef Eo Efl_Ui_Video;
+
+#endif
+
+#ifndef _EFL_UI_VIDEO_EO_TYPES
+#define _EFL_UI_VIDEO_EO_TYPES
+
+
+#endif
+
+/**
+ * @brief Set whether the object can remember the last played position.
+ *
+ * @note This API only serves as indication. System support is required.
+ *
+ * @param[in] obj The object.
+ * @param[in] remember @c true when the object can remember the last position,
+ * @c false otherwise
+ *
+ * @ingroup Elm_Video_Group
+ */
+EAPI void elm_video_remember_position_set(Efl_Ui_Video *obj, Eina_Bool remember);
+
+/**
+ * @brief Set whether the object can remember the last played position.
+ *
+ * @note This API only serves as indication. System support is required.
+ *
+ * @param[in] obj The object.
+ *
+ * @return @c true when the object can remember the last position, @c false
+ * otherwise
+ *
+ * @ingroup Elm_Video_Group
+ */
+EAPI Eina_Bool elm_video_remember_position_get(const Efl_Ui_Video *obj);
+
+/**
+ * @brief Get the underlying Emotion object.
+ *
+ * @param[in] obj The object.
+ *
+ * @return The underlying Emotion object.
+ *
+ * @ingroup Elm_Video_Group
+ */
+EAPI Efl_Canvas_Object *elm_video_emotion_get(const Efl_Ui_Video *obj);
+
+/**
+ * @brief Get the title (for instance DVD title) from this emotion object.
+ *
+ * This function is only useful when playing a DVD.
+ *
+ * @note Don't change or free the string returned by this function.
+ *
+ * @param[in] obj The object.
+ *
+ * @return A string containing the title.
+ *
+ * @ingroup Elm_Video_Group
+ */
+EAPI const char *elm_video_title_get(const Efl_Ui_Video *obj);
+
+#endif
+++ /dev/null
-class @beta Efl.Ui.Video_Legacy extends Efl.Ui.Video implements Efl.Ui.Legacy
-{
- [[Efl UI video class]]
- data: null;
- implements {
- class.constructor;
- Efl.Object.constructor;
- }
-}
*/
EAPI void elm_video_pause(Evas_Object *obj);
-#include "efl_ui_video.eo.legacy.h"
+#include "efl_ui_video_eo.legacy.h"
--- /dev/null
+
+Efl_Object *_efl_ui_video_legacy_efl_object_constructor(Eo *obj, void *pd);
+
+
+static Eina_Bool
+_efl_ui_video_legacy_class_initializer(Efl_Class *klass)
+{
+ const Efl_Object_Ops *opsp = NULL;
+
+ const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
+
+#ifndef EFL_UI_VIDEO_LEGACY_EXTRA_OPS
+#define EFL_UI_VIDEO_LEGACY_EXTRA_OPS
+#endif
+
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(efl_constructor, _efl_ui_video_legacy_efl_object_constructor),
+ EFL_UI_VIDEO_LEGACY_EXTRA_OPS
+ );
+ opsp = &ops;
+
+ return efl_class_functions_set(klass, opsp, ropsp);
+}
+
+static const Efl_Class_Description _efl_ui_video_legacy_class_desc = {
+ EO_VERSION,
+ "Efl.Ui.Video_Legacy",
+ EFL_CLASS_TYPE_REGULAR,
+ 0,
+ _efl_ui_video_legacy_class_initializer,
+ _efl_ui_video_legacy_class_constructor,
+ NULL
+};
+
+EFL_DEFINE_CLASS(efl_ui_video_legacy_class_get, &_efl_ui_video_legacy_class_desc, EFL_UI_VIDEO_CLASS, EFL_UI_LEGACY_INTERFACE, NULL);
--- /dev/null
+#ifndef _EFL_UI_VIDEO_LEGACY_EO_H_
+#define _EFL_UI_VIDEO_LEGACY_EO_H_
+
+#ifndef _EFL_UI_VIDEO_LEGACY_EO_CLASS_TYPE
+#define _EFL_UI_VIDEO_LEGACY_EO_CLASS_TYPE
+
+typedef Eo Efl_Ui_Video_Legacy;
+
+#endif
+
+#ifndef _EFL_UI_VIDEO_LEGACY_EO_TYPES
+#define _EFL_UI_VIDEO_LEGACY_EO_TYPES
+
+
+#endif
+#ifdef EFL_BETA_API_SUPPORT
+/** Efl UI video class
+ *
+ * @ingroup Efl_Ui_Video_Legacy
+ */
+#define EFL_UI_VIDEO_LEGACY_CLASS efl_ui_video_legacy_class_get()
+
+EWAPI const Efl_Class *efl_ui_video_legacy_class_get(void);
+#endif /* EFL_BETA_API_SUPPORT */
+
+#endif
--- /dev/null
+#ifndef _EFL_UI_VIDEO_LEGACY_EO_LEGACY_H_
+#define _EFL_UI_VIDEO_LEGACY_EO_LEGACY_H_
+
+#ifndef _EFL_UI_VIDEO_LEGACY_EO_CLASS_TYPE
+#define _EFL_UI_VIDEO_LEGACY_EO_CLASS_TYPE
+
+typedef Eo Efl_Ui_Video_Legacy;
+
+#endif
+
+#ifndef _EFL_UI_VIDEO_LEGACY_EO_TYPES
+#define _EFL_UI_VIDEO_LEGACY_EO_TYPES
+
+
+#endif
+
+#endif
pub_legacy_eo_files = [
- 'efl_ui_video_legacy.eo',
'efl_ui_win_legacy.eo',
'efl_ui_clock_legacy.eo',
'elm_code_widget_legacy.eo',
'efl_ui_textpath_eo.legacy.h',
'efl_ui_textpath_legacy_eo.h',
'efl_ui_textpath_legacy_eo.legacy.h',
+ 'efl_ui_video_eo.legacy.h',
+ 'efl_ui_video_legacy_eo.h',
+ 'efl_ui_video_legacy_eo.legacy.h',
'elm_hoversel_eo.h',
'elm_hoversel_eo.legacy.h',
'elm_hoversel_item_eo.h',