core.cpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #include <nall/intrinsics.hpp>
  2. #if defined(HIRO_WINDOWS)
  3. #include "../windows/header.hpp"
  4. #elif defined(HIRO_QT)
  5. #include "../qt/header.hpp"
  6. #elif defined(HIRO_GTK)
  7. #include "../gtk/header.hpp"
  8. #elif defined(HIRO_COCOA)
  9. #include "../cocoa/header.hpp"
  10. #endif
  11. #include "core.hpp"
  12. using namespace nall;
  13. #if defined(HIRO_WINDOWS)
  14. #include "../windows/platform.cpp"
  15. #elif defined(HIRO_QT)
  16. #include "../qt/platform.cpp"
  17. #elif defined(HIRO_GTK)
  18. #include "../gtk/platform.cpp"
  19. #elif defined(HIRO_COCOA)
  20. #include "../cocoa/platform.cpp"
  21. #endif
  22. #define signal(function, ...) \
  23. (delegate ? self()->function(__VA_ARGS__) : decltype(self()->function(__VA_ARGS__))())
  24. #define signalex(object, function, ...) \
  25. (object->delegate ? object->self()->function(__VA_ARGS__) : decltype(object->self()->function(__VA_ARGS__))())
  26. namespace hiro {
  27. #include "color.cpp"
  28. #include "gradient.cpp"
  29. #include "alignment.cpp"
  30. #include "text-cursor.cpp"
  31. #include "position.cpp"
  32. #include "size.cpp"
  33. #include "geometry.cpp"
  34. #include "font.cpp"
  35. #include "mouse-cursor.cpp"
  36. #include "application.cpp"
  37. #include "desktop.cpp"
  38. #include "monitor.cpp"
  39. #include "keyboard.cpp"
  40. #include "mouse.cpp"
  41. #include "browser-window.cpp"
  42. #include "message-window.cpp"
  43. #include "attribute.cpp"
  44. #include "object.cpp"
  45. #include "group.cpp"
  46. #include "hotkey.cpp"
  47. #include "timer.cpp"
  48. #include "window.cpp"
  49. #include "status-bar.cpp"
  50. #include "menu-bar.cpp"
  51. #include "popup-menu.cpp"
  52. #include "action/action.cpp"
  53. #include "action/menu.cpp"
  54. #include "action/menu-separator.cpp"
  55. #include "action/menu-item.cpp"
  56. #include "action/menu-check-item.cpp"
  57. #include "action/menu-radio-item.cpp"
  58. #include "sizable.cpp"
  59. #include "widget/widget.cpp"
  60. #include "widget/button.cpp"
  61. #include "widget/canvas.cpp"
  62. #include "widget/check-button.cpp"
  63. #include "widget/check-label.cpp"
  64. #include "widget/combo-button.cpp"
  65. #include "widget/combo-button-item.cpp"
  66. #include "widget/combo-edit.cpp"
  67. #include "widget/combo-edit-item.cpp"
  68. #include "widget/console.cpp"
  69. #include "widget/frame.cpp"
  70. #include "widget/hex-edit.cpp"
  71. #include "widget/horizontal-scroll-bar.cpp"
  72. #include "widget/horizontal-slider.cpp"
  73. #include "widget/icon-view.cpp"
  74. #include "widget/icon-view-item.cpp"
  75. #include "widget/label.cpp"
  76. #include "widget/line-edit.cpp"
  77. #include "widget/progress-bar.cpp"
  78. #include "widget/radio-button.cpp"
  79. #include "widget/radio-label.cpp"
  80. #include "widget/source-edit.cpp"
  81. #include "widget/tab-frame.cpp"
  82. #include "widget/tab-frame-item.cpp"
  83. #include "widget/table-view.cpp"
  84. #include "widget/table-view-column.cpp"
  85. #include "widget/table-view-item.cpp"
  86. #include "widget/table-view-cell.cpp"
  87. #include "widget/text-edit.cpp"
  88. #include "widget/tree-view.cpp"
  89. #include "widget/tree-view-item.cpp"
  90. #include "widget/vertical-scroll-bar.cpp"
  91. #include "widget/vertical-slider.cpp"
  92. #include "widget/viewport.cpp"
  93. }
  94. #undef signal
  95. #undef signalex