Class: Context::PageView

Inherits:
View
  • Object
show all
Defined in:
lib/Context/Views/PageView.rb

Direct Known Subclasses

Gtk::PageView

Instance Attribute Summary

Attributes inherited from View

#context

Instance Method Summary collapse

Methods inherited from View

#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context) ⇒ PageView

Returns a new instance of PageView.



5
6
7
# File 'lib/Context/Views/PageView.rb', line 5

def initialize(context)
	super(context)
end

Instance Method Details

#closeObject

The page view is meant to be the main view for a context (in Gtk it’s a window). So if the view closes, it should close the context. Actually, I’m not sure if I like this idea. It might change.



13
14
15
# File 'lib/Context/Views/PageView.rb', line 13

def close
	@context.close
end