SketchUp  Ruby API Reference 

Class Index

Method Index

Developers Guide

Examples

OptionsProviderObserver interface

This observer interface is implemented to react to opertions provider events. To implement this observer, create a Ruby class of this type, override the desired methods, and add an instance of the observer to the objects of interests.

class MyEntityObserver <  Sketchup::EntityObserver
 	def onEntityChanged (entity)


		# do something

	end

end
# In your code. If the face changes, MyEntityObserver is called.

face.add_observer(MyEntityObserver.new)             
   

Parent: <parent in class hierarchy>

Methods: onOptionsProviderChanged

Example code:   

Instance Methods


onOptionsProviderChanged

 

Syntax

 

Arguments

options - an OptionsProvider object

name - The name of the property within the OptionsProvider object that has changed.

Return Value

 

Comments

 

Example

 

 

SketchUp  Ruby API Reference: OptionsProviderObserver interface

© Google Inc. 2007 sketchup.google.com