Module: CDK::HasScreen

Included in:
CDKOBJS
Defined in:
lib/cdk/mixins/has_screen.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#is_visibleObject

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

#screenObject

Returns the value of attribute screen.



3
4
5
# File 'lib/cdk/mixins/has_screen.rb', line 3

def screen
  @screen
end

#screen_indexObject

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_screenObject



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

#wrefresh(win = @win) ⇒ Object



19
20
21
# File 'lib/cdk/mixins/has_screen.rb', line 19

def wrefresh(win=@win)
  SCREEN.wrefresh(win)
end