Could be done that way, but I would vote against it for the following reason:
1) we do not support 8-bit platrorms (yet), and even on most of them int means 16 or 32-bit
2) you almost never have a PWM faster then some two digit KHz (and if thats the case, you have VERY specialized HW and for this you can write your own PWM driver...)
--> Remember, I designed the IF to cover ~95% of use cases but is therefore very easy to use!