Class: Emfsvg::Translation::Handlers::RectHandler
- Inherits:
-
Object
- Object
- Emfsvg::Translation::Handlers::RectHandler
- Includes:
- Emf::Emr::Binary::TypeCodes, SharedGdi
- Defined in:
- lib/emfsvg/translation/handlers/rect_handler.rb
Overview
Translate
Class Method Summary collapse
Instance Method Summary collapse
Methods included from SharedGdi
#clip_bounds_for, #emit_create_brush, #emit_create_pen, #emit_delete, #emit_restore_dc, #emit_save_dc, #with_gdi_state
Class Method Details
.call(element, context) ⇒ Object
13 14 15 16 |
# File 'lib/emfsvg/translation/handlers/rect_handler.rb', line 13 def self.call(element, context) handler = new handler.translate(element, context) end |
Instance Method Details
#translate(element, context) ⇒ Object
18 19 20 21 22 |
# File 'lib/emfsvg/translation/handlers/rect_handler.rb', line 18 def translate(element, context) with_gdi_state(element, context) do emit_rect(element, context) end end |