User Tools

Site Tools


switch

Differences

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

Link to this comparison view

switch [2015/09/18 17:33] (current)
glass created
Line 1: Line 1:
 +====== Switch ======
  
 +The Switch element is acts as a switch button.
 +
 +{| style="​float:​right;​margin:​0 0 30px 20px;"
 +|+ A switch.
 +|-
 +|{{:​oeswitch.jpg?​nolink&​100|Switch screenshot}}
 +|}
 +
 +{| class="​wikitable"​
 +!
 +Characteristic
 +!
 +Definition
 +|-
 +| Type || Interactive Display Object
 +|-
 +| Category || Element
 +|-
 +| Scope || Local
 +|-
 +| Position || *
 +|-
 +| Parents || Container
 +|-
 +| Children || none
 +|-
 +| Gestures || Drag and tap
 +|-
 +| Requirements || none
 +|}
 +
 +{| class="​wikitable"​
 +!
 +Attribute
 +!
 +Type
 +!
 +Description
 +|-
 +|background || object reference || sets the background object
 +|-
 +|backgroundColor || number || sets the color of background
 +|-
 +|backgroundEllipseHeight || number || sets the ellipse height of background
 +|-
 +|backgroundEllipseWidth || number || sets the ellipse width of background
 +|-
 +|backgroundHeight || number || sets the height of background
 +|-
 +|backgroundlineStroke || number || sets the line stroke of background
 +|-
 +|backgroundoutlineColor || number || sets the outline color of background
 +|-
 +|backgroundWidth || number || sets the width of background
 +|-
 +|backgroundX || number || sets the X position of background
 +|-
 +|backgroundY || number || sets the Y position of background
 +|-
 +|button || object reference || sets the button object
 +|-
 +|buttonColor || number || sets the color of button
 +|-
 +|buttonEllipseHeight || number || sets the ellipse height of button
 +|-
 +|buttonHeight || number || sets the height of button
 +|-
 +|buttonlineStroke || number || sets the line stroke of button
 +|-
 +|buttonoutlineColor || number || sets the outline color of button
 +|-
 +|buttonWidth || number || sets the width of button
 +|-
 +|state || true/false || sets the state of button
 +|}
 +
 +See Also: [[Display Attributes]]
 +
 +  <Switch id="​switch"​ x="​800"​ y="​300"​ backgroundColor="​0x404040"​ backgroundWidth="​100"​ backgroundHeight="​40"​ backgroundEllipseWidth="​25"​ backgroundEllipseHeight="​25"​ buttonColor="​0x461B7E"​ buttonWidth="​50"​ buttonHeight="​40"​ buttonEllipseWidth="​25"​ buttonEllipseHeight="​25"/>​
switch.txt · Last modified: 2015/09/18 17:33 by glass