Add some basic layout functions

Signed-off-by: Guillaume Clement <gclement@baobob.org>