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.

25 lines
376B

  1. #include "widgets.hpp"
  2. #include "gui.hpp"
  3. namespace rack {
  4. void Tooltip::step() {
  5. // Follow the mouse
  6. box.pos = gMousePos;
  7. // Wrap size to contents
  8. // box.size = getChildrenBoundingBox().getBottomRight();
  9. Widget::step();
  10. }
  11. void Tooltip::draw(NVGcontext *vg) {
  12. bndTooltipBackground(vg, 0.0, 0.0, box.size.x, box.size.y);
  13. Widget::draw(vg);
  14. }
  15. } // namespace rack