Class: TopinambourFontSelector
- Inherits:
-
Gtk::Box
- Object
- Gtk::Box
- TopinambourFontSelector
- Defined in:
- lib/font_selector.rb
Overview
Widget used to choose the font at runtime in a Gtk::Layout
Instance Attribute Summary collapse
-
#font ⇒ Object
readonly
Returns the value of attribute font.
Instance Method Summary collapse
-
#initialize(window) ⇒ TopinambourFontSelector
constructor
A new instance of TopinambourFontSelector.
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 show_all end |
Instance Attribute Details
#font ⇒ Object (readonly)
Returns the value of attribute font.
20 21 22 |
# File 'lib/font_selector.rb', line 20 def font @font end |