Class: JLDrill::Gtk::ExampleView

Inherits:
ShowExamplesContext::ExampleView show all
Defined in:
lib/jldrill/views/gtk/ExampleView.rb

Instance Attribute Summary collapse

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from ShowExamplesContext::ExampleView

#close

Methods inherited from Context::View

#addView, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context) ⇒ ExampleView

Returns a new instance of ExampleView.



10
11
12
13
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 10

def initialize(context)
	super(context)
	@exampleWindow = ExampleWindow.new(self)
end

Instance Attribute Details

#exampleWindowObject (readonly)

Returns the value of attribute exampleWindow.



8
9
10
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 8

def exampleWindow
  @exampleWindow
end

Instance Method Details

#destroyObject



23
24
25
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 23

def destroy
    @exampleWindow.explicitDestroy
end

#emitDestroyEventObject



27
28
29
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 27

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

#getWidgetObject



15
16
17
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 15

def getWidget
	@exampleWindow
end

#mainWindowObject



19
20
21
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 19

def mainWindow
    getWidget.gtkWidgetMainWindow
end

#showBusy(bool) ⇒ Object



46
47
48
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 46

def showBusy(bool)
    @exampleWindow.showBusy(bool)
end

#update(examples) ⇒ Object



41
42
43
44
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 41

def update(examples)
    super(examples)
    @exampleWindow.updateContents(examples)
end

#updateNativeOnly(examples) ⇒ Object



31
32
33
34
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 31

def updateNativeOnly(examples)
    super(examples)
    @exampleWindow.updateNativeOnly(examples)
end

#updateTargetOnly(examples) ⇒ Object



36
37
38
39
# File 'lib/jldrill/views/gtk/ExampleView.rb', line 36

def updateTargetOnly(examples)
    super(examples)
    @exampleWindow.updateTargetOnly(examples)
end