Differences

This shows you the differences between two versions of the page.

Link to this comparison view

extensions:be_screen [2015/09/14 11:15] (current)
Line 1: Line 1:
 +~~NOTOC~~
  
 +====== BEScreen ======
 +
 +---- dataentry extension ----
 +type          : extension
 +author_mail ​  : briancensor@gmail.com Brian Ensor
 +description ​  : An easy way to handle orientation
 +lastupdate_dt : 2011-04-11
 +compatible ​   : v1.2
 +depends ​      : ​
 +tags          : orientation,​ rotation, rotate, landscape, portrait
 +homepage_url ​ : https://​github.com/​brianensorapps/​BEScreen
 +download_url ​ : https://​github.com/​brianensorapps/​BEScreen/​zipball/​master
 +----
 +
 +===== Usage =====
 +
 +BEScreen makes it easy to set and rotate between orientations automatically. It supports all iOS devices and also sends events upon rotation.
 +
 +Adding to your stage:
 +<code objc>
 +mScreen = [BEScreen screenWithOrientation:​BEScreenOrientationPortrait rotates:YES allowAllOrientations:​YES];​
 +[self addChild:​mScreen];​
 +[mScreen addEventListener:​@selector(orientationChanged:​) atObject:​self forType:​BE_SCREEN_EVENT_ORIENTATIONCHANGED];​
 +</​code>​
 +
 +Adding SPDisplayObjects to BEScreen:
 +<code objc>
 +SPQuad *quad = [SPQuad quadWithWidth:​100 height:100 color:​0xff0000];​
 +quad.x = 50;
 +quad.y = 50;
 +[mScreen addChild:​quad];​
 +</​code>​
 +
 +===== Changelog =====
 +
 +  * //​2011/​02/​14 02:58//: First public version
 +
 +===== Source Code =====
 +
 +https://​github.com/​brianensorapps/​BEScreen
 +
 +===== Discussion =====
 +
 +//No comments so far. Feel free to edit this part of the page.//
  extensions/be_screen.txt · Last modified: 2015/09/14 11:15 (external edit)
 
Powered by DokuWiki