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.
26 27 28 |
# File 'lib/origami/graphics/render.rb', line 26 def gs @gs end |
Instance Method Details
#clear ⇒ Object
32 33 34 |
# File 'lib/origami/graphics/render.rb', line 32 def clear @gs.reset end |
#fill_path ⇒ Object
38 |
# File 'lib/origami/graphics/render.rb', line 38 def fill_path; end |
#initialize ⇒ Object
28 29 30 |
# File 'lib/origami/graphics/render.rb', line 28 def initialize @gs = Graphics::State.new end |
#paint_shading(sh) ⇒ Object
39 |
# File 'lib/origami/graphics/render.rb', line 39 def paint_shading(sh); end |
#stroke_path ⇒ Object
37 |
# File 'lib/origami/graphics/render.rb', line 37 def stroke_path; end |
#write_text(s) ⇒ Object
36 |
# File 'lib/origami/graphics/render.rb', line 36 def write_text(s); end |