summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-26 17:00:27 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-26 17:00:27 +0200
commitbb10e29e16816504138679e9feb1cb9772a956c6 (patch)
tree7bb9f55354c293a32c3e232bdaacbecc1b7f5598
parenta04650c1d5d9faefa653bc4060974fd086985140 (diff)
downloadffi-efl-bb10e29e16816504138679e9feb1cb9772a956c6.zip
ffi-efl-bb10e29e16816504138679e9feb1cb9772a956c6.tar.gz
evas, add EvasEngineInfoBuffer struct
-rw-r--r--lib/efl/evas.rb37
1 files changed, 37 insertions, 0 deletions
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