User Tools

Site Tools


built_in:layouts

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
built_in:layouts [2015/03/10 19:22]
37.24.149.58 [Methods]
built_in:layouts [2018/12/08 02:02] (current)
Line 10: Line 10:
  
 Create layouts using the **CreateLayout** function of the [[built_in:app|app]] object: Create layouts using the **CreateLayout** function of the [[built_in:app|app]] object:
-<code> lay.AddChildobject );</code>+<code> lay = app.CreateLayouttype, options );</code>
  
 Add child objects to a layout using the **AddChild** function of the layout object. Add child objects to a layout using the **AddChild** function of the layout object.
-<code> lay = app.CreateLayouttype, options );</code>+<code> lay.AddChildobject );</code>
  
 The alignment of child objects within a layout can be set by adding the options **"Left"**, **"Right"**, **"Bottom"** and **"VCenter"**, by default objects will be aligned **"Top,Center"**.\\  The alignment of child objects within a layout can be set by adding the options **"Left"**, **"Right"**, **"Bottom"** and **"VCenter"**, by default objects will be aligned **"Top,Center"**.\\ 
Line 172: Line 172:
  
 ===== Methods ===== ===== Methods =====
-^Method ^Description ^ +^ Method                                                         ^ Description                                                                                                                                                                                                                                        
-|Layout.AddChild( child,order ) | child is the object to add to the Layout. Order is the rang option to make an object behind an other Object.| +| Layout.AddChild( child,order )                                 | child is the object to add to the Layout. Order is the rang option to make an object behind an other Object.                                                                                                                                       
-|Layout.Animate( type,callback ) |known types: <code>SlideFromLeft +| Layout.Animate( type, callback, time                                | known types: SlideFromLeft,SlideFromRight,SlideFromTop,SlideFromBottom,SlideToLeft,SlideToRight,SlideToTop,SlideToBottom,ScaleFromLeft, ScaleFromRight,ScaleFromTop, ScaleFromBottom, ScaleToLeft, ScaleToRight, ScaleToTop,ScaleToBottom,FadeIn,FadeOut,Flip
-ScaleFromLeft +| Layout.ChildToFront( child )                                                                                                                                                                                                                                                                                      
-SlideToLeft +| Layout.Destroy()                                               | This function Destroys a Layout forever.                                                                                                                                                                                                           
-ScaleToLeft +| Layout.DestroyChild( child )                                   | This function Destroys a child of a Layout forever.                                                                                                                                                                                                
-SlideFromRight +| Layout.GetAbsHeight()                                                                                                                                                                                                                                                                                             
-ScaleFromRight +| Layout.GetAbsWidth()                                                                                                                                                                                                                                                                                              
-SlideToRight +| Layout.GetChildOrder( child )                                  | This function returns the rang of an Object of a Layout.                                                                                                                                                                                           
-ScaleToRight +| Layout.GetHeight()                                             | This returns the Height of an Layout.                                                                                                                                                                                                              
-SlideFromTop +| Layout.GetPosition()                                           | This returns the Position of an Layout.                                                                                                                                                                                                            
-ScaleFromTop +| Layout.GetType()                                               | This returns the string "Layout"                                                                                                                                                      
-SlideToTop +| Layout.GetVisibility()                                         | This returns a Layout's visibility mode“Hide”, “Show” or “Gone”                                                                                                                                                                                  
-ScaleToTop +| Layout.GetWidth()                                              | This returns the Width of an Layout.                                                                                                        | 
-SlideFromBottom +| Layout.SetOnTouch( callback )           |Does not work in 'TouchThrough' mode               | 
-ScaleFromBottom +| Layout.SetOnTouchDown( callback )       |only OnTouchDown works when in 'TouchThrough' mode | 
-SlideToBottom +| Layout.SetOnTouchMove( callback )       |Does not work in 'TouchThrough' mode               | 
-ScaleToBottom</code> +| Layout.SetOnTouchUp( callback )         |Does not work in 'TouchThrough' mode               
-|Layout.ChildToFront( child ) | | +| Layout.Release()                                                              
-|Layout.Destroy() | This function Destroys a Layout forever.| +| Layout.RemoveChild( child )                                    | This removes a Child of an Layout, this Child can be added again with Layout.AddChild( child ).                                                                                                                                                    
-|Layout.DestroyChild( child ) | This function Destroys a child of a Layout forever.| +| Layout.SetBackColor( colorCode )                               | This sets the Background Color of an Layout.                                                                                                                                                                                                       
-|Layout.GetAbsHeight() | | +| Layout.SetBackGradient( color1,color2,color3,p4,p5,p6,p7 )     | This sets 3 Background Colors for the Layout which are splited at a Line between p4 and p5 or between p6 and p7.                                                                                                                                   
-|Layout.GetAbsWidth() | | +| Layout.SetBackGradientRadial( x,y,r,color1,color2,color3,p7 )                                                                                                                                                                                                                                                     
-|Layout.GetChildOrder( child ) | This function returns the rang of an Object of a Layout.| +| Layout.SetBackground( imageFile, options )                     | You can set an Image as the Background of an Layout ( Layout.SetBackground( "Img/test.png");). options is an optional string that can be “repeat”                                                                                                  
-|Layout.GetHeight() | This returns the Height of an Layout.| +| Layout.SetMargins( left,top,right,bottom )                                                                                                                                                                                                                                                                        
-|Layout.GetPosition() | This returns the Position of an Layout.| +| Layout.SetOrientation( orient )                                | "Portrait" or "Landscape"                                                                                                                                                                                                                          
-|Layout.GetType() | This returns the Type of an Layout. For Example: "Absolute", "FillXY", "FillX" and much more.+| Layout.SetPadding( left, top, right, bottom )                                                                                                                                                                                                                                                                     
-|Layout.GetVisibility() | This returns if a Layout is Visible ("true") or if not("false").| +| Layout.SetPosition( left, top, width, height )                                                                                                                                                                                                                                                                    
-|Layout.GetWidth() | This returns the Width of an Layout.| +| Layout.SetScale( x,y )                                                                                                                                                                                                                                                                                            
-|Layout.Release() | | +| Layout.SetSize( width, height )                                                                                                                                                                                                                                                                                   
-|Layout.RemoveChild( child ) | This removes a Child of an Layout, this Child can be added again with Layout.AddChild( child ).| +| Layout.SetTouchable( touchable )                                                                                                                                                                                                                                                                                  
-|Layout.SetBackColor( colorCode ) | This sets the Background Color of an Layout.| +| Layout.SetVisibility( visibility )                             | "Hide", "Show" or "Gone"                                                                                                                                                                                                                           |
-|Layout.SetBackGradient( color1,color2,color3,p4,p5,p6,p7 ) | This sets 3 Background Colors for the Layout which are splited at a Line between p4 and p5 or between p6 and p7.| +
-|Layout.SetBackGradientRadial( x,y,r,color1,color2,color3,p7 ) | | +
-|Layout.SetBackground( imageFile, options ) | You can set an Image as the Background of an Layout ( Layout.SetBackground( "Img/test.png");). options is an optional string that can be “repeat” | +
-|Layout.SetMargins( left,top,right,bottom ) | | +
-|Layout.SetOrientation( orient ) |"Portrait" or "Landscape"+
-|Layout.SetPadding( left, top, right, bottom ) | | +
-|Layout.SetPosition( left, top, width, height ) | | +
-|Layout.SetScale( x,y ) | | +
-|Layout.SetSize( width, height ) | | +
-|Layout.SetTouchable( touchable ) | | +
-|Layout.SetVisibility( visibility ) | "Hide", "Show" or "Gone"|+
 ===== Options ===== ===== Options =====
 You can combine options too. Use the comma to seperate the options:  You can combine options too. Use the comma to seperate the options: 
built_in/layouts.1426015320.txt.gz · Last modified: 2015/03/11 03:22 (external edit)