The canvas test's position helpers are generic again
The compiler now casts from a type parameter through object, so the helpers no longer need their parameter declared as a Control. 🤖 Generated with [ECA](https://eca.dev) (anthropic/claude-opus-4-8) Co-Authored-By: eca-agent <git@eca.dev>
This commit is contained in:
parent
66e861351b
commit
5379269f43
1 changed files with 2 additions and 2 deletions
|
|
@ -129,8 +129,8 @@
|
|||
(defun (click path)
|
||||
(raise-event (cast Interactive (ctl path)) (RoutedEventArgs. (cast RoutedEvent click-event))))
|
||||
(defun (both) (.pair (app-model app)))
|
||||
(defun (left-of (: c Control)) (left-of* (cast AvaloniaObject c)))
|
||||
(defun (top-of (: c Control)) (top-of* (cast AvaloniaObject c)))
|
||||
(defun (left-of c) (left-of* (cast AvaloniaObject c)))
|
||||
(defun (top-of c) (top-of* (cast AvaloniaObject c)))
|
||||
|
||||
;; --- view-map ---------------------------------------------------------------------
|
||||
(click '(0 1 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue