Class: TkWrapper::Util::Tk::Cell
- Inherits:
-
Object
- Object
- TkWrapper::Util::Tk::Cell
- Defined in:
- lib/util/tk/cell.rb
Instance Method Summary collapse
-
#bbox ⇒ Object
returns the bounding box of the tk_widget.
-
#initialize(widget) ⇒ Cell
constructor
A new instance of Cell.
Constructor Details
#initialize(widget) ⇒ Cell
Returns a new instance of Cell.
6 7 8 |
# File 'lib/util/tk/cell.rb', line 6 def initialize() @widget = end |
Instance Method Details
#bbox ⇒ Object
returns the bounding box of the tk_widget
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/util/tk/cell.rb', line 11 def bbox return unless (container = container_parent) grid_info = TkGrid.info(@widget.) start_col = grid_info['column'] end_col = start_col + grid_info['columnspan'] - 1 start_row = grid_info['row'] end_row = start_row + grid_info['rowspan'] - 1 container..update TkGrid.bbox(container., start_col, start_row, end_col, end_row) end |