Class: Context::Gtk::PageView
- Defined in:
- lib/Context/Views/Gtk/PageView.rb
Instance Attribute Summary collapse
-
#mainWindow ⇒ Object
readonly
Returns the value of attribute mainWindow.
Attributes inherited from View
Instance Method Summary collapse
- #emitDestroyEvent ⇒ Object
- #getWidget ⇒ Object
-
#initialize(context, title = "No Title") ⇒ PageView
constructor
A new instance of PageView.
- #open ⇒ Object
Methods inherited from PageView
Methods inherited from View
#addView, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context, title = "No Title") ⇒ PageView
Returns a new instance of PageView.
12 13 14 15 16 |
# File 'lib/Context/Views/Gtk/PageView.rb', line 12 def initialize(context, title="No Title") super(context) @mainWindow = MainWindow.new(title, self) @mainWindow.set_default_size(600, 400) end |
Instance Attribute Details
#mainWindow ⇒ Object (readonly)
Returns the value of attribute mainWindow.
10 11 12 |
# File 'lib/Context/Views/Gtk/PageView.rb', line 10 def mainWindow @mainWindow end |
Instance Method Details
#emitDestroyEvent ⇒ Object
26 27 28 |
# File 'lib/Context/Views/Gtk/PageView.rb', line 26 def emitDestroyEvent @mainWindow.signal_emit("destroy") end |
#getWidget ⇒ Object
22 23 24 |
# File 'lib/Context/Views/Gtk/PageView.rb', line 22 def getWidget @mainWindow end |
#open ⇒ Object
18 19 20 |
# File 'lib/Context/Views/Gtk/PageView.rb', line 18 def open @mainWindow.open end |