implicit capture of this pointer by value
rename source files to reflect class name e.g layout -> text_layout