Separate out widget geometry functions.