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.

349 lines
12KB

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