fpdfsdk/pwl is a Widget Library for AcroForms.
CPWL_Wnd is the base class that widget classes extend. The derived widget classes are controllers for each widget. The hierarchy is:
Widgets are rendered to Appearance Streams, with the case all centralized in CPWL_AppStream.