Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
Draw widget at its position to buffer
See Implementation