Class: AGTkSplittedFrames

Inherits:
TkFrameAdapter show all
Defined in:
lib/a-tkcommons.rb

Direct Known Subclasses

AGTkOSplittedFrames, AGTkVSplittedFrames

Instance Attribute Summary collapse

Attributes inherited from TkFrameAdapter

#frame

Instance Method Summary collapse

Methods inherited from TkFrameAdapter

#add_moved_by, #attach_frame, #detach_frame, #refresh

Methods included from TkMovable

#moving_do_move_obj, #moving_do_press, #start_moving, #stop_moving

Constructor Details

#initialize(parent = nil, frame = nil, length = 10, slen = 5, keys = nil) ⇒ AGTkSplittedFrames

Returns a new instance of AGTkSplittedFrames.



285
286
287
288
289
290
291
292
293
294
295
296
# File 'lib/a-tkcommons.rb', line 285

def initialize(parent=nil, frame=nil, length=10, slen=5, keys=nil)
  if keys.nil?
    keys = Hash.new
  end
  keys.update(Arcadia.style('panel'))
  super(parent, keys)
  @parent = parent
  @slen = slen
  if frame
    self.attach_frame(frame)
  end
end

Instance Attribute Details

#frame1Object (readonly)

Returns the value of attribute frame1.



283
284
285
# File 'lib/a-tkcommons.rb', line 283

def frame1
  @frame1
end

#frame2Object (readonly)

Returns the value of attribute frame2.



284
285
286
# File 'lib/a-tkcommons.rb', line 284

def frame2
  @frame2
end

Instance Method Details

#maximize(_frame) ⇒ Object



298
299
300
301
302
303
# File 'lib/a-tkcommons.rb', line 298

def maximize(_frame)
  p = TkWinfo.parent(@frame)
  if p.kind_of?(AGTkSplittedFrames)
    p.maximize(@frame)
  end
end

#minimize(_frame) ⇒ Object



305
306
307
308
309
310
# File 'lib/a-tkcommons.rb', line 305

def minimize(_frame)
  p = TkWinfo.parent(@frame)
  if p.kind_of?(AGTkSplittedFrames)
    p.minimize(@frame)
  end
end