Class: Context::Gtk::PageView

Inherits:
PageView show all
Defined in:
lib/Context/Views/Gtk/PageView.rb

Instance Attribute Summary collapse

Attributes inherited from View

#context

Instance Method Summary collapse

Methods inherited from PageView

#close

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

#mainWindowObject (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

#emitDestroyEventObject



26
27
28
# File 'lib/Context/Views/Gtk/PageView.rb', line 26

def emitDestroyEvent
	@mainWindow.signal_emit("destroy")
end

#getWidgetObject



22
23
24
# File 'lib/Context/Views/Gtk/PageView.rb', line 22

def getWidget
	@mainWindow
end

#openObject



18
19
20
# File 'lib/Context/Views/Gtk/PageView.rb', line 18

def open
          @mainWindow.open
end