Class: RubyCurses::MenuSeparator

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

Overview

The separator that separates menuitems, helping to group them.

Since:

  • 1.4.1 UNTESTED

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMenuSeparator

Returns a new instance of MenuSeparator.

Since:

  • 1.4.1 UNTESTED



45
46
47
# File 'lib/rbcurse/core/widgets/rmenu.rb', line 45

def initialize 
  @enable = false
end

Instance Attribute Details

#bgcolorObject

2011-09-25 V1.3.1

Since:

  • 1.4.1 UNTESTED



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

def bgcolor
  @bgcolor
end

#coffsetObject

Since:

  • 1.4.1 UNTESTED



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

def coffset
  @coffset
end

#colObject

Since:

  • 1.4.1 UNTESTED



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

def col
  @col
end

#colorObject

2011-09-25 V1.3.1

Since:

  • 1.4.1 UNTESTED



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

def color
  @color
end

#enabledObject

Since:

  • 1.4.1 UNTESTED



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

def enabled
  @enabled
end

#parentObject

Since:

  • 1.4.1 UNTESTED



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

def parent
  @parent
end

#rowObject

Since:

  • 1.4.1 UNTESTED



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

def row
  @row
end

#widthObject

Since:

  • 1.4.1 UNTESTED



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

def width
  @width
end

Instance Method Details

#destroyObject

Since:

  • 1.4.1 UNTESTED



52
53
# File 'lib/rbcurse/core/widgets/rmenu.rb', line 52

def destroy
end

#on_enterObject

Since:

  • 1.4.1 UNTESTED



54
55
# File 'lib/rbcurse/core/widgets/rmenu.rb', line 54

def on_enter
end

#on_leaveObject

Since:

  • 1.4.1 UNTESTED



56
57
# File 'lib/rbcurse/core/widgets/rmenu.rb', line 56

def on_leave
end

#repaintObject

Since:

  • 1.4.1 UNTESTED



48
49
50
51
# File 'lib/rbcurse/core/widgets/rmenu.rb', line 48

def repaint
  acolor = get_color($reversecolor, @color, @bgcolor)
  @parent.window.printstring( @row, 0, "|%s|" % ("-"*@width), acolor)
end

#to_sObject

Since:

  • 1.4.1 UNTESTED



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

def to_s
  ""
end