-
Notifications
You must be signed in to change notification settings - Fork 8
Circle Widget
Marcus Mascord edited this page Jul 11, 2014
·
6 revisions
The Circle widget is almost the same as a Fragment widget, except that it draws a circle instead of a rectangle.
The attributes for the Circle widget are:
Attribute | Type | Description |
---|---|---|
m | Widget | The main Widget Class. |
s | WidgetStyle | The style of the widget. |
radius | String | Sets the radius of the circle, this can be a percentage or pixels. A pixel would be "100" a percentage would be "50%". |
clickAction | Function | This is a function that is called when a user taps on the fragment. The function signature is function(Fragment Widget, x position of user tap, y position of user tap)
|
selectWidget | Widget | If this widget is not null, it allows the circle to be selected instead on selecting the whole circle. When this is selected, this widget is not returned but the fragment. |