Skip to content

Commit

Permalink
Say hello to AuroraPlatform and AuroraCore
Browse files Browse the repository at this point in the history
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
plfiorini committed Oct 1, 2023
1 parent 4edaf1b commit 8f3b021
Show file tree
Hide file tree
Showing 38 changed files with 3,572 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ endif()
if(FEATURE_aurora_xkbcommon)
add_subdirectory(src/platformsupport/xkbcommon)
endif()
add_subdirectory(src/core)
add_subdirectory(src/platform)
add_subdirectory(src/compositor)
if(FEATURE_aurora_brcm)
add_subdirectory(src/plugins/hardwareintegration/compositor/brcm-egl)
Expand Down
30 changes: 30 additions & 0 deletions src/core/CMakeLists.txt
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)
28 changes: 28 additions & 0 deletions src/core/cursorsource.cpp
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
32 changes: 32 additions & 0 deletions src/core/cursorsource.h
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
Loading

0 comments on commit 8f3b021

Please sign in to comment.