Window management: Difference between revisions
m
→{{header|Wren}}: Minor tidy
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 1,743:
An embedded application so we can use the Gtk3 toolkit.
The following just manipulates a window created by the application itself and works fine on Ubuntu
<syntaxhighlight lang="
var GTK_WINDOW_TOPLEVEL = 0
Line 1,863:
<br>
We now embed the above script in the following C program, build and run.
<syntaxhighlight lang="c">/* gcc `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQIRED=GDK_VERSION_3_2
#include <stdlib.h>
Line 2,095:
vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
|