69 wxRect virtualLocation = wxRect(
71 wxSize(
size_.GetWidth(),
size_.GetHeight() * 3));
72 return virtualLocation;
89 for(
unsigned int i = 0; i <
children_.size(); i++) {
90 children_[i]->setLocation(wxPoint(segX, segY));
93 segY +=
children_[i]->bounds().GetHeight() +
107 vector<Figure*>::const_iterator i =
children_.begin();
109 segsHeight += (*i)->bounds().GetHeight();
117 size_.SetHeight(segsHeight);
144 dc->GetTextExtent(slotLabel, &slotLabelWidth, &slotLabelHeight);
146 int slotLabelX =
location_.x - slotLabelWidth - 10;
150 dc->SetBackgroundMode(wxTRANSPARENT);
151 dc->SetTextForeground(*wxBLACK);
152 dc->DrawText(slotLabel, slotLabelX, slotLabelY);