Merge branch 'main' into button

This commit is contained in:
jacekpoz 2024-08-13 01:18:39 +02:00
commit 913286e9e7
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
2 changed files with 8 additions and 7 deletions

View file

@ -36,6 +36,7 @@ in stdenv.mkDerivation {
runHook preInstall
install -Dm755 target/lib${pname}.so -t $out/lib
install -Dm755 include/* -t $out/include
runHook postInstall
'';

View file

@ -8,14 +8,14 @@ int main(void) {
return EXIT_FAILURE;
}
PtkColor red = { .r = 1.0f, .g = 0.0f, .b = 0.0f};
PtkColor red = { .r = 1.0f, .g = 0.0f, .b = 0.0f };
return ptk_run(PTK_BOX(
ptk_rect((PtkPos){ .x = 250.0f, .y = 200.0f}, (PtkSize){ .w = 300.0f, .h = 200.0f}, red),
ptk_rect((PtkPos){ .x = 250.0f, .y = 400.0f}, (PtkSize){ .w = 100.0f, .h = 100.0f}, red),
ptk_rect((PtkPos){ .x = 450.0f, .y = 400.0f}, (PtkSize){ .w = 100.0f, .h = 100.0f}, red),
ptk_circle((PtkPos){ .x = 400.0f, .y = 200.0f}, 150.0f, red),
ptk_rect((PtkPos){ .x = 200.0f, .y = 200.0f}, (PtkSize){ .w = 50.0f, .h = 125.0f}, red),
ptk_ellipse((PtkPos){ .x = 500.0f, .y = 200.0f}, (PtkSize){ .w = 100.0f, .h = 50.0f}, (PtkColor){ .r = 1.0f, .g = 1.0f, .b = 1.0f}),
ptk_rect((PtkPos){ .x = 250.0f, .y = 200.0f }, (PtkSize){ .w = 300.0f, .h = 200.0f }, red),
ptk_rect((PtkPos){ .x = 250.0f, .y = 400.0f }, (PtkSize){ .w = 100.0f, .h = 100.0f }, red),
ptk_rect((PtkPos){ .x = 450.0f, .y = 400.0f }, (PtkSize){ .w = 100.0f, .h = 100.0f }, red),
ptk_circle((PtkPos){ .x = 400.0f, .y = 200.0f }, 150.0f, red),
ptk_rect((PtkPos){ .x = 200.0f, .y = 200.0f }, (PtkSize){ .w = 50.0f, .h = 125.0f }, red),
ptk_ellipse((PtkPos){ .x = 500.0f, .y = 200.0f }, (PtkSize){ .w = 100.0f, .h = 50.0f }, (PtkColor){ .r = 1.0f, .g = 1.0f, .b = 1.0f }),
));
}