[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[www,DeviceOrientation] code

DOMEvent
	subclass: #DeviceOrientationEvent
	instanceVariableNames: ' '
	category: #DeviceOrientation!
DeviceOrientationEvent comment: '
	Provides information about the physical orientation and motion of a hosting device.
	http://www.w3.org/TR/orientation-event/
	@2012 Alejandro Reimondo [email protected]
'!
DOMEvent
	subclass: #DeviceMotionEvent
	instanceVariableNames: ' '
	category: #DeviceOrientation!
NativeObject
	subclass: #DeviceAcceleration
	instanceVariableNames: ' '
	category: #DeviceOrientation!
NativeObject
	subclass: #DeviceRotationRate
	instanceVariableNames: ' '
	category: #DeviceOrientation!

DeviceOrientationEvent buildBooleanGetters: #( #absolute )!
DeviceOrientationEvent buildNumberGetters: #( #alpha #beta #gamma )!
DeviceOrientationEvent buildFunctions: #(
	#( #initDeviceOrientationEvent:bubbles:cancelable:alpha:beta:gamma:absolute:
		#( #type #bubbles #cancelable #alpha #beta #gamma #absolute )
	)
)!
DeviceAcceleration buildNumberGetters: #( #x #y #z )!
DeviceRotationRate buildNumberGetters: #( #alpha #beta #gamma )!
DeviceMotionEvent buildGetters: #( #acceleration #accelerationIncludingGravity #rotationRate )!
DeviceMotionEvent buildNumberGetters: #( #interval )!
DeviceMotionEvent buildFunctions: #(
	#( #initAccelerometerEvent:bubbles:cancelable:acceleration:accelerationIncludingGravity:rotationRate:interval:
		#( #type #bubbles #cancelable #acceleration
		   #accelerationIncludingGravity #rotationRate
		   #interval )
	)
)!