#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
#include <stdio.h>

void pressed(Fl_Widget *widget, void *v){
	printf("Pressed\n");
}

int main(int argc, char **argv) {
	Fl_Window *window = new Fl_Window(300,180);
	Fl_Button *pressMe = new Fl_Button(20,40,260,100,"Press Me!");
	pressMe->when(FL_WHEN_RELEASE); // Actually this is the default. I don't need to set it.
	pressMe->callback(pressed,'\0');
	window->end();
	window->show(argc, argv);
	return Fl::run();
}

