| @@ -1583,7 +1583,7 @@ public: | |||||
| } | } | ||||
| } | } | ||||
| void showMouseCursor (Cursor cursor) | |||||
| void showMouseCursor (Cursor cursor) throw() | |||||
| { | { | ||||
| XDefineCursor (display, windowH, cursor); | XDefineCursor (display, windowH, cursor); | ||||
| } | } | ||||
| @@ -2460,7 +2460,7 @@ void juce_windowMessageReceive (XEvent* event) | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool clipToWorkArea) | |||||
| void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool clipToWorkArea) throw() | |||||
| { | { | ||||
| #if JUCE_USE_XINERAMA | #if JUCE_USE_XINERAMA | ||||
| int major_opcode, first_event, first_error; | int major_opcode, first_event, first_error; | ||||
| @@ -2635,10 +2635,8 @@ void* juce_createStandardMouseCursor (MouseCursor::StandardCursorType type) thro | |||||
| { | { | ||||
| case MouseCursor::NoCursor: | case MouseCursor::NoCursor: | ||||
| { | { | ||||
| Image im (Image::ARGB, 16, 16, true); | |||||
| void* const invisibleCursor = juce_createMouseCursorFromImage (im, 0, 0); | |||||
| return invisibleCursor; | |||||
| const Image im (Image::ARGB, 16, 16, true); | |||||
| return juce_createMouseCursorFromImage (im, 0, 0); | |||||
| } | } | ||||
| case MouseCursor::NormalCursor: | case MouseCursor::NormalCursor: | ||||
| @@ -2744,7 +2742,7 @@ void* juce_createStandardMouseCursor (MouseCursor::StandardCursorType type) thro | |||||
| return (void*) XCreateFontCursor (display, shape); | return (void*) XCreateFontCursor (display, shape); | ||||
| } | } | ||||
| void MouseCursor::showInWindow (ComponentPeer* peer) const | |||||
| void MouseCursor::showInWindow (ComponentPeer* peer) const throw() | |||||
| { | { | ||||
| LinuxComponentPeer* const lp = dynamic_cast <LinuxComponentPeer*> (peer); | LinuxComponentPeer* const lp = dynamic_cast <LinuxComponentPeer*> (peer); | ||||
| @@ -2752,7 +2750,7 @@ void MouseCursor::showInWindow (ComponentPeer* peer) const | |||||
| lp->showMouseCursor ((Cursor) getHandle()); | lp->showMouseCursor ((Cursor) getHandle()); | ||||
| } | } | ||||
| void MouseCursor::showInAllWindows() const | |||||
| void MouseCursor::showInAllWindows() const throw() | |||||
| { | { | ||||
| for (int i = ComponentPeer::getNumPeers(); --i >= 0;) | for (int i = ComponentPeer::getNumPeers(); --i >= 0;) | ||||
| showInWindow (ComponentPeer::getPeer (i)); | showInWindow (ComponentPeer::getPeer (i)); | ||||
| @@ -2239,7 +2239,7 @@ const ModifierKeys ModifierKeys::getCurrentModifiersRealtime() | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool clipToWorkArea) | |||||
| void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool clipToWorkArea) throw() | |||||
| { | { | ||||
| int mainMon = 0; | int mainMon = 0; | ||||
| int distFrom00 = 0x7fffff; | int distFrom00 = 0x7fffff; | ||||
| @@ -2308,7 +2308,7 @@ void* juce_createMouseCursorFromImage (const Image& image, int hotspotX, int hot | |||||
| hotspotY = (hotspotY * maxH) / image.getHeight(); | hotspotY = (hotspotY * maxH) / image.getHeight(); | ||||
| } | } | ||||
| Cursor* c = new Cursor(); | |||||
| Cursor* const c = new Cursor(); | |||||
| c->hotSpot.h = hotspotX; | c->hotSpot.h = hotspotX; | ||||
| c->hotSpot.v = hotspotY; | c->hotSpot.v = hotspotY; | ||||
| @@ -2337,13 +2337,13 @@ void* juce_createMouseCursorFromImage (const Image& image, int hotspotX, int hot | |||||
| if (newIm != 0) | if (newIm != 0) | ||||
| delete newIm; | delete newIm; | ||||
| CursorWrapper* cw = new CursorWrapper(); | |||||
| CursorWrapper* const cw = new CursorWrapper(); | |||||
| cw->cursor = c; | cw->cursor = c; | ||||
| cw->themeCursor = kThemeArrowCursor; | cw->themeCursor = kThemeArrowCursor; | ||||
| return (void*)cw; | |||||
| return (void*) cw; | |||||
| } | } | ||||
| static void* cursorFromData (const unsigned char* data, const int size, int hx, int hy) | |||||
| static void* cursorFromData (const unsigned char* data, const int size, int hx, int hy) throw() | |||||
| { | { | ||||
| Image* const im = ImageFileFormat::loadFrom ((const char*) data, size); | Image* const im = ImageFileFormat::loadFrom ((const char*) data, size); | ||||
| jassert (im != 0); | jassert (im != 0); | ||||
| @@ -2486,12 +2486,12 @@ void juce_deleteMouseCursor (void* const cursorHandle, const bool isStandard) th | |||||
| } | } | ||||
| } | } | ||||
| void MouseCursor::showInAllWindows() const | |||||
| void MouseCursor::showInAllWindows() const throw() | |||||
| { | { | ||||
| showInWindow (0); | showInWindow (0); | ||||
| } | } | ||||
| void MouseCursor::showInWindow (ComponentPeer*) const | |||||
| void MouseCursor::showInWindow (ComponentPeer*) const throw() | |||||
| { | { | ||||
| const CursorWrapper* const cw = (CursorWrapper*) getHandle(); | const CursorWrapper* const cw = (CursorWrapper*) getHandle(); | ||||
| @@ -63,7 +63,8 @@ BEGIN_JUCE_NAMESPACE | |||||
| #include "../../../src/juce_core/basics/juce_SystemStats.h" | #include "../../../src/juce_core/basics/juce_SystemStats.h" | ||||
| #include "juce_win32_DynamicLibraryLoader.h" | #include "juce_win32_DynamicLibraryLoader.h" | ||||
| extern void juce_updateMultiMonitorInfo(); // from WindowDriver | |||||
| extern void juce_updateMultiMonitorInfo() throw(); | |||||
| //============================================================================== | //============================================================================== | ||||
| void Logger::outputDebugString (const String& text) throw() | void Logger::outputDebugString (const String& text) throw() | ||||
| @@ -2270,7 +2270,7 @@ BOOL CALLBACK enumMonitorsProc (HMONITOR, HDC, LPRECT r, LPARAM userInfo) | |||||
| return TRUE; | return TRUE; | ||||
| } | } | ||||
| void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool clipToWorkArea) | |||||
| void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool clipToWorkArea) throw() | |||||
| { | { | ||||
| DynamicLibraryLoader user32Dll ("user32.dll"); | DynamicLibraryLoader user32Dll ("user32.dll"); | ||||
| DynamicLibraryImport (EnumDisplayMonitors, enumDisplayMonitors, BOOL, user32Dll, | DynamicLibraryImport (EnumDisplayMonitors, enumDisplayMonitors, BOOL, user32Dll, | ||||
| @@ -2606,12 +2606,12 @@ void* juce_createStandardMouseCursor (MouseCursor::StandardCursorType type) thro | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| void MouseCursor::showInWindow (ComponentPeer*) const | |||||
| void MouseCursor::showInWindow (ComponentPeer*) const throw() | |||||
| { | { | ||||
| SetCursor ((HCURSOR) getHandle()); | SetCursor ((HCURSOR) getHandle()); | ||||
| } | } | ||||
| void MouseCursor::showInAllWindows() const | |||||
| void MouseCursor::showInAllWindows() const throw() | |||||
| { | { | ||||
| showInWindow (0); | showInWindow (0); | ||||
| } | } | ||||
| @@ -39,7 +39,7 @@ BEGIN_JUCE_NAMESPACE | |||||
| #include "../graphics/geometry/juce_RectangleList.h" | #include "../graphics/geometry/juce_RectangleList.h" | ||||
| extern void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, | extern void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, | ||||
| const bool clipToWorkArea); | |||||
| const bool clipToWorkArea) throw(); | |||||
| //============================================================================== | //============================================================================== | ||||
| @@ -66,7 +66,7 @@ Desktop::~Desktop() | |||||
| jassert (desktopComponents.size() == 0); | jassert (desktopComponents.size() == 0); | ||||
| } | } | ||||
| Desktop& Desktop::getInstance() | |||||
| Desktop& JUCE_CALLTYPE Desktop::getInstance() | |||||
| { | { | ||||
| if (instance == 0) | if (instance == 0) | ||||
| instance = new Desktop(); | instance = new Desktop(); | ||||
| @@ -70,7 +70,7 @@ public: | |||||
| //============================================================================== | //============================================================================== | ||||
| /** There's only one dektop object, and this method will return it. | /** There's only one dektop object, and this method will return it. | ||||
| */ | */ | ||||
| static Desktop& getInstance(); | |||||
| static Desktop& JUCE_CALLTYPE getInstance(); | |||||
| //============================================================================== | //============================================================================== | ||||
| /** Returns a list of the positions of all the monitors available. | /** Returns a list of the positions of all the monitors available. | ||||
| @@ -156,8 +156,8 @@ private: | |||||
| friend class Component; | friend class Component; | ||||
| void showInWindow (ComponentPeer* window) const; | |||||
| void showInAllWindows() const; | |||||
| void showInWindow (ComponentPeer* window) const throw(); | |||||
| void showInAllWindows() const throw(); | |||||
| void* getHandle() const throw(); | void* getHandle() const throw(); | ||||
| }; | }; | ||||