Class: AGTkSplittedFrames
- Inherits:
-
TkFrameAdapter
- Object
- TkFrame
- TkFrameAdapter
- AGTkSplittedFrames
- Defined in:
- lib/a-tkcommons.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#frame1 ⇒ Object
readonly
Returns the value of attribute frame1.
-
#frame2 ⇒ Object
readonly
Returns the value of attribute frame2.
Attributes inherited from TkFrameAdapter
Instance Method Summary collapse
-
#initialize(parent = nil, frame = nil, length = 10, slen = 5, user_control = true, keys = nil) ⇒ AGTkSplittedFrames
constructor
A new instance of AGTkSplittedFrames.
- #maximize(_frame) ⇒ Object
- #minimize(_frame) ⇒ Object
Methods inherited from TkFrameAdapter
#attach_frame, #detach_frame, #is_pack?, #is_place?, #is_undefined?, #map, #refresh_layout_manager, #unmap
Constructor Details
#initialize(parent = nil, frame = nil, length = 10, slen = 5, user_control = true, keys = nil) ⇒ AGTkSplittedFrames
Returns a new instance of AGTkSplittedFrames.
350 351 352 353 354 355 356 357 358 359 360 361 362 |
# File 'lib/a-tkcommons.rb', line 350 def initialize(parent=nil, frame=nil, length=10, slen=5, user_control=true, keys=nil) # if keys.nil? # keys = Hash.new # end # keys.update(Arcadia.style('panel')) super(parent, keys) @parent = parent @slen = slen @user_control = user_control if frame self.attach_frame(frame) end end |
Instance Attribute Details
#frame1 ⇒ Object (readonly)
Returns the value of attribute frame1.
348 349 350 |
# File 'lib/a-tkcommons.rb', line 348 def frame1 @frame1 end |
#frame2 ⇒ Object (readonly)
Returns the value of attribute frame2.
349 350 351 |
# File 'lib/a-tkcommons.rb', line 349 def frame2 @frame2 end |
Instance Method Details
#maximize(_frame) ⇒ Object
364 365 366 367 368 369 |
# File 'lib/a-tkcommons.rb', line 364 def maximize(_frame) p = TkWinfo.parent(@frame) if p.kind_of?(AGTkSplittedFrames) p.maximize(@frame) end end |
#minimize(_frame) ⇒ Object
371 372 373 374 375 376 |
# File 'lib/a-tkcommons.rb', line 371 def minimize(_frame) p = TkWinfo.parent(@frame) if p.kind_of?(AGTkSplittedFrames) p.minimize(@frame) end end |