mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
expressions: Add closure expressions
This commit is contained in:
parent
762a29b705
commit
cc1d2ab78f
6 changed files with 69 additions and 0 deletions
11
tests/samples/expr_closure.blp
Normal file
11
tests/samples/expr_closure.blp
Normal file
|
@ -0,0 +1,11 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
Box box {
|
||||
}
|
||||
}
|
||||
|
||||
Stack {
|
||||
visible-child: bind ((Gtk.Button)my_closure(box.parent)).parent;
|
||||
visible: bind (bool) my_other_closure(box);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue