Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


ShapeBase

Abstract base class for drawing vector shape paths.
This is used by CanvasElements when drawing their background shape
and can be assigned to CanvasElement's "BackgroundShape" style.
When sub-classing, add any necessary styles and implement the drawShape() function.

Inheritance:     ShapeBase ➞ StyleableBaseStyleDefinitionEventDispatcher ➞ Object

Events
Show Inherited


Public Functions
Show Inherited
Function Defined By
ShapeBase() [Constructor] ShapeBase
Creates new ShapeBase instance.
 
drawShape(ctx, metrics) ShapeBase
Used to draw a sub-path shape path to the supplied Canvas2DContext using the supplied metrics.
Override this to draw custom shapes. Do *not* call beginPath() as that will destroy previous
sub-paths and *do not* do any filling or other context calls. Only draw and closePath() the sub-path.
  ctx     :    Canvas2DContext
The Canvas2DContext to draw the sub-path on.
  metrics     :    DrawMetrics
DrawMetrics object to use as the bounding box for the sub-path.
 


Internal Functions
Show Inherited