std1.0.0-beta-7 SafeC docs

std :: gui::gui_backend

Struct std::GuiWindowState

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

struct GuiWindowState {
    unsigned int id;
    unsigned long long key;
    ?&Erased native;
    ?&Erased presenterData;
    ?&struct GuiPresenter presenter;
    struct Vec<struct GuiEvent> queue;
    unsigned long qhead;
    struct String title;
    int x;
    int y;
    int logicalW;
    int logicalH;
    int pixelW;
    int pixelH;
    double scale;
    int hiDpi;
    int minW;
    int minH;
    int maxW;
    int maxH;
    int visible;
    int focused;
    int hovered;
    int cursor;
    int resizable;
    int decorated;
    int topmost;
    double lastDownMs;
    double lastDownX;
    double lastDownY;
    int lastDownButton;
    int clickCount;
}

The backend-neutral state behind GuiWindow.platform. Backends read and update the fields their contract above names; the rest is the portable layer's.

Fields

§unsigned int idsource

== GuiWindow.id

§unsigned long long keysource

backend: native window identifier (see window_create)

backend-private per-window data (see std/erased.h)

§?&Erased presenterDatasource

presenter-private per-window data

§?&struct GuiPresenter presentersource

the attached presenter (gui_window_set_presenter); null = the backend's own window_present

§struct Vec<struct GuiEvent> queuesource

pending events, FIFO from 'qhead'

§unsigned long qheadsource
§struct String titlesource

logical position, GUI_POS_DEFAULT if unknown

§int logicalWsource
§int logicalHsource

logical client size

§int pixelWsource
§int pixelHsource

buffer size the window currently wants

§double scalesource
§int hiDpisource
§int minWsource
§int minHsource
§int maxWsource
§int maxHsource
§int visiblesource
§int focusedsource
§int hoveredsource
§int cursorsource
§int resizablesource
§int decoratedsource
§int topmostsource
§double lastDownMssource

double-click detection (gui_backend_post)

§double lastDownXsource

double-click detection (gui_backend_post)

§double lastDownYsource

double-click detection (gui_backend_post)

§int lastDownButtonsource

double-click detection (gui_backend_post)

§int clickCountsource

double-click detection (gui_backend_post)