Class: Wx::ListCtrl
- Inherits:
-
Object
- Object
- Wx::ListCtrl
- Includes:
- Enumerable
- Defined in:
- lib/wx/classes/listctrl.rb
Overview
Multi-item control with numerous possible view styles
Instance Method Summary collapse
-
#each ⇒ Object
Passes each valid item index into the passed block.
-
#on_get_item_attr(i) ⇒ Object
Stub version for LC_VIRTUAL controls that does nothing; may be overridden in subclasses.
-
#on_get_item_column_image(i, col) ⇒ Object
Stub version for LC_VIRTUAL|LC_REPORT controls that does nothing; may be overridden in subclasses.
Instance Method Details
#each ⇒ Object
Passes each valid item index into the passed block
6 7 8 |
# File 'lib/wx/classes/listctrl.rb', line 6 def each 0.upto(item_count - 1) { | i | yield i } end |
#on_get_item_attr(i) ⇒ Object
Stub version for LC_VIRTUAL controls that does nothing; may be overridden in subclasses.
12 13 14 |
# File 'lib/wx/classes/listctrl.rb', line 12 def on_get_item_attr(i) nil end |
#on_get_item_column_image(i, col) ⇒ Object
Stub version for LC_VIRTUAL|LC_REPORT controls that does nothing; may be overridden in subclasses.
18 19 20 |
# File 'lib/wx/classes/listctrl.rb', line 18 def on_get_item_column_image(i, col) -1 end |