~unity-team/nux/nux.remove-deprecated

« back to all changes in this revision

Viewing changes to Nux/HLayout.cpp

  • Committer: Eleni Maria Stea
  • Date: 2012-10-15 11:35:23 UTC
  • Revision ID: elene.mst@gmail.com-20121015113523-mv0ume9jgz4dl1bs
removed deprecated enumerations

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
    // Start packing the elements from the top. Is the layout has more space than the elements can use,
47
47
    // leave that space at the bottom of the HLayout.
48
 
    m_ContentStacking = eStackLeft;
 
48
    m_ContentStacking = MAJOR_POSITION_START;
49
49
  }
50
50
 
51
51
  HLayout::HLayout(std::string name, NUX_FILE_LINE_DECL)
61
61
    bottom_padding_ = 10;
62
62
#endif
63
63
 
64
 
    m_ContentStacking = eStackLeft;
 
64
    m_ContentStacking = MAJOR_POSITION_START;
65
65
  }
66
66
 
67
67
  HLayout::~HLayout()
149
149
      }
150
150
      break;
151
151
 
152
 
      case eStackCenter:
 
152
      case MAJOR_POSITION_CENTER:
153
153
      {
154
154
        offset_space = (remaining_width - total_used_space) / 2;
155
155
 
160
160
      }
161
161
      break;
162
162
 
163
 
      case eStackExpand:
 
163
      case MAJOR_POSITION_SPREAD:
164
164
      default:
165
165
      {
166
166
        offset_space = 0;