Class: Cosmos::RubyEditor::LineNumberArea
- Inherits:
-
Qt::Widget
- Object
- Qt::Base
- Qt::Widget
- Cosmos::RubyEditor::LineNumberArea
- Defined in:
- lib/cosmos/gui/text/ruby_editor.rb
Instance Method Summary collapse
-
#initialize(editor) ⇒ LineNumberArea
constructor
A new instance of LineNumberArea.
- #paintEvent(event) ⇒ Object
Constructor Details
#initialize(editor) ⇒ LineNumberArea
Returns a new instance of LineNumberArea.
144 145 146 147 148 |
# File 'lib/cosmos/gui/text/ruby_editor.rb', line 144 def initialize(editor) super(editor) @codeEditor = editor self end |
Instance Method Details
#paintEvent(event) ⇒ Object
150 151 152 |
# File 'lib/cosmos/gui/text/ruby_editor.rb', line 150 def paintEvent(event) @codeEditor.line_number_area_paint_event(event) end |