rayquiro.app
rayquiro.app is the low-level native Windows UI layer in RayQuiro.
Use it when you want:
- a tiny utility window
- manually positioned controls
- direct control over button and text placement
- a lighter alternative to
rayquiro.ui
Import
import rayquiro.app as app;
API Reference
app.init(title, width, height)
Creates the native window.
Defaults:
- title:
"RayQuiro" - width:
900 - height:
600
app.button(text, x, y, width, height)
Adds a native button.
app.text(text, x, y, width, height)
Adds a text label region.
app.msg(title, text)
Shows a native message box.
app.run()
Starts the window message loop.
This call blocks until the window closes. That is normal GUI behavior, not a compiler hang.
Minimal Example
import rayquiro.app as app;
app.init("RayQuiro App Demo", 640, 360);
app.button("Click", 40, 40, 120, 32);
app.text("Native app UI", 40, 90, 220, 24);
app.run();
Message Box Example
import rayquiro.app as app;
app.msg("RayQuiro", "Hello from rayquiro.app");
Typical Flow
The normal order is:
app.init(...)- add controls
app.run()
If you forget app.run(), the script finishes immediately and the window closes right away.
When To Use rayquiro.app
Use app when you want:
- absolute positioning
- very small native tools
- direct Win32-style behavior
Use rayquiro.ui when you want:
- a styled card layout
- guided installer flows
- themed action buttons
- easier branding