Skip to content

build/api-examples/PaintQueue.cpp

Complete program from the PaintQueue API reference. Save it at the path shown above and use the build command in the reference page.

Source files · Download PaintQueue.cpp

#include "desktop_gui.hpp"
#include <cstdio>
#include <cstring>

int main()
{
    gaspardos::desktop::PaintQueue queue;
    queue.fill(0, 0, 100, 30, 0xFFFFFF);
    queue.text(4, 4, "hello");
    return queue.finished() ? 1 : 0;
}