Window component uses defines copied from C source.