Class: RubyCurses::PMenuSeparator
- Inherits:
-
Object
- Object
- RubyCurses::PMenuSeparator
- Defined in:
- lib/rbcurse/extras/widgets/rpopupmenu.rb
Instance Attribute Summary collapse
-
#col ⇒ Object
Returns the value of attribute col.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#row ⇒ Object
Returns the value of attribute row.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize ⇒ PMenuSeparator
constructor
A new instance of PMenuSeparator.
- #on_enter ⇒ Object
- #on_leave ⇒ Object
- #repaint ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ PMenuSeparator
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
#col ⇒ Object
Returns the value of attribute col.
41 42 43 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 41 def col @col end |
#enabled ⇒ Object
Returns the value of attribute enabled.
38 39 40 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 38 def enabled @enabled end |
#parent ⇒ Object
Returns the value of attribute parent.
39 40 41 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 39 def parent @parent end |
#row ⇒ Object
Returns the value of attribute row.
40 41 42 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 40 def row @row end |
#width ⇒ Object
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
#destroy ⇒ Object
49 50 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 49 def destroy end |
#on_enter ⇒ Object
51 52 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 51 def on_enter end |
#on_leave ⇒ Object
53 54 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 53 def on_leave end |
#repaint ⇒ Object
46 47 48 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 46 def repaint @parent.window.printstring( @row, 0, "|%s|" % ("-"*@width), $reversecolor) end |
#to_s ⇒ Object
55 56 57 |
# File 'lib/rbcurse/extras/widgets/rpopupmenu.rb', line 55 def to_s "" end |