예제 #1
0
WBoxLayout::WBoxLayout(Direction dir, WWidget *parent)
  : WLayout(),
    direction_(dir)
{
  if (parent)
    setLayoutInParent(parent);
}
예제 #2
0
파일: WFitLayout.C 프로젝트: LifeGo/wt
WFitLayout::WFitLayout(WWidget *parent)
  : WLayout()
{ 
  grid_.columns_.push_back(Impl::Grid::Section(0));
  grid_.rows_.push_back(Impl::Grid::Section(0));

  std::vector<Impl::Grid::Item> items;
  items.push_back(Impl::Grid::Item());
  grid_.items_.push_back(items);

  if (parent)
    setLayoutInParent(parent);
}
예제 #3
0
파일: WGridLayout.C 프로젝트: 913862627/wt
WGridLayout::WGridLayout(WWidget *parent)
  : WLayout()
{
  if (parent)
    setLayoutInParent(parent);
}