-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed duplication of basically all UI elements.
Introduced static_test capabilities and some code for runtime_test. Fixed several bugs
- Loading branch information
checkroom
committed
Nov 23, 2024
1 parent
3960824
commit 1029764
Showing
17 changed files
with
128 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<app xmlns:fl="vs.fltk"> | ||
<fl:window box="0,0,320,240" label="Demo Counter"> | ||
<mixin name="+fl:button" bg.colour="#aa3300" label.colour="#99ee4f" /> | ||
<script lang="c"> | ||
<![CDATA[ | ||
unsigned int counter = 0; | ||
void _update(){ | ||
static char str_buf[32]; | ||
itoa(counter,str_buf,10); | ||
$$prop($("main-text"),"label",str_buf); | ||
} | ||
void on_add(){ | ||
counter++; | ||
_update(); | ||
} | ||
void on_dec(){ | ||
counter--; | ||
_update(); | ||
} | ||
int static_test(){ | ||
$$debug("test.n1","value-4"); | ||
return 0; | ||
} | ||
$cb(on_add); | ||
$cb(on_dec); | ||
]]> | ||
</script> | ||
|
||
<fl:label name="main-text" label="0" label.size="90" box="20,20,280,120" /> | ||
<fl:button label="Add" on.callback="on_add" box="20,160,80,50" /> | ||
<fl:button label="Remove" on.callback="on_dec" box="120,160,80,50" /> | ||
<fl:label name=">" label="Console" box="220,160,80,50"> | ||
<script lang="c"> | ||
<![CDATA[ | ||
void callback(){ | ||
$log(LOG_LOG,"Hello world2!"); | ||
} | ||
int static_test(){ | ||
$$debug("test.n2","value-2"); | ||
return 0; | ||
} | ||
]]> | ||
</script> | ||
</fl:label> | ||
<fl:button name="w"><script lang="c"></script></fl:button> | ||
</fl:window> | ||
</app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#pragma once | ||
//Part of the testing pipeline. These xml files are read and its operation run on the ui tree. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters