Class: RubyCurses::MenuSeparator

Inherits:
Object
  • Object
show all
Defined in:
lib/rbcurse/rmenu.rb,
lib/rbcurse/rpopupmenu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMenuSeparator

Returns a new instance of MenuSeparator.



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

def initialize 
  @enable = false
end

Instance Attribute Details

#colObject

Returns the value of attribute col.



37
38
39
# File 'lib/rbcurse/rmenu.rb', line 37

def col
  @col
end

#enabledObject

Returns the value of attribute enabled.



34
35
36
# File 'lib/rbcurse/rmenu.rb', line 34

def enabled
  @enabled
end

#parentObject

Returns the value of attribute parent.



35
36
37
# File 'lib/rbcurse/rmenu.rb', line 35

def parent
  @parent
end

#rowObject

Returns the value of attribute row.



36
37
38
# File 'lib/rbcurse/rmenu.rb', line 36

def row
  @row
end

#widthObject

Returns the value of attribute width.



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

def width
  @width
end

Instance Method Details

#destroyObject



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

def destroy
end

#on_enterObject



47
48
# File 'lib/rbcurse/rmenu.rb', line 47

def on_enter
end

#on_leaveObject



49
50
# File 'lib/rbcurse/rmenu.rb', line 49

def on_leave
end

#repaintObject



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

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

#to_sObject



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

def to_s
  ""
end