lullaby/modules/layout/layout.cc
// Converts a lull::LayoutVerticalAlignment to it's flatui equivalent.
Converts a lull::LayoutVerticalAlignment to it's flatui equivalent.
Converts a lull :: LayoutVerticalAlignment to it ' s flatui equivalent .
LayoutGroupAlignment VerticalToGroupAlignment(LayoutVerticalAlignment align) {
  switch (align) {
    case LayoutVerticalAlignment_Top:
      return LayoutGroupAlignment::kTop;
    case LayoutVerticalAlignment_Center:
      return LayoutGroupAlignment::kCenter;
    case LayoutVerticalAlignment_Bottom:
      return LayoutGroupAlignment::kBottom;
  }
  return LayoutGroupAlignment::kTop;
}
LayoutGroupAlignment VerticalToGroupAlignment ( LayoutVerticalAlignment align ) { switch ( align ) { case LayoutVerticalAlignment_Top : return LayoutGroupAlignment :: kTop ; case LayoutVerticalAlignment_Center : return LayoutGroupAlignment :: kCenter ; case LayoutVerticalAlignment_Bottom : return LayoutGroupAlignment :: kBottom ; } return LayoutGroupAlignment :: kTop ; }
Converts a lull::LayoutVerticalAlignment to it's flatui equivalent.
Converts a lull :: LayoutVerticalAlignment to it ' s flatui equivalent .