Class: Basher::UI::BaseView
- Inherits:
-
Curtis::View
- Object
- Curtis::View
- Basher::UI::BaseView
- Defined in:
- lib/basher/ui/base_view.rb
Direct Known Subclasses
CurrentWordView, DebugView, InfoView, LoadingView, MenuView, ProgressView, RemainingWordsView, ScoreView, TitleView
Instance Attribute Summary collapse
-
#should_redraw ⇒ Object
Returns the value of attribute should_redraw.
Instance Method Summary collapse
- #clear(also_thread = true) ⇒ Object
-
#initialize ⇒ BaseView
constructor
A new instance of BaseView.
- #resize_and_reposition ⇒ Object
- #will_resize! ⇒ Object
Constructor Details
#initialize ⇒ BaseView
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_redraw ⇒ Object
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_reposition ⇒ Object
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 |