New module: Platform - Split window management from Utility module (#128)
* New module: Platform - Split window management from Utility module Final touch * NDK/SDK: Bring back initialization of Utility
This commit is contained in:
committed by
Jérôme Leclercq
parent
41a1b5d493
commit
5aa072cee3
42
include/Nazara/Platform/CursorController.hpp
Normal file
42
include/Nazara/Platform/CursorController.hpp
Normal file
@@ -0,0 +1,42 @@
|
||||
// Copyright (C) 2017 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Platform module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_CURSORCONTROLLER_HPP
|
||||
#define NAZARA_CURSORCONTROLLER_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/HandledObject.hpp>
|
||||
#include <Nazara/Core/ObjectHandle.hpp>
|
||||
#include <Nazara/Core/Signal.hpp>
|
||||
#include <Nazara/Platform/Cursor.hpp>
|
||||
#include <Nazara/Platform/Enums.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class CursorController;
|
||||
|
||||
using CursorControllerHandle = ObjectHandle<CursorController>;
|
||||
|
||||
class CursorController : public HandledObject<CursorController>
|
||||
{
|
||||
public:
|
||||
CursorController() = default;
|
||||
CursorController(const CursorController&) = delete;
|
||||
CursorController(CursorController&&) = default;
|
||||
~CursorController() = default;
|
||||
|
||||
inline void UpdateCursor(const CursorRef& cursor);
|
||||
|
||||
CursorController& operator=(const CursorController&) = delete;
|
||||
CursorController& operator=(CursorController&&) = default;
|
||||
|
||||
NazaraSignal(OnCursorUpdated, const CursorController* /*cursorController*/, const CursorRef& /*cursor*/);
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Platform/CursorController.inl>
|
||||
|
||||
#endif // NAZARA_CURSORCONTROLLER_HPP
|
||||
Reference in New Issue
Block a user