Class: Flumtter::Window::Base

Inherits:
Object
  • Object
show all
Includes:
Dispel::Util
Defined in:
lib/flumtter/app/core/windows/base.rb

Direct Known Subclasses

Dialog, Popup

Instance Method Summary collapse

Methods included from Dispel::Util

#add_multiline_str, #addstr, #getstr

Constructor Details

#initialize(title, body, hight = body.size_of_lines, width = body.max_char_of_lines+2) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
11
12
13
# File 'lib/flumtter/app/core/windows/base.rb', line 6

def initialize(title, body, 
               hight=body.size_of_lines,
               width=body.max_char_of_lines+2)
  @title = title
  @body = body
  @hight = hight + 8
  @width = [width,title.title.exact_size+2].max
end