Added Padding extraction functions: top(@pad) right(@pad) bottom(@pad) left(@pad)

I've implemented these functions.
Please see #1100 for use cases and more info.