You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
336B

  1. #include "ui.hpp"
  2. namespace rack {
  3. void WindowWidget::draw(NVGcontext *vg) {
  4. bndNodeBackground(vg, 0.0, 0.0, box.size.x, box.size.y, BND_DEFAULT, -1, title.c_str(), bndGetTheme()->backgroundColor);
  5. Widget::draw(vg);
  6. }
  7. void WindowWidget::onDragMove(EventDragMove &e) {
  8. box.pos = box.pos.plus(e.mouseRel);
  9. }
  10. } // namespace rack