コード例 #1
0
ファイル: WBoxLayout.C プロジェクト: bvanhauwaert/wt
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);
}