Class: TkInspect::CanvasWindow::RootComponent
- Inherits:
-
TkComponent::Base
- Object
- TkComponent::Base
- TkInspect::CanvasWindow::RootComponent
- Defined in:
- lib/tk_inspect/canvas_window/root_component.rb
Instance Attribute Summary collapse
-
#canvas_window ⇒ Object
Returns the value of attribute canvas_window.
Instance Method Summary collapse
Instance Attribute Details
#canvas_window ⇒ Object
Returns the value of attribute canvas_window.
4 5 6 |
# File 'lib/tk_inspect/canvas_window/root_component.rb', line 4 def canvas_window @canvas_window end |
Instance Method Details
#canvas ⇒ Object
10 11 12 |
# File 'lib/tk_inspect/canvas_window/root_component.rb', line 10 def canvas @canvas.native_item end |
#render(p, parent_component) ⇒ Object
6 7 8 |
# File 'lib/tk_inspect/canvas_window/root_component.rb', line 6 def render(p, parent_component) @canvas = p.canvas(sticky: 'nwes', x_flex: 1, y_flex: 1) end |