Class: Cosmos::RubyEditor::LineNumberArea

Inherits:
Qt::Widget show all
Defined in:
lib/cosmos/gui/text/ruby_editor.rb

Instance Method Summary collapse

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