Class: PacAgent
- Inherits:
-
Object
- Object
- PacAgent
- Defined in:
- lib/wx-pac/agent.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#panel ⇒ Object
readonly
Returns the value of attribute panel.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(panel, parent = nil) ⇒ PacAgent
constructor
A new instance of PacAgent.
- #split_horizontally(sash_position, style, &block) ⇒ Object
- #split_vertically(sash_position, style, &block) ⇒ Object
Constructor Details
#initialize(panel, parent = nil) ⇒ PacAgent
Returns a new instance of PacAgent.
4 5 6 7 8 9 |
# File 'lib/wx-pac/agent.rb', line 4 def initialize(panel, parent=nil) @panel = panel @parent = parent #todo: should improve handling when parent is nil .. ie do we need a root agent? add end |
Instance Attribute Details
#panel ⇒ Object (readonly)
Returns the value of attribute panel.
2 3 4 |
# File 'lib/wx-pac/agent.rb', line 2 def panel @panel end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
2 3 4 |
# File 'lib/wx-pac/agent.rb', line 2 def parent @parent end |
Instance Method Details
#split_horizontally(sash_position, style, &block) ⇒ Object
15 16 17 |
# File 'lib/wx-pac/agent.rb', line 15 def split_horizontally(sash_position, style, &block) set_split_mode(split(sash_position, style, &block), 1) #todo: should use: SPLIT_HORIZONTAL, but it doesn't work end |
#split_vertically(sash_position, style, &block) ⇒ Object
11 12 13 |
# File 'lib/wx-pac/agent.rb', line 11 def split_vertically(sash_position, style, &block) set_split_mode(split(sash_position, style, &block), 2) #todo: should use: SPLIT_VERTICAL, but it doesn't work end |