Class: RubyCurses::MenuSeparator
- Inherits:
-
Object
- Object
- RubyCurses::MenuSeparator
- Defined in:
- lib/rbcurse/rmenu.rb,
lib/rbcurse/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 ⇒ MenuSeparator
constructor
A new instance of MenuSeparator.
- #on_enter ⇒ Object
- #on_leave ⇒ Object
- #repaint ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ MenuSeparator
Returns a new instance of MenuSeparator.
39 40 41 |
# File 'lib/rbcurse/rmenu.rb', line 39 def initialize @enable = false end |
Instance Attribute Details
#col ⇒ Object
Returns the value of attribute col.
37 38 39 |
# File 'lib/rbcurse/rmenu.rb', line 37 def col @col end |
#enabled ⇒ Object
Returns the value of attribute enabled.
34 35 36 |
# File 'lib/rbcurse/rmenu.rb', line 34 def enabled @enabled end |
#parent ⇒ Object
Returns the value of attribute parent.
35 36 37 |
# File 'lib/rbcurse/rmenu.rb', line 35 def parent @parent end |
#row ⇒ Object
Returns the value of attribute row.
36 37 38 |
# File 'lib/rbcurse/rmenu.rb', line 36 def row @row end |
#width ⇒ Object
Returns the value of attribute width.
38 39 40 |
# File 'lib/rbcurse/rmenu.rb', line 38 def width @width end |
Instance Method Details
#destroy ⇒ Object
45 46 |
# File 'lib/rbcurse/rmenu.rb', line 45 def destroy end |
#on_enter ⇒ Object
47 48 |
# File 'lib/rbcurse/rmenu.rb', line 47 def on_enter end |
#on_leave ⇒ Object
49 50 |
# File 'lib/rbcurse/rmenu.rb', line 49 def on_leave end |
#repaint ⇒ Object
42 43 44 |
# File 'lib/rbcurse/rmenu.rb', line 42 def repaint @parent.window.printstring( @row, 0, "|%s|" % ("-"*@width), $reversecolor) end |
#to_s ⇒ Object
51 52 53 |
# File 'lib/rbcurse/rmenu.rb', line 51 def to_s "" end |