goome docs

Hit rects

In overlay mode only the rects you pass to goome_end take clicks. Everywhere else clicks go to the app under it.

goome_rect hits[2] = {
    {40, 40, 200, 80},
    {280, 60, 160, 40},
};
goome_end(g, c, hits, 2);

a box that takes clicks next to a label that doesnt

Only the box with the green frame is a hit rect, clicks go through the label. Good for HUD text.

Rules

With the UI kit

goome_ui_end sends every window, popup and tooltip as a hit, gaps stay click-through. goome_ui_hit(u, x, y, w, h) adds your own for stuff you drew straight on the canvas.

In window mode 0.2

The whole window takes input. goome_hit still works.