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.



244
245
246
247
248
249
250
251
252
253
254
255
# File 'lib/a-tkcommons.rb', line 244

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.



242
243
244
# File 'lib/a-tkcommons.rb', line 242

def frame1
  @frame1
end

#frame2Object (readonly)

Returns the value of attribute frame2.



243
244
245
# File 'lib/a-tkcommons.rb', line 243

def frame2
  @frame2
end

Instance Method Details

#maximize(_frame) ⇒ Object



257
258
259
260
261
262
# File 'lib/a-tkcommons.rb', line 257

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

#minimize(_frame) ⇒ Object



264
265
266
267
268
269
# File 'lib/a-tkcommons.rb', line 264

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