LMMS
Loading...
Searching...
No Matches
juce_win32_Windowing.cpp File Reference

Classes

struct  juce::ScopedDeviceContext
struct  juce::TOUCHINPUT
struct  juce::GESTUREINFO
struct  juce::POINTER_INFO
struct  juce::POINTER_TOUCH_INFO
struct  juce::POINTER_PEN_INFO
class  juce::ScopedThreadDPIAwarenessSetter::NativeImpl
struct  juce::ScopedThreadDPIAwarenessSetter::NativeImpl::FunctionSingleton
class  juce::Desktop::NativeDarkModeChangeDetectorImpl
class  juce::WindowsBitmapImage
struct  juce::IInspectable
struct  juce::UWPUIViewSettings
struct  juce::UWPUIViewSettings::ComBaseModule
class  juce::HWNDComponentPeer
struct  juce::HWNDComponentPeer::FileDropTarget
struct  juce::HWNDComponentPeer::FileDropTarget::DroppedData
struct  juce::HWNDComponentPeer::TemporaryImage
class  juce::HWNDComponentPeer::WindowClassHolder
struct  juce::HWNDComponentPeer::ChildWindowClippingInfo
struct  juce::HWNDComponentPeer::IMEHandler
class  juce::HWNDComponentPeer::TopLevelModalDismissBroadcaster
class  juce::WindowsMessageBoxBase
class  juce::PreVistaMessageBox
class  juce::WindowsTaskDialog
class  juce::ScreenSaverDefeater
struct  juce::MonitorInfo
class  juce::MouseCursor::PlatformSpecificHandle
struct  juce::MouseCursor::PlatformSpecificHandle::Impl
class  juce::MouseCursor::PlatformSpecificHandle::BuiltinImpl
class  juce::MouseCursor::PlatformSpecificHandle::ImageImpl

Namespaces

namespace  juce
namespace  juce::IconConverters

Macros

#define GET_APPCOMMAND_LPARAM(lParam)
#define FAPPCOMMAND_MASK   0xF000
#define APPCOMMAND_MEDIA_NEXTTRACK   11
#define APPCOMMAND_MEDIA_PREVIOUSTRACK   12
#define APPCOMMAND_MEDIA_STOP   13
#define APPCOMMAND_MEDIA_PLAY_PAUSE   14
#define WM_APPCOMMAND   0x0319
#define GET_POINTERID_WPARAM(wParam)
#define USER_DEFAULT_SCREEN_DPI   96
#define DPI_AWARENESS_CONTEXT_UNAWARE   ((DPI_AWARENESS_CONTEXT) - 1)
#define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE   ((DPI_AWARENESS_CONTEXT) - 2)
#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE   ((DPI_AWARENESS_CONTEXT) - 3)
#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2   ((DPI_AWARENESS_CONTEXT) - 4)

Typedefs

typedef HANDLE juce::HTOUCHINPUT
typedef HANDLE juce::HGESTUREINFO
typedef DWORD juce::POINTER_INPUT_TYPE
typedef UINT32 juce::POINTER_FLAGS
typedef UINT32 juce::PEN_FLAGS
typedef UINT32 juce::PEN_MASK
typedef UINT32 juce::TOUCH_FLAGS
typedef UINT32 juce::TOUCH_MASK
typedef HANDLE juce::DPI_AWARENESS_CONTEXT
using juce::RegisterTouchWindowFunc = BOOL (WINAPI*) (HWND, ULONG)
using juce::GetTouchInputInfoFunc = BOOL (WINAPI*) (HTOUCHINPUT, UINT, TOUCHINPUT*, int)
using juce::CloseTouchInputHandleFunc = BOOL (WINAPI*) (HTOUCHINPUT)
using juce::GetGestureInfoFunc = BOOL (WINAPI*) (HGESTUREINFO, GESTUREINFO*)
using juce::GetPointerTypeFunc = BOOL (WINAPI*) (UINT32, POINTER_INPUT_TYPE*)
using juce::GetPointerTouchInfoFunc = BOOL (WINAPI*) (UINT32, POINTER_TOUCH_INFO*)
using juce::GetPointerPenInfoFunc = BOOL (WINAPI*) (UINT32, POINTER_PEN_INFO*)
using juce::SetProcessDPIAwareFunc = BOOL (WINAPI*) ()
using juce::SetProcessDPIAwarenessContextFunc = BOOL (WINAPI*) (DPI_AWARENESS_CONTEXT)
using juce::SetProcessDPIAwarenessFunc = HRESULT (WINAPI*) (DPI_Awareness)
using juce::SetThreadDPIAwarenessContextFunc = DPI_AWARENESS_CONTEXT (WINAPI*) (DPI_AWARENESS_CONTEXT)
using juce::GetDPIForWindowFunc = UINT (WINAPI*) (HWND)
using juce::GetDPIForMonitorFunc = HRESULT (WINAPI*) (HMONITOR, Monitor_DPI_Type, UINT*, UINT*)
using juce::GetSystemMetricsForDpiFunc = int (WINAPI*) (int, UINT)
using juce::GetProcessDPIAwarenessFunc = HRESULT (WINAPI*) (HANDLE, DPI_Awareness*)
using juce::GetWindowDPIAwarenessContextFunc = DPI_AWARENESS_CONTEXT (WINAPI*) (HWND)
using juce::GetThreadDPIAwarenessContextFunc = DPI_AWARENESS_CONTEXT (WINAPI*) ()
using juce::GetAwarenessFromDpiAwarenessContextFunc = DPI_Awareness (WINAPI*) (DPI_AWARENESS_CONTEXT)
using juce::EnableNonClientDPIScalingFunc = BOOL (WINAPI*) (HWND)
typedef HSTRING_PRIVATE * juce::HSTRING
using juce::TaskDialogIndirectFunc = HRESULT (WINAPI*) (const TASKDIALOGCONFIG*, INT*, INT*, BOOL*)

