build/api-examples/TextField.cpp¶
Complete program from the TextField API reference. Save it at the path shown above and use the build command in the reference page.
Source files · Download TextField.cpp
#include "widgets.hpp"
#include <cstdio>
#include <cstring>
int main()
{
gaspardos::gui::Widgets widgets(320, 200);
gaspardos::gui::TextField item(1, 10, 10, 150, 26, "hello");
return widgets.add(item) == 0 ? 0 : 1;
}