Module: Glimmer::LibUI::ControlProxy::TripleColumn

Included in:
Column::CheckboxTextColorColumnProxy, Column::ImageTextColorColumnProxy
Defined in:
lib/glimmer/libui/control_proxy/triple_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_indexObject



36
37
38
39
40
41
# File 'lib/glimmer/libui/control_proxy/triple_column.rb', line 36

def column_index
  @column_index ||= @parent_proxy.send(:next_column_index).tap do
    @parent_proxy.send(:next_column_index)
    @parent_proxy.send(:next_column_index)
  end
end

#second_column_indexObject



28
29
30
# File 'lib/glimmer/libui/control_proxy/triple_column.rb', line 28

def second_column_index
  column_index + 1
end

#third_column_indexObject



32
33
34
# File 'lib/glimmer/libui/control_proxy/triple_column.rb', line 32

def third_column_index
  column_index + 2
end