Class: TopinambourFontSelector

Inherits:
Gtk::Box
  • Object
show all
Defined in:
lib/font_selector.rb

Overview

Widget used to choose the font at runtime in a Gtk::Layout

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(window) ⇒ TopinambourFontSelector

Returns a new instance of TopinambourFontSelector.



21
22
23
24
25
26
27
28
# File 'lib/font_selector.rb', line 21

def initialize(window)
  super(:horizontal, 0)
  configure
  @window = window
  @font = @window.terminal.font
  add_buttons
  show_all
end

Instance Attribute Details

#fontObject (readonly)

Returns the value of attribute font.



20
21
22
# File 'lib/font_selector.rb', line 20

def font
  @font
end