oekaki 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/oekaki.rb +9 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c98d938a614dcc5220b5cc88376fc376ba3eb813
4
- data.tar.gz: c5df711b1c936f372e9fbe0c200c1e4e89fb8b70
3
+ metadata.gz: 4ae8b661946b761868c1da422d8f3732154ef359
4
+ data.tar.gz: 1025523d782cf2ce2cbbf7cf6f942bd339364633
5
5
  SHA512:
6
- metadata.gz: 1cfce2f5708830431a0e5aa2d6e8f9c9d64f69c0d2464a8e898eadff3d2865134788ec12a52307e37a533095920df951dbcc99558034d29fa80cc1bd7b53496c
7
- data.tar.gz: f9f224b695792059bb387119ff2adc94c5c1d02d248b303e7205f3732324d3691e8604ade904735f6645d057bf8780cbc9ea45f4c9a351dcbc304c01c46b1199
6
+ metadata.gz: 12f65d779e64655e8fc79fe817ba2b5789d268e2d9fcf734e660f49dc3823432af9f8866c734967468fa8a40eabc0cf88290aabadf1721abde61928ac8aee91e
7
+ data.tar.gz: 3593558b989504443e073a70cbf72efc785e134777fdcab0fb1c1280d33bc719b644fdf356de533f84b9181a54f746a0fb5111cf575610f55a1eeb1baef5918a
@@ -31,6 +31,10 @@ module Oekaki
31
31
  @drawable.draw_arc(@gc, fill, x, y, width, height, d1, d2)
32
32
  end
33
33
 
34
+ def circle(fill, x, y, r, color = nil)
35
+ arc(fill, x - r, y - r, 2 * r, 2 * r, 0, 64 * 360, color)
36
+ end
37
+
34
38
  def point(x, y, color = nil)
35
39
  set_color(color)
36
40
  @drawable.draw_point(@gc, x, y)
@@ -82,6 +86,10 @@ module Oekaki
82
86
  GdkPixbuf::Pixbuf.from_drawable(nil, @drawable, x, y, width, height)
83
87
  end
84
88
 
89
+ def timer_stop(id)
90
+ Gtk.timeout_remove(id)
91
+ end
92
+
85
93
  def star(fill, x1, y1, x2, y2, color = nil)
86
94
  set_color(color)
87
95
  Star.new(fill, x1, y1, x2, y2, @color).draw
@@ -164,7 +172,7 @@ module Oekaki
164
172
  Event.new.instance_eval(&bk)
165
173
 
166
174
  W.signal_connect("destroy") {Gtk.main_quit}
167
- W.show
175
+ W.show_all
168
176
  Gtk.main
169
177
  end
170
178
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oekaki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - obelisk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-17 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gtk2