lullaby/modules/layout/layout.cc
// Converts a lull::LayoutHorizontalAlignment to it's flatui equivalent.
Converts a lull::LayoutHorizontalAlignment to it's flatui equivalent.
Converts a lull :: LayoutHorizontalAlignment to it ' s flatui equivalent .
LayoutGroupAlignment HorizontalToGroupAlignment(
    LayoutHorizontalAlignment align) {
  switch (align) {
    case LayoutHorizontalAlignment_Left:
      return LayoutGroupAlignment::kLeft;
      break;
    case LayoutHorizontalAlignment_Center:
      return LayoutGroupAlignment::kCenter;
      break;
    case LayoutHorizontalAlignment_Right:
      return LayoutGroupAlignment::kRight;
      break;
  }
  return LayoutGroupAlignment::kLeft;
}
LayoutGroupAlignment HorizontalToGroupAlignment ( LayoutHorizontalAlignment align ) { switch ( align ) { case LayoutHorizontalAlignment_Left : return LayoutGroupAlignment :: kLeft ; break ; case LayoutHorizontalAlignment_Center : return LayoutGroupAlignment :: kCenter ; break ; case LayoutHorizontalAlignment_Right : return LayoutGroupAlignment :: kRight ; break ; } return LayoutGroupAlignment :: kLeft ; }
Converts a lull::LayoutHorizontalAlignment to it's flatui equivalent.
Converts a lull :: LayoutHorizontalAlignment to it ' s flatui equivalent .