JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
juce_MouseCursor.h
Go to the documentation of this file.
1 /*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
38class JUCE_API MouseCursor final
39{
40public:
41 //==============================================================================
74
75 //==============================================================================
77 MouseCursor() noexcept;
78
81
91 MouseCursor (const Image& image, int hotSpotX, int hotSpotY);
92
104 MouseCursor (const Image& image, int hotSpotX, int hotSpotY, float scaleFactor);
105
114 MouseCursor (const ScaledImage& image, Point<int> hotSpot);
115
116 //==============================================================================
119
121 MouseCursor& operator= (const MouseCursor&);
122
125
128
130 MouseCursor& operator= (MouseCursor&&) noexcept;
131
138 bool operator== (const MouseCursor&) const noexcept;
139
146 bool operator!= (const MouseCursor&) const noexcept;
147
149 bool operator== (StandardCursorType type) const noexcept;
150
152 bool operator!= (StandardCursorType type) const noexcept;
153
154 //==============================================================================
163 static void showWaitCursor();
164
173 static void hideWaitCursor();
174
175
176private:
177 //==============================================================================
178 class SharedCursorHandle;
179 std::shared_ptr<SharedCursorHandle> cursorHandle;
180
182
183 friend class detail::MouseInputSourceImpl;
184 void showInWindow (ComponentPeer*) const;
185 PlatformSpecificHandle* getHandle() const noexcept;
186
188};
189
190} // namespace juce
The Component class uses a ComponentPeer internally to create and manage a real operating-system wind...
Holds a fixed-size bitmap.
Definition juce_Image.h:58
Represents a mouse cursor image.
MouseCursor() noexcept
Creates the standard arrow cursor.
StandardCursorType
The set of available standard mouse cursors.
@ CrosshairCursor
A pair of crosshairs.
@ TopLeftCornerResizeCursor
A platform-specific cursor for resizing the top-left-corner of a window.
@ BottomLeftCornerResizeCursor
A platform-specific cursor for resizing the bottom-left-corner of a window.
@ LeftRightResizeCursor
An arrow pointing left and right.
@ DraggingHandCursor
An open flat hand for dragging heavy objects around.
@ NoCursor
An invisible cursor.
@ PointingHandCursor
A hand with a pointing finger, for clicking on web-links.
@ NormalCursor
The standard arrow cursor.
@ LeftEdgeResizeCursor
A platform-specific cursor for resizing the left-edge of a window.
@ UpDownResizeCursor
an arrow pointing up and down.
@ BottomEdgeResizeCursor
A platform-specific cursor for resizing the bottom-edge of a window.
@ TopEdgeResizeCursor
A platform-specific cursor for resizing the top-edge of a window.
@ BottomRightCornerResizeCursor
A platform-specific cursor for resizing the bottom-right-corner of a window.
@ IBeamCursor
A vertical I-beam for positioning within text.
@ WaitCursor
The normal hourglass or spinning-beachball 'busy' cursor.
@ RightEdgeResizeCursor
A platform-specific cursor for resizing the right-edge of a window.
@ UpDownLeftRightResizeCursor
An arrow pointing up, down, left and right.
@ TopRightCornerResizeCursor
A platform-specific cursor for resizing the top-right-corner of a window.
A pair of (x, y) coordinates.
Definition juce_Point.h:42
An image that will be resampled before it is drawn.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.
JUCE Namespace.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
Definition juce_Memory.h:88