Module: Glimmer::LibUI::DualColumn
- Included in:
- CheckboxTextColumnProxy, ImageTextColumnProxy
- Defined in:
- lib/glimmer/libui/dual_column.rb
Overview
A dual column is one that represents two values (e.g. image and text or checkbox and text) It is meant to be included in a column proxy class that already includes Column
Instance Method Summary collapse
Instance Method Details
#column_index ⇒ Object
31 32 33 34 35 |
# File 'lib/glimmer/libui/dual_column.rb', line 31 def column_index @column_index ||= @parent_proxy.send(:next_column_index).tap do @parent_proxy.send(:next_column_index) end end |
#second_column_index ⇒ Object
27 28 29 |
# File 'lib/glimmer/libui/dual_column.rb', line 27 def second_column_index column_index + 1 end |