diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-06 15:46:01 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-06 15:46:18 +0200 | 
| commit | e5cb60a66aa0a18dc9dbd8cffc7e0cd00d254a46 (patch) | |
| tree | f71c44c323e566e4a2f7133ce3357ea72a4873af | |
| parent | 9aba5f0bc6594806df6954df88749d1db99dd232 (diff) | |
| download | ffi-efl-e5cb60a66aa0a18dc9dbd8cffc7e0cd00d254a46.zip ffi-efl-e5cb60a66aa0a18dc9dbd8cffc7e0cd00d254a46.tar.gz  | |
add REvasPolygon#<<
| -rw-r--r-- | lib/efl/evas.rb | 5 | ||||
| -rw-r--r-- | spec/evas_spec.rb | 4 | 
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb index b706b8b..7f0fd8b 100644 --- a/lib/efl/evas.rb +++ b/lib/efl/evas.rb @@ -266,6 +266,7 @@ module Efl          end          #          class REvasRectangle < REvasObject +            #          end          #          class REvasLine < REvasObject @@ -286,6 +287,10 @@ module Efl              #              search_prefixes 'evas_object_polygon_'              # +            def point_add *args +                Native.evas_object_polygon_point_add @ptr, *args +            end +            alias :<< :point_add          end          #          class REvasText < REvasObject diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb index 926ff22..ccba590 100644 --- a/spec/evas_spec.rb +++ b/spec/evas_spec.rb @@ -611,8 +611,8 @@ describe Efl::Evas do          it "xy point_add should work" do              @p.point_add 10, 20              @p.point_add 30, 40 -            @p.point_add 50, 60 -            @p.point_add 80, 80 +            @p.<< 50, 60 +            @p.<< 80, 80          end          #          it "point clear shold work" do  | 
