Module: CDK::HasScreen
- Included in:
- CDKOBJS
- Defined in:
- lib/cdk/mixins/has_screen.rb
Instance Attribute Summary collapse
-
#is_visible ⇒ Object
Returns the value of attribute is_visible.
-
#screen ⇒ Object
Returns the value of attribute screen.
-
#screen_index ⇒ Object
Returns the value of attribute screen_index.
Instance Method Summary collapse
- #init_screen ⇒ Object
- #SCREEN_XPOS(n) ⇒ Object
- #SCREEN_YPOS(n) ⇒ Object
- #wrefresh(win = @win) ⇒ Object
Instance Attribute Details
#is_visible ⇒ Object
Returns the value of attribute is_visible.
3 4 5 |
# File 'lib/cdk/mixins/has_screen.rb', line 3 def is_visible @is_visible end |
#screen ⇒ Object
Returns the value of attribute screen.
3 4 5 |
# File 'lib/cdk/mixins/has_screen.rb', line 3 def screen @screen end |
#screen_index ⇒ Object
Returns the value of attribute screen_index.
3 4 5 |
# File 'lib/cdk/mixins/has_screen.rb', line 3 def screen_index @screen_index end |
Instance Method Details
#init_screen ⇒ Object
7 8 9 |
# File 'lib/cdk/mixins/has_screen.rb', line 7 def init_screen @is_visible = true end |
#SCREEN_XPOS(n) ⇒ Object
11 12 13 |
# File 'lib/cdk/mixins/has_screen.rb', line 11 def SCREEN_XPOS(n) n + @border_size end |
#SCREEN_YPOS(n) ⇒ Object
15 16 17 |
# File 'lib/cdk/mixins/has_screen.rb', line 15 def SCREEN_YPOS(n) n + @border_size + @title_lines end |