Audio plugin host https://kx.studio/carla
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.

DGL.cpp 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Carla Tests
  3. * Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #include "dgl/App.hpp"
  18. #include "dgl/Geometry.hpp"
  19. #include "dgl/Image.hpp"
  20. #include "dgl/ImageAboutWindow.hpp"
  21. #include "dgl/ImageButton.hpp"
  22. #include "dgl/ImageKnob.hpp"
  23. #include "dgl/ImageSlider.hpp"
  24. #include "dgl/Widget.hpp"
  25. #include "dgl/Window.hpp"
  26. #include <cstdio>
  27. int main()
  28. {
  29. USE_NAMESPACE_DGL;
  30. msleep(1);
  31. Point<int> pi;
  32. Point<long> pl;
  33. Point<float> pf;
  34. Point<double> pd;
  35. Point<unsigned> pu;
  36. Size<int> si;
  37. Size<long> sl;
  38. Size<float> sf;
  39. Size<double> sd;
  40. Size<unsigned> su;
  41. Rectangle<int> ri;
  42. Rectangle<long> rl;
  43. Rectangle<float> rf;
  44. Rectangle<double> rd;
  45. Rectangle<unsigned> ru;
  46. Image i;
  47. App app;
  48. Window win(app);
  49. win.setSize(500, 500);
  50. win.show();
  51. // for (int i=0; i < 1000; ++i)
  52. // {
  53. // app.idle();
  54. //
  55. // if (app.isQuiting())
  56. // break;
  57. // if (i % 30 == 0)
  58. // printf("SIZE: %i:%i\n", win.getWidth(), win.getHeight());
  59. // msleep(10);
  60. // }
  61. app.exec();
  62. return 0;
  63. }
  64. #include "dgl/src/ImageAboutWindow.cpp"
  65. #include "dgl/src/App.cpp"
  66. #include "dgl/src/Base.cpp"
  67. #include "dgl/src/Geometry.cpp"
  68. #include "dgl/src/Image.cpp"
  69. #include "dgl/src/ImageButton.cpp"
  70. #include "dgl/src/ImageKnob.cpp"
  71. #include "dgl/src/ImageSlider.cpp"
  72. #include "dgl/src/Widget.cpp"
  73. #include "dgl/src/Window.cpp"