openshot-audio
0.1.2
|
#include <juce_MouseCursor.h>
Classes | |
class | SharedCursorHandle |
Public Member Functions | |
MouseCursor () noexcept | |
MouseCursor (StandardCursorType) | |
MouseCursor (const Image &image, int hotSpotX, int hotSpotY) | |
MouseCursor (const Image &image, int hotSpotX, int hotSpotY, float scaleFactor) | |
MouseCursor (const MouseCursor &) | |
MouseCursor & | operator= (const MouseCursor &) |
~MouseCursor () | |
bool | operator== (const MouseCursor &) const noexcept |
bool | operator!= (const MouseCursor &) const noexcept |
bool | operator== (StandardCursorType type) const noexcept |
bool | operator!= (StandardCursorType type) const noexcept |
Static Public Member Functions | |
static void | showWaitCursor () |
static void | hideWaitCursor () |
Friends | |
class | SharedCursorHandle |
class | MouseInputSourceInternal |
Represents a mouse cursor image.
This object can either be used to represent one of the standard mouse cursor shapes, or a custom one generated from an image.
The set of available standard mouse cursors.
|
noexcept |
Creates the standard arrow cursor.
MouseCursor::MouseCursor | ( | StandardCursorType | type | ) |
Creates one of the standard mouse cursor
MouseCursor::MouseCursor | ( | const Image & | image, |
int | hotSpotX, | ||
int | hotSpotY | ||
) |
Creates a custom cursor from an image.
image | the image to use for the cursor - if this is bigger than the system can manage, it might get scaled down first, and might also have to be turned to black-and-white if it can't do colour cursors. |
hotSpotX | the x position of the cursor's hotspot within the image |
hotSpotY | the y position of the cursor's hotspot within the image |
MouseCursor::MouseCursor | ( | const Image & | image, |
int | hotSpotX, | ||
int | hotSpotY, | ||
float | scaleFactor | ||
) |
Creates a custom cursor from an image.
image | the image to use for the cursor - if this is bigger than the system can manage, it might get scaled down first, and might also have to be turned to black-and-white if it can't do colour cursors. |
hotSpotX | the x position of the cursor's hotspot within the image |
hotSpotY | the y position of the cursor's hotspot within the image |
scaleFactor | the factor by which this image is larger than the target screen size of the cursor. |
MouseCursor::MouseCursor | ( | const MouseCursor & | other | ) |
Creates a copy of another cursor object.
MouseCursor::~MouseCursor | ( | ) |
Destructor.
|
static |
If showWaitCursor has been called, this will return the mouse to its normal state.
This will look at what component is under the mouse, and update the cursor to be the correct one for that component.
|
noexcept |
Checks whether two mouse cursors are the same.
For custom cursors, two cursors created from the same image won't be recognised as the same, only MouseCursor objects that have been copied from the same object.
|
noexcept |
Checks whether this cursor is of the standard type mentioned.
MouseCursor & MouseCursor::operator= | ( | const MouseCursor & | other | ) |
Copies this cursor from another object.
|
noexcept |
Checks whether two mouse cursors are the same.
For custom cursors, two cursors created from the same image won't be recognised as the same, only MouseCursor objects that have been copied from the same object.
|
noexcept |
Checks whether this cursor is of the standard type mentioned.
|
static |
Makes the system show its default 'busy' cursor.
This will turn the system cursor to an hourglass or spinning beachball until the next time the mouse is moved, or hideWaitCursor() is called.
This is handy if the message loop is about to block for a couple of seconds while busy and you want to give the user feedback about this.
|
friend |
|
friend |