Class: Canis::MenuSeparator
Overview
The separator that separates menuitems, helping to group them.
Instance Attribute Summary collapse
-
#bgcolor ⇒ Object
2011-09-25 V1.3.1.
-
#coffset ⇒ Object
Returns the value of attribute coffset.
-
#col ⇒ Object
Returns the value of attribute col.
-
#color ⇒ Object
2011-09-25 V1.3.1.
-
#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.
45 46 47 |
# File 'lib/canis/core/widgets/rmenu.rb', line 45 def initialize @enable = false end |
Instance Attribute Details
#bgcolor ⇒ Object
2011-09-25 V1.3.1
44 45 46 |
# File 'lib/canis/core/widgets/rmenu.rb', line 44 def bgcolor @bgcolor end |
#coffset ⇒ Object
Returns the value of attribute coffset.
42 43 44 |
# File 'lib/canis/core/widgets/rmenu.rb', line 42 def coffset @coffset end |
#col ⇒ Object
Returns the value of attribute col.
41 42 43 |
# File 'lib/canis/core/widgets/rmenu.rb', line 41 def col @col end |
#color ⇒ Object
2011-09-25 V1.3.1
44 45 46 |
# File 'lib/canis/core/widgets/rmenu.rb', line 44 def color @color end |
#enabled ⇒ Object
Returns the value of attribute enabled.
38 39 40 |
# File 'lib/canis/core/widgets/rmenu.rb', line 38 def enabled @enabled end |
#parent ⇒ Object
Returns the value of attribute parent.
39 40 41 |
# File 'lib/canis/core/widgets/rmenu.rb', line 39 def parent @parent end |
#row ⇒ Object
Returns the value of attribute row.
40 41 42 |
# File 'lib/canis/core/widgets/rmenu.rb', line 40 def row @row end |
#width ⇒ Object
Returns the value of attribute width.
43 44 45 |
# File 'lib/canis/core/widgets/rmenu.rb', line 43 def width @width end |
Instance Method Details
#destroy ⇒ Object
56 57 |
# File 'lib/canis/core/widgets/rmenu.rb', line 56 def destroy end |
#on_enter ⇒ Object
58 59 |
# File 'lib/canis/core/widgets/rmenu.rb', line 58 def on_enter end |
#on_leave ⇒ Object
60 61 |
# File 'lib/canis/core/widgets/rmenu.rb', line 60 def on_leave end |
#repaint ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'lib/canis/core/widgets/rmenu.rb', line 48 def repaint acolor = get_color($reversecolor, @color, @bgcolor) #@parent.window.printstring( @row, 0, "|%s|" % ("-"*@width), acolor) @parent.window.mvwhline( @row, 1, Ncurses::ACS_HLINE, @width) # these 2 are probably overwritten by the borders @parent.window.mvaddch( @row, 0, Ncurses::ACS_LTEE) @parent.window.mvaddch( @row, @width+1, Ncurses::ACS_RTEE) end |
#to_s ⇒ Object
62 63 64 |
# File 'lib/canis/core/widgets/rmenu.rb', line 62 def to_s "" end |