Class: Gtk::SourceView

Inherits:
Object
  • Object
show all
Defined in:
lib/merrol/gtk/source_view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#highlight_bracketsObject (readonly)

Returns the value of attribute highlight_brackets.



3
4
5
# File 'lib/merrol/gtk/source_view.rb', line 3

def highlight_brackets
  @highlight_brackets
end

#themeObject

Returns the value of attribute theme.



3
4
5
# File 'lib/merrol/gtk/source_view.rb', line 3

def theme
  @theme
end

Instance Method Details

#highlight_matching_brackets=(on) ⇒ Object



13
14
15
# File 'lib/merrol/gtk/source_view.rb', line 13

def highlight_matching_brackets= on
  @highlight_brackets = on
end

#scroll_to_cursorObject



17
18
19
# File 'lib/merrol/gtk/source_view.rb', line 17

def scroll_to_cursor
  scroll_mark_onscreen buffer.selection_bound
end