Class: RubyCurses::PMenuSeparator

Inherits:
Object
  • Object
show all
Defined in:
lib/rbcurse/extras/widgets/rpopupmenu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePMenuSeparator

Returns a new instance of PMenuSeparator.



43
44
45
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 43

def initialize 
  @enable = false
end

Instance Attribute Details

#colObject

Returns the value of attribute col.



41
42
43
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 41

def col
  @col
end

#enabledObject

Returns the value of attribute enabled.



38
39
40
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 38

def enabled
  @enabled
end

#parentObject

Returns the value of attribute parent.



39
40
41
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 39

def parent
  @parent
end

#rowObject

Returns the value of attribute row.



40
41
42
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 40

def row
  @row
end

#widthObject

Returns the value of attribute width.



42
43
44
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 42

def width
  @width
end

Instance Method Details

#destroyObject



49
50
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 49

def destroy
end

#on_enterObject



51
52
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 51

def on_enter
end

#on_leaveObject



53
54
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 53

def on_leave
end

#repaintObject



46
47
48
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 46

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

#to_sObject



55
56
57
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 55

def to_s
  ""
end