示例#1
0
Widgets Vertical_paned::Get_children() const
{
	Widgets w;
	w.push_back(top);
	w.push_back(bottom);
	return w;
}
示例#2
0
Widgets Horizontal_paned::Get_children() const
{
	Widgets w;
	w.push_back(left);
	w.push_back(right);
	return w;
}
示例#3
0
    virtual Widgets GetWidgets() const
    {
        Widgets widgets;
        widgets.push_back(m_sizerStatBox->GetStaticBox());
        widgets.push_back(m_statText);
#if wxUSE_MARKUP
        widgets.push_back(m_statMarkup);
#endif // wxUSE_MARKUP
#if wxUSE_STATLINE
        widgets.push_back(m_statLine);
#endif // wxUSE_STATLINE

        return widgets;
    }
示例#4
0
void  GUIPanel::render(float tick)
{
  if(!isAttached() || !parent)
    return;

  Widgets comboBoxes;
  GUIComboBox *cbPTR;

  if(visible)
  {
    renderClippedBounds();
    for(size_t t = 0; t < elements.size(); t++)
      if(elements[t]->getWidgetType() != WT_COMBO_BOX)
        elements[t]->render(tick);
      else
      {
        cbPTR = (GUIComboBox*)elements[t];
        if(!cbPTR->isDeployed())
          cbPTR->render(tick);
        else
          comboBoxes.push_back(elements[t]);
      }

    for(size_t t = 0; t < comboBoxes.size(); t++)
      comboBoxes[t]->render(tick);
  }
}
示例#5
0
文件: expander.cpp 项目: trezker/SWAG
Widgets Expander::Get_children() const
{
	Widgets w;
	if(child) {
		w.push_back(child);
	}
	return w;
}