convert enum LayoutFlag into enum class