<roundrect>

JavaScript: lz.roundrect
extends <drawview> » <view> » <node> » lz.Eventable »

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
backgroundGradientOrientation string String vertical read/write
  The background gradient orientation. One of 'vertical' (the default) and 'horizontal'.
backgroundStartColor color Color null read/write
  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 expression any 1 read/write
  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 color Color null read/write
  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 expression any 1 read/write
  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 color Color black read/write
  The border color
borderOpacity expression any 1 read/write
  The border opacity
borderRadius expression any 5 read/write
  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 expression any 1 read/write
  The width of the border. If this is zero, no frame is drawn.
boxShadowColor color Color null read/write
  The box shadow color. If this is specified, a box shadow is drawn.
boxShadowOpacity expression any 0.5 read/write
  The box shadow opacity.
boxShadowX expression any 5 read/write
  The x offset of the box shadow. The box shadow is not drawn by default. Specify a boxShadowColor in order to draw it.
boxShadowY expression any 5 read/write
  The x offset of the box shadow. The box shadow is not drawn by default. Specify a boxShadowColor in order to draw it.
inset size Size 5 read/write
  The margin between the outside view and the content view
insetbottom size Size null read/write
   
insetleft size Size null read/write
   
insetright size Size null read/write
   
insettop size Size null read/write
   
oninset expression any null read/write
   
oninsetbottom expression any null read/write
   
oninsetleft expression any null read/write
   
oninsetright expression any null read/write
   
oninsettop expression any null read/write
   

Methods

drawStructure()
roundrect.drawStructure();

setInset()
roundrect.setInset(v);
Parameter Name Type Description
v    

setInsetBottom()
roundrect.setInsetBottom(v);
Parameter Name Type Description
v    

setInsetLeft()
roundrect.setInsetLeft(v);
Parameter Name Type Description
v    

setInsetRight()
roundrect.setInsetRight(v);
Parameter Name Type Description
v    

setInsetTop()
roundrect.setInsetTop(v);
Parameter Name Type Description
v    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy