void DockCont::Handle::FrameLayout(Rect& r) { if (!dc || !IsShown()) return; const DockableCtrl::Style &s = dc->GetStyle(); if (s.handle_vert) LayoutFrameLeft(r, this, GetHandleSize(s)); else LayoutFrameTop(r, this, GetHandleSize(s)); }
void BarCtrl::FrameLayout(Rect& r) { switch(align) { case BAR_LEFT: LayoutFrameLeft(r, this, pane.Repos(false, r.Height()).cx); break; case BAR_RIGHT: LayoutFrameRight(r, this, pane.Repos(false, r.Height()).cx); break; case BAR_BOTTOM: LayoutFrameBottom(r, this, pane.Repos(true, r.Width()).cy); break; default: LayoutFrameTop(r, this, pane.Repos(true, r.Width()).cy); break; } }
void HeaderCtrl::FrameLayout(Rect& r) { LayoutFrameTop(r, this, invisible ? 0 : GetHeight()); LayoutFrameBottom(r, &sb, sb.IsShown() ? ScrollBarSize() : 0); }
void RichRuler::FrameLayout(Rect& r) { LayoutFrameTop(r, this, Arial(10).Info().GetHeight() + 8); }