Skip to content

Commit

Permalink
add documentation about the graphics path script object
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Jul 14, 2024
1 parent 9ea5a6e commit 0b2652d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion vstgui/uidescription-scripting/uiscripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,19 @@ The `Color` object is either a CSS color name, a colorname as described in the u

### The path object

TODO:
The path object can be created via the drawcontext object methods `createGraphicsPath` and `createRoundGraphicsPath`.

|name |arguments |return|
|----------------|------------------------------------------------------------------|------|
|addEllipse |rect:`Rect` |`void`|
|addArc |rect:`Rect`,startAngle:`double`,endAngle:`double`,clockwise:`bool`|`void`|
|addBezierCurve |control1:`Point`,control2:`Point`,end:`Point` |`void`|
|addLine |to:`Point` |`void`|
|addPath |path:`Path`,transformMatrix?:`TransformMatrix` |`void`|
|addRect |rect:`Rect` |`void`|
|addRoundRect |rect:`Rect`,radius:`double` |`void`|
|closeSubpath | |`void`|
|beginSubpath |start:`Point` |`void`|

### The TransformMatrix object

Expand Down

0 comments on commit 0b2652d

Please sign in to comment.