Class: VER::Buffer::Frame
- Inherits:
-
Tk::Frame
- Object
- Tk::Frame
- VER::Buffer::Frame
- Defined in:
- lib/ver/buffer/frame.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#shown ⇒ Object
(also: #shown?)
Returns the value of attribute shown.
Instance Method Summary collapse
-
#initialize(parent, buffer, options = {}) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(parent, buffer, options = {}) ⇒ Frame
Returns a new instance of Frame.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/ver/buffer/frame.rb', line 8 def initialize(parent, buffer, = {}) @buffer = buffer = .dup [:takefocus] ||= false # options[:style] ||= VER.obtain_style_name('Buffer', 'TFrame') # options[:padding] ||= 2 # options[:relief] ||= :solid super(parent, ) @shown = true bind('<FocusIn>'){ buffer.focus; Tk.callback_break } end |
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
4 5 6 |
# File 'lib/ver/buffer/frame.rb', line 4 def buffer @buffer end |
#shown ⇒ Object Also known as: shown?
Returns the value of attribute shown.
5 6 7 |
# File 'lib/ver/buffer/frame.rb', line 5 def shown @shown end |