summaryrefslogtreecommitdiffstats
path: root/lib/e17/evas.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-20 15:24:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-20 15:24:11 +0200
commit9a7cd18cd11e0f435443c62fa68871768b98d248 (patch)
tree1e34d56e4f5ad7cd1908ab6155cbcd7fc60bdee5 /lib/e17/evas.rb
parent5a5e81dbf79ca4967b150ea4930255a2398ccab4 (diff)
downloadffi-efl-9a7cd18cd11e0f435443c62fa68871768b98d248.zip
ffi-efl-9a7cd18cd11e0f435443c62fa68871768b98d248.tar.gz
ffi-e17 renamed to ffi-efl
Diffstat (limited to 'lib/e17/evas.rb')
-rw-r--r--lib/e17/evas.rb127
1 files changed, 0 insertions, 127 deletions
diff --git a/lib/e17/evas.rb b/lib/e17/evas.rb
deleted file mode 100644
index cefc071..0000000
--- a/lib/e17/evas.rb
+++ /dev/null
@@ -1,127 +0,0 @@
-#! /usr/bin/env ruby
-# -*- coding: UTF-8 -*-
-#
-require 'e17/evas/evas-ffi'
-#
-module E17
- module Evas
- #
- class Evas
- def initialize; @ptr = E17::API.evas_new; end
- def free; E17::API.evas_free @ptr; @ptr=nil; end
- def focus_in; E17::API.evas_focus_in @ptr; end
- def focus_out; E17::API.evas_focus_out @ptr; end
- def focus_state_get; E17::API.evas_focus_state_get @ptr; end
- def nochange_push; E17::API.evas_nochange_push @ptr; end
- def nochange_pop; E17::API.evas_nochange_pop @ptr; end
- def data_attach_set data; E17::API.evas_data_attach_set @ptr, data; end
- def data_attach_get; E17::API.evas_data_attach_get @ptr; end
- def damage_rectangle_add x, y, w, h; E17::API.evas_damage_rectangle_add @ptr, x, y, w, h; end
- def obscured_rectangle_add x, y, w, h; E17::API.evas_obscured_rectangle_add @ptr, x, y, w, h; end
- def obscured_clear; E17::API.evas_obscured_clear @ptr; end
- def render_updates; E17::API.evas_render_updates @ptr; end
-# def rendre_updates_free updates; E17::API.evas_render_updates_free updates; end
- def render; E17::API.evas_render @ptr; end
- def norender; E17::API.evas_norender @ptr; end
- def render_idle_flush; E17::API.evas_render_idle_flush @ptr; end
- def render_dump; E17::API.evas_render_dump @ptr; end
- #
- def output_method_set method; E17::API.evas_output_method_set @ptr, method; end
- def output_method_get; E17::API.evas_output_method_get @ptr; end
- def engine_info_get; E17::API.evas_engine_info_get @ptr; end
- def engine_info_set info; E17::API.evas_engine_info_set @ptr, info; end
- #
- def output_size_set w, h; E17::API.evas_output_size_set @ptr, w, h; end
- def output_size_get
- x = FFI::MemoryPointer.new :int
- y = FFI::MemoryPointer.new :int
- E17::API.evas_output_size_get @ptr, x, y
- [ x.read_int, y.read_int ]
- end
- def output_viewport_set x, y, w, h; E17::API.evas_output_viewport_set @ptr, x, y, w, h; end
- def output_viewport_get
- x = FFI::MemoryPointer.new :int
- y = FFI::MemoryPointer.new :int
- w = FFI::MemoryPointer.new :int
- h = FFI::MemoryPointer.new :int
- E17::API.evas_output_viewport_get @ptr, x, y, w, h
- [ x.read_int, y.read_int, w.read_int, h.read_int ]
- end
- #
- def coord_screen_x_to_world x; E17::API.evas_coord_screen_x_to_world @ptr, x; end
- def coord_screen_y_to_world y; E17::API.evas_coord_screen_y_to_world @ptr, y; end
- def coord_world_x_to_screen x; E17::API.evas_coord_world_x_to_screen @ptr, x; end
- def coord_world_y_to_screen y; E17::API.evas_coord_world_y_to_screen @ptr, y; end
- #
- def pointer_output_xy_get
- x = FFI::MemoryPointer.new :int
- y = FFI::MemoryPointer.new :int
- E17::API.evas_pointer_output_xy_get @ptr, x, y
- [ x.read_int, y.read_int ]
- end
- def pointer_canvas_xy_get
- x = FFI::MemoryPointer.new :int
- y = FFI::MemoryPointer.new :int
- E17::API.evas_pointer_canvas_xy_get @ptr, x, y
- [ x.read_int, y.read_int ]
- end
- def pointer_button_down_mask_get; E17::API.evas_pointer_button_down_mask_get @ptr; end
- def pointer_inside_get; E17::API.evas_pointer_inside_get @ptr; end
- #
- end
- #
- class E17::APIObject
- def type_get
- E17::API.evas_object_type_get @evas
- end
- def ref
- E17::API.evas_object_type_ref @evas
- end
- def unref
- E17::API.evas_object_type_unref @evas
- end
- def del
- E17::API.evas_object_type_del @evas; @evas = nil
- end
- def move x, y
- E17::API.evas_object_move @evas, x, y
- end
- def resize w, h
- E17::API.evas_object_resize @evas, w, h
- end
- def geometry_get
- x = FFI::MemoryPointer.new :int
- y = FFI::MemoryPointer.new :int
- w = FFI::MemoryPointer.new :int
- h = FFI::MemoryPointer.new :int
- E17::API.evas_object_geometry_get @evas, x, y, w, h
- [ x.read_int, y.read_int, w.read_int, h.read_int ]
- end
- def show
- E17::API.evas_object_show @evas
- end
- def hide
- E17::API.evas_object_hide @evas
- end
- def visible?
- E17::API.evas_object_visible_get @evas
- end
- def color_set r, g, b, a
- E17::API.evas_object_color_set @evas, r, g, b, a
- end
- def color_get
- r = FFI::MemoryPointer.new :int
- g = FFI::MemoryPointer.new :int
- b = FFI::MemoryPointer.new :int
- a = FFI::MemoryPointer.new :int
- E17::API.evas_object_color_get @evas, r, g, b, a
- [ r.read_int, g.read_int, b.read_int, a.read_int ]
- end
- def evas_get
- E17::API.evas_object_evas_get @evas
- end
- end
- end
-end
-#
-# EOF