summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/efl/evas.rb5
-rw-r--r--spec/evas_spec.rb4
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