Module: Origami::Graphics::Canvas
- Included in:
- DummyCanvas, TextCanvas
- Defined in:
- lib/origami/graphics/render.rb
Instance Attribute Summary collapse
-
#gs ⇒ Object
readonly
Returns the value of attribute gs.
Instance Method Summary collapse
- #clear ⇒ Object
- #fill_path ⇒ Object
- #initialize ⇒ Object
- #paint_shading(sh) ⇒ Object
- #stroke_path ⇒ Object
- #write_text(s) ⇒ Object
Instance Attribute Details
#gs ⇒ Object (readonly)
Returns the value of attribute gs.
24 25 26 |
# File 'lib/origami/graphics/render.rb', line 24 def gs @gs end |
Instance Method Details
#clear ⇒ Object
30 31 32 |
# File 'lib/origami/graphics/render.rb', line 30 def clear @gs.reset end |
#fill_path ⇒ Object
40 41 |
# File 'lib/origami/graphics/render.rb', line 40 def fill_path end |
#initialize ⇒ Object
26 27 28 |
# File 'lib/origami/graphics/render.rb', line 26 def initialize @gs = Graphics::State.new end |
#paint_shading(sh) ⇒ Object
43 44 |
# File 'lib/origami/graphics/render.rb', line 43 def paint_shading(sh) end |
#stroke_path ⇒ Object
37 38 |
# File 'lib/origami/graphics/render.rb', line 37 def stroke_path end |
#write_text(s) ⇒ Object
34 35 |
# File 'lib/origami/graphics/render.rb', line 34 def write_text(s) end |