-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Say hello to AuroraPlatform and AuroraCore
AuroraPlatform is a platform abstraction library that glues together compositors with EGL device integration and input device managers. Compositors will use the platform abstraction layer to access input and output devices directly. AuroraCore has utilities for compositors and device integration plugins. Closes: #41
- Loading branch information
Showing
38 changed files
with
3,572 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# SPDX-FileCopyrightText: 2023 Pier Luigi Fiorini <[email protected]> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
include(ECMQtDeclareLoggingCategory) | ||
ecm_qt_declare_logging_category( | ||
AuroraCore_SOURCES | ||
HEADER "auroracoreloggingcategories.h" | ||
IDENTIFIER "Aurora::Core::gLcAuroraCore" | ||
CATEGORY_NAME "aurora.core" | ||
DEFAULT_SEVERITY "Info" | ||
DESCRIPTION "Aurora core library" | ||
) | ||
|
||
liri_add_module(AuroraCore | ||
DESCRIPTION | ||
"Utility library for Wayland compositors using Aurora" | ||
SOURCES | ||
cursorsource.cpp cursorsource.h | ||
shapecursorsource.cpp shapecursorsource.h | ||
xcursor.c xcursor.h | ||
xcursortheme.cpp xcursortheme_p.h | ||
${AuroraCore_SOURCES} | ||
DEFINES | ||
QT_NO_CAST_FROM_ASCII | ||
PUBLIC_LIBRARIES | ||
Qt::Core | ||
Qt::Gui | ||
) | ||
|
||
liri_finalize_module(AuroraCore) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SPDX-FileCopyrightText: 2023 Pier Luigi Fiorini <[email protected]> | ||
// SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <[email protected]> | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include "cursorsource.h" | ||
|
||
namespace Aurora { | ||
|
||
namespace Core { | ||
|
||
CursorSource::CursorSource(QObject *parent) | ||
: QObject(parent) | ||
{ | ||
} | ||
|
||
QSizeF CursorSource::size() const | ||
{ | ||
return QSizeF(0, 0); | ||
} | ||
|
||
QPointF CursorSource::hotSpot() const | ||
{ | ||
return QPointF(0, 0); | ||
} | ||
|
||
} // namespace Core | ||
|
||
} // namespace Aurora |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-FileCopyrightText: 2023 Pier Luigi Fiorini <[email protected]> | ||
// SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <[email protected]> | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#include <QObject> | ||
#include <QPointF> | ||
#include <QSizeF> | ||
|
||
#include <LiriAuroraCore/liriauroracoreglobal.h> | ||
|
||
namespace Aurora { | ||
|
||
namespace Core { | ||
|
||
class LIRIAURORACORE_EXPORT CursorSource : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit CursorSource(QObject *parent = nullptr); | ||
|
||
virtual QSizeF size() const; | ||
virtual QPointF hotSpot() const; | ||
|
||
signals: | ||
void changed(); | ||
}; | ||
|
||
} // namespace Core | ||
|
||
} // namespace Aurora |
Oops, something went wrong.