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.

371 lines
13KB

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