def pad(size, padding):
    """Apply padding to width and height.

    :param size: two-tuple of width and height
    :param padding: padding to apply to width and height
    :returns: two-tuple of width and height with padding applied

    """
    width = size[0] + padding.left + padding.right
    height = size[1] + padding.top + padding.bottom
    return (width, height)