summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_video.rb
blob: 3b7d929bc7dc7f2f8d6118ac1d45db282491dc06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/elementary'
#
module Efl
    #
    module ElmVideo
        #
        FCT_PREFIX = 'elm_video_' unless const_defined? :FCT_PREFIX
        #
        def self.method_missing meth, *args, &block
            sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
            self.send sym, *args, &block
        end
        #
    end
    #
    module Native
        #
        ffi_lib 'elementary'
        #
        # FUNCTIONS
        fcts = [
        # EAPI Evas_Object *elm_player_add(Evas_Object *parent);
        [ :elm_player_add, [ :evas_object ], :evas_object ],
        # EAPI Evas_Object *elm_video_add(Evas_Object *parent);
        [ :elm_video_add, [ :evas_object ], :evas_object ],
        # EAPI Eina_Bool elm_video_file_set(Evas_Object *video, const char *filename);
        [ :elm_video_file_set, [ :evas_object, :string ], :bool ],
        # EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
        [ :elm_video_emotion_get, [ :evas_object ], :evas_object ],
        # EAPI void elm_video_play(Evas_Object *video);
        [ :elm_video_play, [ :evas_object ], :void ],
        # EAPI void elm_video_pause(Evas_Object *video);
        [ :elm_video_pause, [ :evas_object ], :void ],
        # EAPI void elm_video_stop(Evas_Object *video);
        [ :elm_video_stop, [ :evas_object ], :void ],
        # EAPI Eina_Bool elm_video_is_playing_get(const Evas_Object *video);
        [ :elm_video_is_playing_get, [ :evas_object ], :bool ],
        # EAPI Eina_Bool elm_video_is_seekable_get(const Evas_Object *video);
        [ :elm_video_is_seekable_get, [ :evas_object ], :bool ],
        # EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
        [ :elm_video_audio_mute_get, [ :evas_object ], :bool ],
        # EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
        [ :elm_video_audio_mute_set, [ :evas_object, :bool ], :void ],
        # EAPI double elm_video_audio_level_get(const Evas_Object *video);
        [ :elm_video_audio_level_get, [ :evas_object ], :double ],
        # EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
        [ :elm_video_audio_level_set, [ :evas_object, :double ], :void ],
        # EAPI double elm_video_play_position_get(const Evas_Object *video);
        [ :elm_video_play_position_get, [ :evas_object ], :double ],
        # EAPI void elm_video_play_position_set(Evas_Object *video, double position);
        [ :elm_video_play_position_set, [ :evas_object, :double ], :void ],
        # EAPI double elm_video_play_length_get(const Evas_Object *video);
        [ :elm_video_play_length_get, [ :evas_object ], :double ],
        # EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
        [ :elm_video_remember_position_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
        [ :elm_video_remember_position_get, [ :evas_object ], :bool ],
        # EAPI const char *elm_video_title_get(const Evas_Object *video);
        [ :elm_video_title_get, [ :evas_object ], :string ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF