#include <stdio.h>
#include "graphapp.h"
Window *w;
void bigger(Control *b)
{
size_window(w, rect(100,100,400,300));
}
void smaller(Control *b)
{
size_window(w, rect(100,100,200,150));
}
int main(int argc, char *argv[])
{
App *app;
app = new_app(argc, argv);
w = new_window(app, rect(100,100,300,250),
"Special Window", TITLEBAR + CLOSEBOX + MINIMIZE);
new_button(w, rect(10,10,80,30), "Bigger", bigger);
new_button(w, rect(10,50,80,30), "Smaller", smaller);
show_window(w);
main_loop(app);
return 0;
}
Notes: