Propagate "quit" event, do not just terminate application. Resize: flag widgets to be resized, do resizes only once before draw. Draw: flag widgets to be redrawn, do not draw everything on any event.
CXXFLAGS=`sdl-config --cflags` -g -Wall -std=c++11 -Isrc
LDFLAGS=`sdl-config --libs` -lSDL_ttf
VPATH=src tests
all: test_sdlterm test_sdl_events
test_sdlterm: test_sdlterm.cc sdlterm.cc sdlterm.h
test_sdl_events: test_sdl_events.cc
clean:
rm -f test_sdlterm test_sdl_events