@@ -80,7 +80,7 @@ Example:
8080Tags: Canvas
8181*/
8282
83- syntax RectangleMake is prefix operator with precedence 4
83+ syntax RectangleMake is prefix operator with precedence 2
8484 "rectangle" <mRect: Expression>
8585begin
8686 MCCanvasRectangleMakeWithList(mRect, output)
@@ -105,14 +105,14 @@ Example:
105105Tags: Canvas
106106*/
107107
108- syntax RectanglePropertyLeft is prefix operator with precedence 4
108+ syntax RectanglePropertyLeft is prefix operator with precedence 2
109109 "the" "left" "of" <mRect:Expression>
110110begin
111111 MCCanvasRectangleGetLeft(mRect, output)
112112 MCCanvasRectangleSetLeft(input, mRect)
113113end syntax
114114
115- syntax RectanglePropertyX is prefix operator with precedence 4
115+ syntax RectanglePropertyX is prefix operator with precedence 2
116116 "the" "x" "of" <mRect:Expression>
117117begin
118118 MCCanvasRectangleGetLeft(mRect, output)
@@ -138,14 +138,14 @@ Example:
138138Tags: Canvas
139139*/
140140
141- syntax RectanglePropertyTop is prefix operator with precedence 4
141+ syntax RectanglePropertyTop is prefix operator with precedence 2
142142 "the" "top" "of" <mRect:Expression>
143143begin
144144 MCCanvasRectangleGetTop(mRect, output)
145145 MCCanvasRectangleSetTop(input, mRect)
146146end syntax
147147
148- syntax RectanglePropertyY is prefix operator with precedence 4
148+ syntax RectanglePropertyY is prefix operator with precedence 2
149149 "the" "y" "of" <mRect:Expression>
150150begin
151151 MCCanvasRectangleGetTop(mRect, output)
@@ -171,7 +171,7 @@ Example:
171171Tags: Canvas
172172*/
173173
174- syntax RectanglePropertyRight is prefix operator with precedence 4
174+ syntax RectanglePropertyRight is prefix operator with precedence 2
175175 "the" "right" "of" <mRect:Expression>
176176begin
177177 MCCanvasRectangleGetRight(mRect, output)
@@ -197,7 +197,7 @@ Example:
197197Tags: Canvas
198198*/
199199
200- syntax RectanglePropertyBottom is prefix operator with precedence 4
200+ syntax RectanglePropertyBottom is prefix operator with precedence 2
201201 "the" "bottom" "of" <mRect:Expression>
202202begin
203203 MCCanvasRectangleGetBottom(mRect, output)
@@ -223,7 +223,7 @@ Example:
223223Tags: Canvas
224224*/
225225
226- syntax RectanglePropertyWidth is prefix operator with precedence 4
226+ syntax RectanglePropertyWidth is prefix operator with precedence 2
227227 "the" "width" "of" <mRect:Expression>
228228begin
229229 MCCanvasRectangleGetWidth(mRect, output)
@@ -249,7 +249,7 @@ Example:
249249Tags: Canvas
250250*/
251251
252- syntax RectanglePropertyHeight is prefix operator with precedence 4
252+ syntax RectanglePropertyHeight is prefix operator with precedence 2
253253 "the" "height" "of" <mRect:Expression>
254254begin
255255 MCCanvasRectangleGetHeight(mRect, output)
@@ -282,7 +282,7 @@ Example:
282282Tags: Canvas
283283*/
284284
285- syntax PointMake is prefix operator with precedence 4
285+ syntax PointMake is prefix operator with precedence 2
286286 "point" <mPoint: Expression>
287287begin
288288 MCCanvasPointMakeWithList(mPoint, output)
@@ -304,7 +304,7 @@ Example:
304304Tags: Canvas
305305*/
306306
307- syntax PointPropertyX is prefix operator with precedence 4
307+ syntax PointPropertyX is prefix operator with precedence 2
308308 "the" "x" "of" <mPoint: Expression>
309309begin
310310 MCCanvasPointGetX(mPoint, output)
@@ -327,7 +327,7 @@ Example:
327327Tags: Canvas
328328*/
329329
330- syntax PointPropertyY is prefix operator with precedence 4
330+ syntax PointPropertyY is prefix operator with precedence 2
331331 "the" "y" "of" <mPoint: Expression>
332332begin
333333 MCCanvasPointGetY(mPoint, output)
@@ -1451,13 +1451,13 @@ public foreign handler MCCanvasImageGetHeight(in pImage as Image, out rHeight as
14511451public foreign handler MCCanvasImageGetPixels(in pImage as Image, out rPixels as data) as undefined binds to "<builtin>"
14521452// TODO - add image frame index property?
14531453
1454- syntax ImageWidthProperty is prefix operator with precedence 4
1454+ syntax ImageWidthProperty is prefix operator with precedence 2
14551455 "the" "width" "of" <mImage: Expression>
14561456begin
14571457 MCCanvasImageGetWidth(mImage, output)
14581458end syntax
14591459
1460- syntax ImageHeightProperty is prefix operator with precedence 4
1460+ syntax ImageHeightProperty is prefix operator with precedence 2
14611461 "the" "height" "of" <mImage: Expression>
14621462begin
14631463 MCCanvasImageGetHeight(mImage, output)
@@ -1864,12 +1864,12 @@ end syntax
18641864
18651865// Operations
18661866
1867- public foreign handler MCCanvasFontMeasureText(in pText as string, in pFont as Font) as Rectangle binds to "<builtin>"
1867+ public foreign handler MCCanvasFontMeasureText(in pText as string, in pFont as Font, out pRect as Rectangle) as undefined binds to "<builtin>"
18681868
1869- syntax FontOperationMeasureText is statement
1870- "measure " <mText: Expression> "with" <mFont: Expression>
1869+ syntax FontOperationMeasureText is prefix operator with precedence 4
1870+ "the" "bounds" "of" "text " <mText: Expression> "with" <mFont: Expression>
18711871begin
1872- MCCanvasFontMeasureText(mText, mFont)
1872+ MCCanvasFontMeasureText(mText, mFont, output )
18731873end syntax
18741874
18751875////////////////////////////////////////////////////////////////////////////////
0 commit comments