Class: Canis::MenuSeparator

Inherits:
Object show all
Defined in:
lib/canis/core/widgets/rmenu.rb

Overview

The separator that separates menuitems, helping to group them.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMenuSeparator

Returns a new instance of MenuSeparator.



44
45
46
# File 'lib/canis/core/widgets/rmenu.rb', line 44

def initialize 
  @enable = false
end

Instance Attribute Details

#bgcolorObject

2011-09-25 V1.3.1



43
44
45
# File 'lib/canis/core/widgets/rmenu.rb', line 43

def bgcolor
  @bgcolor
end

#coffsetObject

Returns the value of attribute coffset.



41
42
43
# File 'lib/canis/core/widgets/rmenu.rb', line 41

def coffset
  @coffset
end

#colObject

Returns the value of attribute col.



40
41
42
# File 'lib/canis/core/widgets/rmenu.rb', line 40

def col
  @col
end

#colorObject

2011-09-25 V1.3.1



43
44
45
# File 'lib/canis/core/widgets/rmenu.rb', line 43

def color
  @color
end

#enabledObject

Returns the value of attribute enabled.



37
38
39
# File 'lib/canis/core/widgets/rmenu.rb', line 37

def enabled
  @enabled
end

#parentObject

Returns the value of attribute parent.



38
39
40
# File 'lib/canis/core/widgets/rmenu.rb', line 38

def parent
  @parent
end

#rowObject

Returns the value of attribute row.



39
40
41
# File 'lib/canis/core/widgets/rmenu.rb', line 39

def row
  @row
end

#widthObject

Returns the value of attribute width.



42
43
44
# File 'lib/canis/core/widgets/rmenu.rb', line 42

def width
  @width
end

Instance Method Details

#destroyObject



55
56
# File 'lib/canis/core/widgets/rmenu.rb', line 55

def destroy
end

#on_enterObject



57
58
# File 'lib/canis/core/widgets/rmenu.rb', line 57

def on_enter
end

#on_leaveObject



59
60
# File 'lib/canis/core/widgets/rmenu.rb', line 59

def on_leave
end

#repaintObject



47
48
49
50
51
52
53
54
# File 'lib/canis/core/widgets/rmenu.rb', line 47

def repaint
  acolor = get_color($reversecolor, @color, @bgcolor)
  #@parent.window.printstring( @row, 0, "|%s|" % ("-"*@width), acolor)
  @parent.window.mvwhline( @row, 1, Ncurses::ACS_HLINE, @width)
  # these 2 are probably overwritten by the borders
  @parent.window.mvaddch( @row, 0, Ncurses::ACS_LTEE)
  @parent.window.mvaddch( @row, @width+1, Ncurses::ACS_RTEE)
end

#to_sObject



61
62
63
# File 'lib/canis/core/widgets/rmenu.rb', line 61

def to_s
  ""
end