Files
MapLibreParticleLab/platform/qt/src/qmapboxgl_p.hpp
Thiago Marcos P. Santos e881795ed1 [Qt] Header cleanup (#6477)
Make some headers private, so we only commit with the QML API.
2016-09-27 16:18:04 +03:00

48 lines
1.0 KiB
C++

#pragma once
#include "qmapboxgl.hpp"
#include <mbgl/map/map.hpp>
#include <mbgl/map/view.hpp>
#include <mbgl/storage/default_file_source.hpp>
#include <mbgl/util/geo.hpp>
#include <QObject>
#include <QSize>
class QMapboxGLPrivate : public QObject, public mbgl::View
{
Q_OBJECT
public:
explicit QMapboxGLPrivate(QMapboxGL *, const QMapboxGLSettings &);
virtual ~QMapboxGLPrivate();
// mbgl::View implementation.
float getPixelRatio() const final;
std::array<uint16_t, 2> getSize() const final;
std::array<uint16_t, 2> getFramebufferSize() const final;
void activate() final {}
void deactivate() final {}
void invalidate() final;
void notifyMapChange(mbgl::MapChange) final;
mbgl::EdgeInsets margins;
QSize size { 0, 0 };
QMapboxGL *q_ptr { nullptr };
std::unique_ptr<mbgl::DefaultFileSource> fileSourceObj;
std::unique_ptr<mbgl::Map> mapObj;
bool dirty { false };
public slots:
void connectionEstablished();
signals:
void needsRendering();
void mapChanged(QMapbox::MapChange);
};