From bb10e29e16816504138679e9feb1cb9772a956c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 26 Apr 2011 17:00:27 +0200 Subject: evas, add EvasEngineInfoBuffer struct --- lib/efl/evas.rb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb index 24ea514..9f3af38 100644 --- a/lib/efl/evas.rb +++ b/lib/efl/evas.rb @@ -4,6 +4,43 @@ require 'efl/evas/evas-ffi' # module Efl + module API + # + EVAS_ENGINE_BUFFER_DEPTH_ARGB32 = 0 + EVAS_ENGINE_BUFFER_DEPTH_BGRA32 = 1 + EVAS_ENGINE_BUFFER_DEPTH_RGB24 = 2 + EVAS_ENGINE_BUFFER_DEPTH_BGR24 = 3 + EVAS_ENGINE_BUFFER_DEPTH_RGB32 = 4 + # + class EvasEngineInfo < FFI::Struct + layout :magic, :int + end + callback :new_update_region_cb, [:int, :int, :int, :int, :int_p], :pointer + callback :free_update_region_cb, [:int, :int, :int, :int, :pointer], :void + class EvasEngineInfoBufferFunc < FFI::Struct + layout :new_update_region, :new_update_region_cb, + :free_update_region, :free_update_region_cb + end + class EvasEngineInfoBufferInfo < FFI::Struct + layout :depth_type, :int, + :dest_buffer, :pointer, + :dest_buffer_row_bytes, :int, + :use_color_key, :char, + :alpha_threshold, :int, + :color_key_r, :int, + :color_key_g, :int, + :color_key_b, :int, + :func, EvasEngineInfoBufferFunc, + end + class EvasEngineInfoBuffer < FFI::Struct + layout :magic, EvasEngineInfo, + :info, EvasEngineInfoBufferInfo, +# :func, EvasEngineInfoBufferFunc, + :mode, :evas_engine_render_mode, + end + # + end + # module Evas # class Evas -- cgit v1.1-2-g2b99