Class: Cosmos::RubyEditor::LineNumberArea

Inherits:
Qt::Widget
  • Object
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.



142
143
144
145
146
# File 'lib/cosmos/gui/text/ruby_editor.rb', line 142

def initialize(editor)
  super(editor)
  @codeEditor = editor
  self
end

Instance Method Details

#paintEvent(event) ⇒ Object



148
149
150
# File 'lib/cosmos/gui/text/ruby_editor.rb', line 148

def paintEvent(event)
  @codeEditor.line_number_area_paint_event(event)
end