std1.0.0-beta-7 SafeC docs

std :: gui::gui_app

Struct std::GuiAppWindow

#include <std/gui/gui_app.h> source

struct GuiAppWindow {
    &GuiWindow win;
    ?&GuiUi ui;
    ?fn int(&struct GuiApp, &GuiWindow, &GuiEvent, ?&Erased) onEvent;
    ?&Erased onEventData;
    ?fn void(&struct GuiApp, &GuiWindow, &GuiCanvas, ?&Erased) onDraw;
    ?&Erased onDrawData;
    ?fn int(&struct GuiApp, &GuiWindow, double, ?&Erased) onFrame;
    ?&Erased onFrameData;
    struct GuiCanvas canvas;
    int canvasReady;
    int dirty;
    int closing;
}

One window and what the app does with it (internal; see the methods).

Fields

§?fn int(&struct GuiApp, &GuiWindow, &GuiEvent, ?&Erased) onEventsource

The callbacks with their contexts, erased (see std/erased.h).

§?&Erased onEventDatasource

The callbacks with their contexts, erased (see std/erased.h).

§?fn void(&struct GuiApp, &GuiWindow, &GuiCanvas, ?&Erased) onDrawsource
§?&Erased onDrawDatasource
§?fn int(&struct GuiApp, &GuiWindow, double, ?&Erased) onFramesource
§?&Erased onFrameDatasource
§struct GuiCanvas canvassource
§int canvasReadysource
§int dirtysource
§int closingsource