Class: Idml::Render::RenderContext
- Inherits:
-
Struct
- Object
- Struct
- Idml::Render::RenderContext
- Defined in:
- lib/idml/render/render_context.rb
Overview
Shared state passed to every page-item renderer. Carries the package (for story/color lookups), font/color resolvers, the current font's PostScript name, and page dimensions. Renderers are pure functions of this context + the page item.
Instance Attribute Summary collapse
-
#color_resolver ⇒ Object
Returns the value of attribute color_resolver.
-
#font_ps_name ⇒ Object
Returns the value of attribute font_ps_name.
-
#font_ref_resolver ⇒ Object
Returns the value of attribute font_ref_resolver.
-
#font_resolver ⇒ Object
Returns the value of attribute font_resolver.
-
#item ⇒ Object
Returns the value of attribute item.
-
#layer_filter ⇒ Object
Returns the value of attribute layer_filter.
-
#package ⇒ Object
Returns the value of attribute package.
-
#page_height ⇒ Object
Returns the value of attribute page_height.
-
#page_width ⇒ Object
Returns the value of attribute page_width.
Instance Attribute Details
#color_resolver ⇒ Object
Returns the value of attribute color_resolver
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def color_resolver @color_resolver end |
#font_ps_name ⇒ Object
Returns the value of attribute font_ps_name
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def font_ps_name @font_ps_name end |
#font_ref_resolver ⇒ Object
Returns the value of attribute font_ref_resolver
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def font_ref_resolver @font_ref_resolver end |
#font_resolver ⇒ Object
Returns the value of attribute font_resolver
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def font_resolver @font_resolver end |
#item ⇒ Object
Returns the value of attribute item
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def item @item end |
#layer_filter ⇒ Object
Returns the value of attribute layer_filter
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def layer_filter @layer_filter end |
#package ⇒ Object
Returns the value of attribute package
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def package @package end |
#page_height ⇒ Object
Returns the value of attribute page_height
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def page_height @page_height end |
#page_width ⇒ Object
Returns the value of attribute page_width
9 10 11 |
# File 'lib/idml/render/render_context.rb', line 9 def page_width @page_width end |