![]() |
ezEngine Release 26.9
|
#include <Declarations.h>
Public Member Functions | |
| ezMouseCursorOverrideRequest (const ezMouseCursorOverrideDesc &desc) | |
| Requests an override right away, which is released again when this object goes out of scope. | |
| ezMouseCursorOverrideRequest (const ezMouseCursorOverrideRequest &)=delete | |
| void | operator= (const ezMouseCursorOverrideRequest &)=delete |
| ezMouseCursorOverrideRequest (ezMouseCursorOverrideRequest &&rhs) | |
| void | operator= (ezMouseCursorOverrideRequest &&rhs) |
| void | Request (const ezMouseCursorOverrideDesc &desc=ezMouseCursorOverrideDesc()) |
| Activates the override. Calling this repeatedly with an identical desc does nothing. | |
| void | Release () |
| Deactivates the override. Calling this while inactive does nothing. | |
| bool | IsActive () const |
| Whether an override is currently registered. | |
Holds at most one mouse cursor override and releases it automatically on destruction.
Use this either as a scope, by passing a desc to the constructor, or as a member of a long lived object (such as an in-game console), that requests and releases the override as it is shown and hidden.