Difference between revisions of "Category:Common Methods"

From Lianjapedia
Jump to: navigation, search
(Created page with 'Category:Methods')
 
Line 1: Line 1:
 +
Each of the Lianja base UI classes have some common methods as well as some that are specific to the UI Class itself. The following table summarizes the common methods.
 +
 +
{| class="wikitable"
 +
!width="25%"|Method
 +
!width="25%"|Arguments
 +
!width="50%"|Description
 +
|-
 +
|AddProperty||name as Character, value as Expr||Adds a property to the object
 +
|-
 +
|AdjustSize||None||Changes the size of the object to fit its contents
 +
|-
 +
|Animate||x as Numeric, y as Numeric, width as Numeric, height as Numeric, x2 as Numeric, y2 as Numeric, width2 as Numeric, height2 as Numeric, duration as Numeric||Slides the object from position x,y with a size of width,height to the position x2,y2 with a size of width2,height2. Duration is the time taken in milliseconds
 +
|-
 +
|AutoFit||None||Changes the size of the object to fit its contents
 +
|-
 +
|BindEvent||sourceobject as Object, eventname as Character, handlerobject as Object, procname as Character, flags as Numeric||Defines a delegate procedure of a handler object to handle an event for an object
 +
|-
 +
|BindEvents||sourceobject as Object, eventname as Character, handlerobject as Object, procname as Character, flags as Numeric||Defines a delegate procedure of a handler object to handle an event for an object
 +
|-
 +
|Drag||action as Numeric||0=Cancel, 1=Begin, 2=End
 +
|-
 +
|FadeIn||duration as Numeric||Fades the object out (completely transparent). Duration is the time taken in milliseconds
 +
|-
 +
|FadeOut||duration as Numeric||Fades the object in (completely opaque). Duration is the time taken in milliseconds
 +
|-
 +
|Hide||None||Makes the object invisible
 +
|-
 +
|Move||x as Numeric, y as Numeric, width as Numeric, height as Numeric||Changes the position or size of the object
 +
|-
 +
|Refresh||None||Forces a repaint of the object
 +
|-
 +
|RemoveProperty||name as Character||Removes a property from the object
 +
|-
 +
|Resize||width as Numeric, height as Numeric||Changes the size of the object
 +
|-
 +
|SetFocus||None||Gives focus to the object
 +
|-
 +
|Show||None||Makes the object visible
 +
|-
 +
|SlideDown||duration as Numeric||Slides the object in from top to bottom. Duration is the time taken in milliseconds
 +
|-
 +
|SlideLeft||duration as Numeric||Slides the object left from the width of the object returning to its original position.  Duration is the time taken in milliseconds
 +
|-
 +
|SlideRight||duration as Numeric||Slides the object right to the width of the object.  Duration is the time taken in milliseconds
 +
|-
 +
|SlideUp||duration as Numeric||Slides the object out from bottom to top.  Duration is the time taken in milliseconds
 +
|-
 +
|UnbindEvent||sourceobject as Object, eventname as Character, handlerobject as Object, procname as Character, flags as Numeric||Resets event binding for the specified event
 +
|-
 +
|UnbindEvents||sourceobject as Object, eventname as Character, handlerobject as Object, procname as Character, flags as Numeric||Resets event binding for the specified event
 +
|-
 +
|ZoomIn||duration as Numeric||Slides the object from bottom right to top left returning to its original position.  Duration is the time taken in milliseconds
 +
|-
 +
|ZoomOut||duration as Numeric||Slides the object out to bottom right.  Duration is the time taken in milliseconds
 +
|-
 +
|}
 +
 +
 
[[Category:Methods]]
 
[[Category:Methods]]

Revision as of 12:29, 20 December 2012

Each of the Lianja base UI classes have some common methods as well as some that are specific to the UI Class itself. The following table summarizes the common methods.

Method Arguments Description
AddProperty name as Character, value as Expr Adds a property to the object
AdjustSize None Changes the size of the object to fit its contents
Animate x as Numeric, y as Numeric, width as Numeric, height as Numeric, x2 as Numeric, y2 as Numeric, width2 as Numeric, height2 as Numeric, duration as Numeric Slides the object from position x,y with a size of width,height to the position x2,y2 with a size of width2,height2. Duration is the time taken in milliseconds
AutoFit None Changes the size of the object to fit its contents
BindEvent sourceobject as Object, eventname as Character, handlerobject as Object, procname as Character, flags as Numeric Defines a delegate procedure of a handler object to handle an event for an object
BindEvents sourceobject as Object, eventname as Character, handlerobject as Object, procname as Character, flags as Numeric Defines a delegate procedure of a handler object to handle an event for an object
Drag action as Numeric 0=Cancel, 1=Begin, 2=End
FadeIn duration as Numeric Fades the object out (completely transparent). Duration is the time taken in milliseconds
FadeOut duration as Numeric Fades the object in (completely opaque). Duration is the time taken in milliseconds
Hide None Makes the object invisible
Move x as Numeric, y as Numeric, width as Numeric, height as Numeric Changes the position or size of the object
Refresh None Forces a repaint of the object
RemoveProperty name as Character Removes a property from the object
Resize width as Numeric, height as Numeric Changes the size of the object
SetFocus None Gives focus to the object
Show None Makes the object visible
SlideDown duration as Numeric Slides the object in from top to bottom. Duration is the time taken in milliseconds
SlideLeft duration as Numeric Slides the object left from the width of the object returning to its original position. Duration is the time taken in milliseconds
SlideRight duration as Numeric Slides the object right to the width of the object. Duration is the time taken in milliseconds
SlideUp duration as Numeric Slides the object out from bottom to top. Duration is the time taken in milliseconds
UnbindEvent sourceobject as Object, eventname as Character, handlerobject as Object, procname as Character, flags as Numeric Resets event binding for the specified event
UnbindEvents sourceobject as Object, eventname as Character, handlerobject as Object, procname as Character, flags as Numeric Resets event binding for the specified event
ZoomIn duration as Numeric Slides the object from bottom right to top left returning to its original position. Duration is the time taken in milliseconds
ZoomOut duration as Numeric Slides the object out to bottom right. Duration is the time taken in milliseconds