mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 14:07:38 +02:00
49 lines
1.4 KiB
C++
49 lines
1.4 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
|
|
//
|
|
|
|
#pragma once
|
|
#ifndef hifi_HoverOverlayInterface_h
|
|
#define hifi_HoverOverlayInterface_h
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QUuid>
|
|
|
|
#include <DependencyManager.h>
|
|
#include <PointerEvent.h>
|
|
|
|
#include "EntityTree.h"
|
|
#include "HoverOverlayLogging.h"
|
|
|
|
/**jsdoc
|
|
* @namespace HoverOverlay
|
|
*/
|
|
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 createHoverOverlay(const EntityItemID& entityItemID);
|
|
void destroyHoverOverlay(const EntityItemID& entityItemID, const PointerEvent& event);
|
|
void destroyHoverOverlay(const EntityItemID& entityItemID);
|
|
|
|
private:
|
|
bool _verboseLogging { true };
|
|
QUuid _currentHoveredEntity{};
|
|
};
|
|
|
|
#endif // hifi_HoverOverlayInterface_h
|