void ruiSlider::Draw(){ rRect box = BoundingBox(); rRect handle = HandleRect(); ruiStyle* style = ComputedStyle(); rColor color(200,200,200,255); style->GetColor("background-color", color); m_engine->renderer->RenderRect(box, color); color.Set(255,255,255,255); style->GetColor("color", color); m_engine->renderer->RenderRect(handle, color); }
void ruiLayout::Draw() { RenderWidgetBase(ComputedStyle(), BoundingBox()); for (size_t i = 0; i < m_layoutItems.size(); i++) m_layoutItems[i]->Draw(); }