assign styles during layout recalculation

also implements rtb_obj_t->state, which lets us severely cut down on the
number of recalculations performed at start.
fix non-hovered objects being drawn hovered

in particular when the mouse was outside the window.