Rectangle
-
class
Markup.Shapes.Rectangle() Represents a rectangle defined by a position and a size.
Constructors
Methods
-
Markup.Shapes.Rectangle.getBorderRadius() inherited
getBorderRadius(): numberGets the border radius for this shape
Returns: number
the border radius
-
Markup.Shapes.Rectangle.getFillColor() inherited
getFillColor():ColorGets the fill color for this shape
Returns:
Colorthe fill color
-
Markup.Shapes.Rectangle.getFillOpacity() inherited
getFillOpacity(): numberGets the fill opacity for this shape
Returns: number
the fill opacity
-
Markup.Shapes.Rectangle.getPosition() - getPosition():
Point2Gets rectangle position
Returns:
Point2the rectangle position
-
Markup.Shapes.Rectangle.getSize() - getSize():
Point2Gets rectangle size
Returns:
Point2the rectangle size
-
Markup.Shapes.Rectangle.getStrokeColor() inherited
getStrokeColor():ColorGets the stroke color for this shape
Returns:
Colorthe stroke color
-
Markup.Shapes.Rectangle.getStrokeWidth() inherited
getStrokeWidth(): numberGets the stroke width for this shape in pixels
Returns: number
the stroke width in pixels
-
Markup.Shapes.Rectangle.setBorderRadius() inherited
setBorderRadius(borderRadius: number): voidSets the border radius for this shape
Parameters
borderRadius: number
the border radius in pixelsReturns: void
-
Markup.Shapes.Rectangle.setFillColor() inherited
setFillColor(color:Color): voidSets the fill color for this shape
Parameters
color:
Colorthe fill colorReturns: void
-
Markup.Shapes.Rectangle.setFillOpacity() inherited
setFillOpacity(fillOpacity: number): voidSets the fill opacity for this shape
Parameters
fillOpacity: number
the fill opacityReturns: void
-
Markup.Shapes.Rectangle.setPosition() - setPosition(position:
Point2): voidSets the rectanlge position
Parameters
position:
Point2the top left corner of the rectangleReturns: void
-
Markup.Shapes.Rectangle.setSize() - setSize(size:
Point2): voidSets the rectanlge size
Parameters
size:
Point2indicating the rectangle width and heightReturns: void
-
Markup.Shapes.Rectangle.setStrokeColor() inherited
setStrokeColor(color:Color): voidSets the stroke color for this shape
Parameters
color:
Colorthe stroke colorReturns: void
-
Markup.Shapes.Rectangle.setStrokeWidth() inherited
setStrokeWidth(strokeWidth: number): voidSets the stroke width for this shape in pixels
Parameters
strokeWidth: number
the stroke width in pixelsReturns: void