Enumerations

enum  { juce::WM_TOUCH = 0x0240 , juce::TOUCHEVENTF_MOVE = 0x0001 , juce::TOUCHEVENTF_DOWN = 0x0002 , juce::TOUCHEVENTF_UP = 0x0004 }
enum  {
  juce::WM_NCPOINTERUPDATE = 0x241 , juce::WM_NCPOINTERDOWN = 0x242 , juce::WM_NCPOINTERUP = 0x243 , juce::WM_POINTERUPDATE = 0x245 ,
  juce::WM_POINTERDOWN = 0x246 , juce::WM_POINTERUP = 0x247 , juce::WM_POINTERENTER = 0x249 , juce::WM_POINTERLEAVE = 0x24A ,
  juce::WM_POINTERACTIVATE = 0x24B , juce::WM_POINTERCAPTURECHANGED = 0x24C , juce::WM_TOUCHHITTESTING = 0x24D , juce::WM_POINTERWHEEL = 0x24E ,
  juce::WM_POINTERHWHEEL = 0x24F , juce::WM_POINTERHITTEST = 0x250
}
enum  { juce::PT_TOUCH = 0x00000002 , juce::PT_PEN = 0x00000003 }
enum  juce::POINTER_BUTTON_CHANGE_TYPE {
  juce::POINTER_CHANGE_NONE , juce::POINTER_CHANGE_FIRSTBUTTON_DOWN , juce::POINTER_CHANGE_FIRSTBUTTON_UP , juce::POINTER_CHANGE_SECONDBUTTON_DOWN ,
  juce::POINTER_CHANGE_SECONDBUTTON_UP , juce::POINTER_CHANGE_THIRDBUTTON_DOWN , juce::POINTER_CHANGE_THIRDBUTTON_UP , juce::POINTER_CHANGE_FOURTHBUTTON_DOWN ,
  juce::POINTER_CHANGE_FOURTHBUTTON_UP , juce::POINTER_CHANGE_FIFTHBUTTON_DOWN , juce::POINTER_CHANGE_FIFTHBUTTON_UP
}
enum  {
  juce::PEN_MASK_NONE = 0x00000000 , juce::PEN_MASK_PRESSURE = 0x00000001 , juce::PEN_MASK_ROTATION = 0x00000002 , juce::PEN_MASK_TILT_X = 0x00000004 ,
  juce::PEN_MASK_TILT_Y = 0x00000008
}
enum  { juce::TOUCH_MASK_NONE = 0x00000000 , juce::TOUCH_MASK_CONTACTAREA = 0x00000001 , juce::TOUCH_MASK_ORIENTATION = 0x00000002 , juce::TOUCH_MASK_PRESSURE = 0x00000004 }
enum  {
  juce::POINTER_FLAG_NONE = 0x00000000 , juce::POINTER_FLAG_NEW = 0x00000001 , juce::POINTER_FLAG_INRANGE = 0x00000002 , juce::POINTER_FLAG_INCONTACT = 0x00000004 ,
  juce::POINTER_FLAG_FIRSTBUTTON = 0x00000010 , juce::POINTER_FLAG_SECONDBUTTON = 0x00000020 , juce::POINTER_FLAG_THIRDBUTTON = 0x00000040 , juce::POINTER_FLAG_FOURTHBUTTON = 0x00000080 ,
  juce::POINTER_FLAG_FIFTHBUTTON = 0x00000100 , juce::POINTER_FLAG_PRIMARY = 0x00002000 , juce::POINTER_FLAG_CONFIDENCE = 0x00004000 , juce::POINTER_FLAG_CANCELED = 0x00008000 ,
  juce::POINTER_FLAG_DOWN = 0x00010000 , juce::POINTER_FLAG_UPDATE = 0x00020000 , juce::POINTER_FLAG_UP = 0x00040000 , juce::POINTER_FLAG_WHEEL = 0x00080000 ,
  juce::POINTER_FLAG_HWHEEL = 0x00100000 , juce::POINTER_FLAG_CAPTURECHANGED = 0x00200000 , juce::POINTER_FLAG_HASTRANSFORM = 0x00400000
}
enum  juce::Monitor_DPI_Type { juce::MDT_Effective_DPI = 0 , juce::MDT_Angular_DPI = 1 , juce::MDT_Raw_DPI = 2 , juce::MDT_Default = MDT_Effective_DPI }
enum  juce::DPI_Awareness { juce::DPI_Awareness_Invalid = -1 , juce::DPI_Awareness_Unaware = 0 , juce::DPI_Awareness_System_Aware = 1 , juce::DPI_Awareness_Per_Monitor_Aware = 2 }

