mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-12 10:03:14 +02:00
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
//
|
|
// HoverOverlayInterface.h
|
|
// libraries/entities/src
|
|
//
|
|
// Created by Zach Fox on 2017-07-14.
|
|
// Copyright 2017 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_HoverOverlayInterface_h
|
|
#define hifi_HoverOverlayInterface_h
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QUuid>
|
|
|
|
#include <DependencyManager.h>
|
|
#include <RegisteredMetaTypes.h>
|
|
#include <PointerEvent.h>
|
|
|
|
#include "EntityTree.h"
|
|
#include "HoverOverlayLogging.h"
|
|
|
|
class HoverOverlayInterface : public QObject, public Dependency {
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QUuid currentHoveredEntity READ getCurrentHoveredEntity WRITE setCurrentHoveredEntity)
|
|
public:
|
|
HoverOverlayInterface();
|
|
|
|
Q_INVOKABLE QUuid getCurrentHoveredEntity() { return _currentHoveredEntity; }
|
|
void setCurrentHoveredEntity(const QUuid entityID) { _currentHoveredEntity = entityID; }
|
|
|
|
public slots:
|
|
void createHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event);
|
|
void destroyHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event);
|
|
|
|
private:
|
|
bool _verboseLogging { true };
|
|
QUuid _currentHoveredEntity{};
|
|
};
|
|
|
|
#endif // hifi_HoverOverlayInterface_h
|