The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

300 lines
11KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. /*******************************************************************************
  14. The block below describes the properties of this module, and is read by
  15. the Projucer to automatically generate project code that uses it.
  16. For details about the syntax and how to create or use a module, see the
  17. JUCE Module Format.txt file.
  18. BEGIN_JUCE_MODULE_DECLARATION
  19. ID: juce_gui_basics
  20. vendor: juce
  21. version: 6.0.0
  22. name: JUCE GUI core classes
  23. description: Basic user-interface components and related classes.
  24. website: http://www.juce.com/juce
  25. license: GPL/Commercial
  26. dependencies: juce_graphics juce_data_structures
  27. OSXFrameworks: Cocoa Carbon QuartzCore
  28. iOSFrameworks: UIKit MobileCoreServices
  29. linuxPackages: x11 xinerama xext
  30. END_JUCE_MODULE_DECLARATION
  31. *******************************************************************************/
  32. #pragma once
  33. #define JUCE_GUI_BASICS_H_INCLUDED
  34. #include <juce_graphics/juce_graphics.h>
  35. #include <juce_data_structures/juce_data_structures.h>
  36. //==============================================================================
  37. /** Config: JUCE_ENABLE_REPAINT_DEBUGGING
  38. If this option is turned on, each area of the screen that gets repainted will
  39. flash in a random colour, so that you can see exactly which bits of your
  40. components are being drawn.
  41. */
  42. #ifndef JUCE_ENABLE_REPAINT_DEBUGGING
  43. #define JUCE_ENABLE_REPAINT_DEBUGGING 0
  44. #endif
  45. /** Config: JUCE_USE_XRANDR
  46. Enables Xrandr multi-monitor support (Linux only).
  47. Unless you specifically want to disable this, it's best to leave this option turned on.
  48. Note that your users do not need to have Xrandr installed for your JUCE app to run, as
  49. the availability of Xrandr is queried during runtime.
  50. */
  51. #ifndef JUCE_USE_XRANDR
  52. #define JUCE_USE_XRANDR 1
  53. #endif
  54. /** Config: JUCE_USE_XINERAMA
  55. Enables Xinerama multi-monitor support (Linux only).
  56. Unless you specifically want to disable this, it's best to leave this option turned on.
  57. This will be used as a fallback if JUCE_USE_XRANDR not set or libxrandr cannot be found.
  58. Note that your users do not need to have Xinerama installed for your JUCE app to run, as
  59. the availability of Xinerama is queried during runtime.
  60. */
  61. #ifndef JUCE_USE_XINERAMA
  62. #define JUCE_USE_XINERAMA 1
  63. #endif
  64. /** Config: JUCE_USE_XSHM
  65. Enables X shared memory for faster rendering on Linux. This is best left turned on
  66. unless you have a good reason to disable it.
  67. */
  68. #ifndef JUCE_USE_XSHM
  69. #define JUCE_USE_XSHM 1
  70. #endif
  71. /** Config: JUCE_USE_XRENDER
  72. Enables XRender to allow semi-transparent windowing on Linux.
  73. */
  74. #ifndef JUCE_USE_XRENDER
  75. #define JUCE_USE_XRENDER 0
  76. #endif
  77. /** Config: JUCE_USE_XCURSOR
  78. Uses XCursor to allow ARGB cursor on Linux. This is best left turned on unless you have
  79. a good reason to disable it.
  80. */
  81. #ifndef JUCE_USE_XCURSOR
  82. #define JUCE_USE_XCURSOR 1
  83. #endif
  84. /** Config: JUCE_WIN_PER_MONITOR_DPI_AWARE
  85. Enables per-monitor DPI awareness on Windows 8.1 and above.
  86. */
  87. #ifndef JUCE_WIN_PER_MONITOR_DPI_AWARE
  88. #define JUCE_WIN_PER_MONITOR_DPI_AWARE 1
  89. #endif
  90. //==============================================================================
  91. namespace juce
  92. {
  93. class Component;
  94. class LookAndFeel;
  95. class MouseInputSource;
  96. class MouseInputSourceInternal;
  97. class ComponentPeer;
  98. class MouseEvent;
  99. struct MouseWheelDetails;
  100. struct PenDetails;
  101. class ToggleButton;
  102. class TextButton;
  103. class AlertWindow;
  104. class TextLayout;
  105. class ScrollBar;
  106. class ComboBox;
  107. class Button;
  108. class FilenameComponent;
  109. class ResizableWindow;
  110. class MenuBarComponent;
  111. class GlyphArrangement;
  112. class TableHeaderComponent;
  113. class Toolbar;
  114. class PopupMenu;
  115. class ProgressBar;
  116. class FileBrowserComponent;
  117. class DirectoryContentsDisplayComponent;
  118. class FilePreviewComponent;
  119. class CallOutBox;
  120. class Drawable;
  121. class DrawablePath;
  122. class DrawableComposite;
  123. class CaretComponent;
  124. class KeyPressMappingSet;
  125. class ApplicationCommandManagerListener;
  126. class DrawableButton;
  127. class Displays;
  128. class FlexBox;
  129. class Grid;
  130. }
  131. #include "mouse/juce_MouseCursor.h"
  132. #include "mouse/juce_MouseListener.h"
  133. #include "keyboard/juce_ModifierKeys.h"
  134. #include "mouse/juce_MouseInputSource.h"
  135. #include "mouse/juce_MouseEvent.h"
  136. #include "keyboard/juce_KeyPress.h"
  137. #include "keyboard/juce_KeyListener.h"
  138. #include "keyboard/juce_KeyboardFocusTraverser.h"
  139. #include "components/juce_ModalComponentManager.h"
  140. #include "components/juce_ComponentListener.h"
  141. #include "components/juce_CachedComponentImage.h"
  142. #include "components/juce_Component.h"
  143. #include "layout/juce_ComponentAnimator.h"
  144. #include "desktop/juce_Desktop.h"
  145. #include "desktop/juce_Displays.h"
  146. #include "layout/juce_ComponentBoundsConstrainer.h"
  147. #include "mouse/juce_ComponentDragger.h"
  148. #include "mouse/juce_DragAndDropTarget.h"
  149. #include "mouse/juce_DragAndDropContainer.h"
  150. #include "mouse/juce_FileDragAndDropTarget.h"
  151. #include "mouse/juce_SelectedItemSet.h"
  152. #include "mouse/juce_MouseInactivityDetector.h"
  153. #include "mouse/juce_TextDragAndDropTarget.h"
  154. #include "mouse/juce_TooltipClient.h"
  155. #include "keyboard/juce_CaretComponent.h"
  156. #include "keyboard/juce_SystemClipboard.h"
  157. #include "keyboard/juce_TextEditorKeyMapper.h"
  158. #include "keyboard/juce_TextInputTarget.h"
  159. #include "commands/juce_ApplicationCommandID.h"
  160. #include "commands/juce_ApplicationCommandInfo.h"
  161. #include "commands/juce_ApplicationCommandTarget.h"
  162. #include "commands/juce_ApplicationCommandManager.h"
  163. #include "commands/juce_KeyPressMappingSet.h"
  164. #include "buttons/juce_Button.h"
  165. #include "buttons/juce_ArrowButton.h"
  166. #include "buttons/juce_DrawableButton.h"
  167. #include "buttons/juce_HyperlinkButton.h"
  168. #include "buttons/juce_ImageButton.h"
  169. #include "buttons/juce_ShapeButton.h"
  170. #include "buttons/juce_TextButton.h"
  171. #include "buttons/juce_ToggleButton.h"
  172. #include "layout/juce_AnimatedPosition.h"
  173. #include "layout/juce_AnimatedPositionBehaviours.h"
  174. #include "layout/juce_ComponentBuilder.h"
  175. #include "layout/juce_ComponentMovementWatcher.h"
  176. #include "layout/juce_ConcertinaPanel.h"
  177. #include "layout/juce_GroupComponent.h"
  178. #include "layout/juce_ResizableBorderComponent.h"
  179. #include "layout/juce_ResizableCornerComponent.h"
  180. #include "layout/juce_ResizableEdgeComponent.h"
  181. #include "layout/juce_ScrollBar.h"
  182. #include "layout/juce_StretchableLayoutManager.h"
  183. #include "layout/juce_StretchableLayoutResizerBar.h"
  184. #include "layout/juce_StretchableObjectResizer.h"
  185. #include "layout/juce_TabbedButtonBar.h"
  186. #include "layout/juce_TabbedComponent.h"
  187. #include "layout/juce_Viewport.h"
  188. #include "menus/juce_PopupMenu.h"
  189. #include "menus/juce_MenuBarModel.h"
  190. #include "menus/juce_MenuBarComponent.h"
  191. #include "positioning/juce_RelativeCoordinate.h"
  192. #include "positioning/juce_MarkerList.h"
  193. #include "positioning/juce_RelativePoint.h"
  194. #include "positioning/juce_RelativeRectangle.h"
  195. #include "positioning/juce_RelativeCoordinatePositioner.h"
  196. #include "positioning/juce_RelativeParallelogram.h"
  197. #include "positioning/juce_RelativePointPath.h"
  198. #include "drawables/juce_Drawable.h"
  199. #include "drawables/juce_DrawableShape.h"
  200. #include "drawables/juce_DrawableComposite.h"
  201. #include "drawables/juce_DrawableImage.h"
  202. #include "drawables/juce_DrawablePath.h"
  203. #include "drawables/juce_DrawableRectangle.h"
  204. #include "drawables/juce_DrawableText.h"
  205. #include "widgets/juce_TextEditor.h"
  206. #include "widgets/juce_Label.h"
  207. #include "widgets/juce_ComboBox.h"
  208. #include "widgets/juce_ImageComponent.h"
  209. #include "widgets/juce_ListBox.h"
  210. #include "widgets/juce_ProgressBar.h"
  211. #include "widgets/juce_Slider.h"
  212. #include "widgets/juce_TableHeaderComponent.h"
  213. #include "widgets/juce_TableListBox.h"
  214. #include "widgets/juce_Toolbar.h"
  215. #include "widgets/juce_ToolbarItemComponent.h"
  216. #include "widgets/juce_ToolbarItemFactory.h"
  217. #include "widgets/juce_ToolbarItemPalette.h"
  218. #include "menus/juce_BurgerMenuComponent.h"
  219. #include "buttons/juce_ToolbarButton.h"
  220. #include "misc/juce_DropShadower.h"
  221. #include "misc/juce_JUCESplashScreen.h"
  222. #include "widgets/juce_TreeView.h"
  223. #include "windows/juce_TopLevelWindow.h"
  224. #include "windows/juce_AlertWindow.h"
  225. #include "windows/juce_CallOutBox.h"
  226. #include "windows/juce_ComponentPeer.h"
  227. #include "windows/juce_ResizableWindow.h"
  228. #include "windows/juce_DocumentWindow.h"
  229. #include "windows/juce_DialogWindow.h"
  230. #include "windows/juce_NativeMessageBox.h"
  231. #include "windows/juce_ThreadWithProgressWindow.h"
  232. #include "windows/juce_TooltipWindow.h"
  233. #include "layout/juce_MultiDocumentPanel.h"
  234. #include "layout/juce_SidePanel.h"
  235. #include "filebrowser/juce_FileBrowserListener.h"
  236. #include "filebrowser/juce_DirectoryContentsList.h"
  237. #include "filebrowser/juce_DirectoryContentsDisplayComponent.h"
  238. #include "filebrowser/juce_FileBrowserComponent.h"
  239. #include "filebrowser/juce_FileChooser.h"
  240. #include "filebrowser/juce_FileChooserDialogBox.h"
  241. #include "filebrowser/juce_FileListComponent.h"
  242. #include "filebrowser/juce_FilenameComponent.h"
  243. #include "filebrowser/juce_FilePreviewComponent.h"
  244. #include "filebrowser/juce_FileSearchPathListComponent.h"
  245. #include "filebrowser/juce_FileTreeComponent.h"
  246. #include "filebrowser/juce_ImagePreviewComponent.h"
  247. #include "filebrowser/juce_ContentSharer.h"
  248. #include "properties/juce_PropertyComponent.h"
  249. #include "properties/juce_BooleanPropertyComponent.h"
  250. #include "properties/juce_ButtonPropertyComponent.h"
  251. #include "properties/juce_ChoicePropertyComponent.h"
  252. #include "properties/juce_PropertyPanel.h"
  253. #include "properties/juce_SliderPropertyComponent.h"
  254. #include "properties/juce_TextPropertyComponent.h"
  255. #include "properties/juce_MultiChoicePropertyComponent.h"
  256. #include "application/juce_Application.h"
  257. #include "misc/juce_BubbleComponent.h"
  258. #include "lookandfeel/juce_LookAndFeel.h"
  259. #include "lookandfeel/juce_LookAndFeel_V2.h"
  260. #include "lookandfeel/juce_LookAndFeel_V1.h"
  261. #include "lookandfeel/juce_LookAndFeel_V3.h"
  262. #include "lookandfeel/juce_LookAndFeel_V4.h"
  263. #include "mouse/juce_LassoComponent.h"
  264. #if JUCE_LINUX
  265. #include "native/juce_linux_X11.h"
  266. #endif
  267. #include "layout/juce_FlexItem.h"
  268. #include "layout/juce_FlexBox.h"
  269. #include "layout/juce_GridItem.h"
  270. #include "layout/juce_Grid.h"