Class: Basher::UI::BaseView

Inherits:
Curtis::View
  • Object
show all
Defined in:
lib/basher/ui/base_view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseView

Returns a new instance of BaseView.



7
8
9
10
# File 'lib/basher/ui/base_view.rb', line 7

def initialize
  self.should_redraw = false
  super
end

Instance Attribute Details

#should_redrawObject

Returns the value of attribute should_redraw.



5
6
7
# File 'lib/basher/ui/base_view.rb', line 5

def should_redraw
  @should_redraw
end

Instance Method Details

#clear(also_thread = true) ⇒ Object



22
23
24
25
# File 'lib/basher/ui/base_view.rb', line 22

def clear(also_thread = true)
  clear_thread! if also_thread
  window.clear
end

#resize_and_repositionObject



16
17
18
19
20
# File 'lib/basher/ui/base_view.rb', line 16

def resize_and_reposition
  reposition
  resize
  self.should_redraw = false
end

#will_resize!Object



12
13
14
# File 'lib/basher/ui/base_view.rb', line 12

def will_resize!
  self.should_redraw = true
end