Functions

void juce::juce_repeatLastProcessPriority ()
bool juce::juce_isRunningInWine ()
voidjuce::getUser32Function (const char *)
static bool juce::canUseMultiTouch ()
static void juce::checkForPointerAPI ()
static void juce::loadDPIAwarenessFunctions ()
static void juce::setDPIAwareness ()
static bool juce::isPerMonitorDPIAwareProcess ()
static bool juce::isPerMonitorDPIAwareWindow (HWND nativeWindow)
static bool juce::isPerMonitorDPIAwareThread (GetThreadDPIAwarenessContextFunc getThreadDPIAwarenessContextIn=getThreadDPIAwarenessContext, GetAwarenessFromDpiAwarenessContextFunc getAwarenessFromDPIAwarenessContextIn=getAwarenessFromDPIAwarenessContext)
static double juce::getGlobalDPI ()
static Rectangle< intjuce::rectangleFromRECT (RECT r) noexcept
static RECT juce::RECTFromRectangle (Rectangle< int > r) noexcept
static Point< intjuce::pointFromPOINT (POINT p) noexcept
static POINT juce::POINTFromPoint (Point< int > p) noexcept
static const Displays::Displayjuce::getCurrentDisplayFromScaleFactor (HWND hwnd)
template<typename ValueType>
static Rectangle< ValueType > juce::convertPhysicalScreenRectangleToLogical (Rectangle< ValueType > r, HWND h) noexcept
template<typename ValueType>
static Rectangle< ValueType > juce::convertLogicalScreenRectangleToPhysical (Rectangle< ValueType > r, HWND h) noexcept
static Point< intjuce::convertPhysicalScreenPointToLogical (Point< int > p, HWND h) noexcept
static Point< intjuce::convertLogicalScreenPointToPhysical (Point< int > p, HWND h) noexcept
JUCE_API double juce::getScaleFactorForWindow (HWND h)
static void juce::setWindowPos (HWND hwnd, Rectangle< int > bounds, UINT flags, bool adjustTopLeft=false)
static RECT juce::getWindowScreenRect (HWND hwnd)
static RECT juce::getWindowClientRect (HWND hwnd)
static void juce::setWindowZOrder (HWND hwnd, HWND insertAfter)
RTL_OSVERSIONINFOW juce::getWindowsVersionInfo ()
int64 juce::getMouseEventTime ()
Image juce::createSnapshotOfNativeWindow (void *nativeWindowHandle)
static Image juce::IconConverters::createImageFromHICON (HICON icon)
HICON juce::IconConverters::createHICONFromImage (const Image &image, const BOOL isIcon, int hotspotX, int hotspotY)
 juce::JUCE_IUNKNOWNCLASS (ITipInvocation, "37c994e7-432b-4834-a2f7-dce1f13b834b")
