Name

roundrect

Synopsis

LZX: roundrect
JavaScript: roundrect
Type: Class
Access: public
Topic: Incubator.Components
Declared in: lps/components/incubator/roundrect.lzx

Superclass Chain

roundrect

Known Subclasses

Details

Properties (23)

backgroundGradientOrientation
<attribute name="backgroundGradientOrientation" type="string" value="vertical" />
public var backgroundGradientOrientation : String;
The background gradient orientation. One of 'vertical' (the default) and 'horizontal'.
backgroundStartColor
<attribute name="backgroundStartColor" type="color" value="$once{null}" />
public var backgroundStartColor : color;
The background start color. This is the color that is drawn at the top or left of the view, depending on the value of backgroundGradientOrientation. If this and the backround stop color are specified, a gradient background is drawn in the direction specified by backgroundGradientOrientation. If only one of the background start and stop color are specified, a gradient of the same color that fades to transparent at the unspecified end is drawn. If a box shadow is drawn, the background defaults to white. Specify a start and stop opacity to suppress this behavior.
backgroundStartOpacity
<attribute name="backgroundStartOpacity" value="1" />
public var backgroundStartOpacity;
The background start opacity. This defaults to one (opaque) unless the start color is not specified and the stop color is, in which case it defaults to zero (fully transparent).
backgroundStopColor
<attribute name="backgroundStopColor" type="color" value="$once{null}" />
public var backgroundStopColor : color;
The background stop color. This is the color that is drawn at the bottom or right of the view, depending on the value of backgroundGradientOrientation. See the documentation for backgroundStartColor for additional documentation.
backgroundStopOpacity
<attribute name="backgroundStopOpacity" value="1" />
public var backgroundStopOpacity;
The background stop opacity. This defaults to one (opaque) unless the stop color is not specified and the start color is, in which case it defaults to zero (fully transparent).
borderColor
<attribute name="borderColor" type="color" value="black" />
public var borderColor : color;
The border color
borderOpacity
<attribute name="borderOpacity" value="1" />
public var borderOpacity;
The border opacity
borderRadius
<attribute name="borderRadius" value="5" />
public var borderRadius;
The rounding radius of the border corners. Because the default join type is a round join, even a radius of zero will product some rounding.
borderWidth
<attribute name="borderWidth" value="1" />
public var borderWidth;
The width of the border. If this is zero, no frame is drawn.
boxShadowColor
<attribute name="boxShadowColor" type="color" value="$once{null}" />
public var boxShadowColor : color;
The box shadow color. If this is specified, a box shadow is drawn.
boxShadowOpacity
<attribute name="boxShadowOpacity" value="0.5" />
public var boxShadowOpacity;
The box shadow opacity.
boxShadowX
<attribute name="boxShadowX" value="5" />
public var boxShadowX;
The x offset of the box shadow. The box shadow is not drawn by default. Specify a boxShadowColor in order to draw it.
boxShadowY
<attribute name="boxShadowY" value="5" />
public var boxShadowY;
The x offset of the box shadow. The box shadow is not drawn by default. Specify a boxShadowColor in order to draw it.
inset
<attribute name="inset" type="size" value="5" />
public var inset : size;
The margin between the outside view and the content view
insetbottom
<attribute name="insetbottom" type="size" value="${null}" />
public var insetbottom : size;
insetleft
<attribute name="insetleft" type="size" value="${null}" />
public var insetleft : size;
insetright
<attribute name="insetright" type="size" value="${null}" />
public var insetright : size;
insettop
<attribute name="insettop" type="size" value="${null}" />
public var insettop : size;
oninset
<attribute name="oninset" value="null" />
public var oninset;
oninsetbottom
<attribute name="oninsetbottom" value="null" />
public var oninsetbottom;
oninsetleft
<attribute name="oninsetleft" value="null" />
public var oninsetleft;
oninsetright
<attribute name="oninsetright" value="null" />
public var oninsetright;
oninsettop
<attribute name="oninsettop" value="null" />
public var oninsettop;

Methods (6)

drawStructure()
<method name="drawStructure" />
public function drawStructure();
setInset()
<method name="setInset" args="v" />
public function setInset(v);
setInsetBottom()
<method name="setInsetBottom" args="v" />
public function setInsetBottom(v);
setInsetLeft()
<method name="setInsetLeft" args="v" />
public function setInsetLeft(v);
setInsetRight()
<method name="setInsetRight" args="v" />
public function setInsetRight(v);
setInsetTop()
<method name="setInsetTop" args="v" />
public function setInsetTop(v);

LZX Synopsis

<class name="roundrect">
  <attribute name=" backgroundGradientOrientation " type="string" value="vertical" />
  <attribute name=" backgroundStartColor " type="color" value="$once{null}" />
  <attribute name=" backgroundStartOpacity " value="1" />
  <attribute name=" backgroundStopColor " type="color" value="$once{null}" />
  <attribute name=" backgroundStopOpacity " value="1" />
  <attribute name=" borderColor " type="color" value="black" />
  <attribute name=" borderOpacity " value="1" />
  <attribute name=" borderRadius " value="5" />
  <attribute name=" borderWidth " value="1" />
  <attribute name=" boxShadowColor " type="color" value="$once{null}" />
  <attribute name=" boxShadowOpacity " value="0.5" />
  <attribute name=" boxShadowX " value="5" />
  <attribute name=" boxShadowY " value="5" />
  <attribute name=" inset " type="size" value="5" />
  <attribute name=" insetbottom " type="size" value="${null}" />
  <attribute name=" insetleft " type="size" value="${null}" />
  <attribute name=" insetright " type="size" value="${null}" />
  <attribute name=" insettop " type="size" value="${null}" />
  <attribute name=" oninset " value="null" />
  <attribute name=" oninsetbottom " value="null" />
  <attribute name=" oninsetleft " value="null" />
  <attribute name=" oninsetright " value="null" />
  <attribute name=" oninsettop " value="null" />
  <method name=" drawStructure " />
  <method name=" setInset " args="v" />
  <method name=" setInsetBottom " args="v" />
  <method name=" setInsetLeft " args="v" />
  <method name=" setInsetRight " args="v" />
  <method name=" setInsetTop " args="v" />
</class>

JavaScript Synopsis

public roundrect {
  public var backgroundGradientOrientation  : String;
  public var backgroundStartColor  : color;
  public var backgroundStartOpacity ;
  public var backgroundStopColor  : color;
  public var backgroundStopOpacity ;
  public var borderColor  : color;
  public var borderOpacity ;
  public var borderRadius ;
  public var borderWidth ;
  public var boxShadowColor  : color;
  public var boxShadowOpacity ;
  public var boxShadowX ;
  public var boxShadowY ;
  public var inset  : size;
  public var insetbottom  : size;
  public var insetleft  : size;
  public var insetright  : size;
  public var insettop  : size;
  public var oninset ;
  public var oninsetbottom ;
  public var oninsetleft ;
  public var oninsetright ;
  public var oninsettop ;
  prototype public function drawStructure ();
  prototype public function setInset (v);
  prototype public function setInsetBottom (v);
  prototype public function setInsetLeft (v);
  prototype public function setInsetRight (v);
  prototype public function setInsetTop (v);
}