Name

roundrectbutton

Synopsis

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

Description

A class for making nice-looking, styleable buttons with gradients, without any art assets. See test/test-roundrectbutton.lzx for several examples of how to use this component. The component attributes are only used for initialization. They are not live constraints. Currently the best way to change them at runtime is to apply a <style>.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » roundrectbutton

Known Subclasses

Details

Properties (6)

downStartColor
<attribute name="downStartColor" type="color" value="0xFFFFFF" />
public var downStartColor : color;
downStopColor
<attribute name="downStopColor" type="color" value="0xCCCCCC" />
public var downStopColor : color;
overStartColor
<attribute name="overStartColor" type="color" value="0x999999" />
public var overStartColor : color;
overStopColor
<attribute name="overStopColor" type="color" value="0x777777" />
public var overStopColor : color;
upStartColor
<attribute name="upStartColor" type="color" value="0xcccccc" />
public var upStartColor : color;
upStopColor
<attribute name="upStopColor" type="color" value="0x999999" />
public var upStopColor : color;

LZX Synopsis

<class name="roundrectbutton" extends=" basecomponent ">
  <attribute name=" downStartColor " type="color" value="0xFFFFFF" />
  <attribute name=" downStopColor " type="color" value="0xCCCCCC" />
  <attribute name=" overStartColor " type="color" value="0x999999" />
  <attribute name=" overStopColor " type="color" value="0x777777" />
  <attribute name=" upStartColor " type="color" value="0xcccccc" />
  <attribute name=" upStopColor " type="color" value="0x999999" />
</class>

JavaScript Synopsis

public roundrectbutton extends  basecomponent  {
  public var downStartColor  : color;
  public var downStopColor  : color;
  public var overStartColor  : color;
  public var overStopColor  : color;
  public var upStartColor  : color;
  public var upStopColor  : color;
}