JUCE_API ComponentPeerjuce::createNonRepaintingEmbeddedWindowsPeer (Component &component, void *parentHWND)
bool juce::offerKeyMessageToJUCEWindow (MSG &m)
static DWORD juce::getProcess (HWND hwnd)
bool juce::isEmbeddedInForegroundProcess (Component *c)
static BOOL CALLBACK juce::enumAlwaysOnTopWindows (HWND hwnd, LPARAM lParam)
bool juce::juce_areThereAnyAlwaysOnTopWindows ()
static std::unique_ptr< WindowsMessageBoxBasejuce::createMessageBox (const MessageBoxOptions &options, std::unique_ptr< ModalComponentManager::Callback > callback)
static int juce::showDialog (const MessageBoxOptions &options, ModalComponentManager::Callback *callbackIn, AlertWindowMappings::MapFn mapFn)
static BOOL CALLBACK juce::enumMonitorsProc (HMONITOR hm, HDC, LPRECT, LPARAM userInfo)
static HICON juce::extractFileHICON (const File &file)
Image juce::juce_createIconForFile (const File &file)

Variables

static bool juce::shouldDeactivateTitleBar = true
static RegisterTouchWindowFunc juce::registerTouchWindow = nullptr
static GetTouchInputInfoFunc juce::getTouchInputInfo = nullptr
static CloseTouchInputHandleFunc juce::closeTouchInputHandle = nullptr
static GetGestureInfoFunc juce::getGestureInfo = nullptr
static bool juce::hasCheckedForMultiTouch = false
static GetPointerTypeFunc juce::getPointerTypeFunction = nullptr
static GetPointerTouchInfoFunc juce::getPointerTouchInfo = nullptr
static GetPointerPenInfoFunc juce::getPointerPenInfo = nullptr
static bool juce::canUsePointerAPI = false
static SetProcessDPIAwareFunc juce::setProcessDPIAware = nullptr
static SetProcessDPIAwarenessContextFunc juce::setProcessDPIAwarenessContext = nullptr
static SetProcessDPIAwarenessFunc juce::setProcessDPIAwareness = nullptr
static SetThreadDPIAwarenessContextFunc juce::setThreadDPIAwarenessContext = nullptr
static GetDPIForMonitorFunc juce::getDPIForMonitor = nullptr
static GetDPIForWindowFunc juce::getDPIForWindow = nullptr
static GetProcessDPIAwarenessFunc juce::getProcessDPIAwareness = nullptr
static GetWindowDPIAwarenessContextFunc juce::getWindowDPIAwarenessContext = nullptr
static GetThreadDPIAwarenessContextFunc juce::getThreadDPIAwarenessContext = nullptr
static GetAwarenessFromDpiAwarenessContextFunc juce::getAwarenessFromDPIAwarenessContext = nullptr
static EnableNonClientDPIScalingFunc juce::enableNonClientDPIScaling = nullptr
static bool juce::hasCheckedForDPIAwareness = false
const int juce::extendedKeyModifier = 0x10000
static TaskDialogIndirectFunc juce::taskDialogIndirect = nullptr
static std::unique_ptr< ScreenSaverDefeaterjuce::screenSaverDefeater

Macro Definition Documentation

◆ APPCOMMAND_MEDIA_NEXTTRACK

#define APPCOMMAND_MEDIA_NEXTTRACK   11

◆ APPCOMMAND_MEDIA_PLAY_PAUSE

#define APPCOMMAND_MEDIA_PLAY_PAUSE   14

◆ APPCOMMAND_MEDIA_PREVIOUSTRACK

#define APPCOMMAND_MEDIA_PREVIOUSTRACK   12

◆ APPCOMMAND_MEDIA_STOP

#define APPCOMMAND_MEDIA_STOP   13

◆ DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE

#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE   ((DPI_AWARENESS_CONTEXT) - 3)

◆ DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2

#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2   ((DPI_AWARENESS_CONTEXT) - 4)

◆ DPI_AWARENESS_CONTEXT_SYSTEM_AWARE

#define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE   ((DPI_AWARENESS_CONTEXT) - 2)

◆ DPI_AWARENESS_CONTEXT_UNAWARE

#define DPI_AWARENESS_CONTEXT_UNAWARE   ((DPI_AWARENESS_CONTEXT) - 1)

◆ FAPPCOMMAND_MASK

#define FAPPCOMMAND_MASK   0xF000

◆ GET_APPCOMMAND_LPARAM

#define GET_APPCOMMAND_LPARAM ( lParam)
Value:
((short) (HIWORD (lParam) & ~FAPPCOMMAND_MASK))
#define FAPPCOMMAND_MASK
Definition juce_win32_Windowing.cpp:41
#define HIWORD(l)
Definition swell-types.h:91

◆ GET_POINTERID_WPARAM

#define GET_POINTERID_WPARAM ( wParam)
Value:
(LOWORD(wParam))
#define LOWORD(l)
Definition swell-types.h:90

◆ USER_DEFAULT_SCREEN_DPI

#define USER_DEFAULT_SCREEN_DPI   96

◆ WM_APPCOMMAND

#define WM_APPCOMMAND   0x0319