diff options
Diffstat (limited to 'src/Canvas.hpp')
-rw-r--r-- | src/Canvas.hpp | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/Canvas.hpp b/src/Canvas.hpp index 943b399..5ab8a7e 100644 --- a/src/Canvas.hpp +++ b/src/Canvas.hpp @@ -1,18 +1,5 @@ -/* This file is part of Patchage. - * Copyright 2007-2021 David Robillard <d@drobilla.net> - * - * Patchage is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free - * Software Foundation, either version 3 of the License, or (at your option) - * any later version. - * - * Patchage is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * - * You should have received a copy of the GNU General Public License - * along with Patchage. If not, see <http://www.gnu.org/licenses/>. - */ +// Copyright 2007-2021 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: GPL-3.0-or-later #ifndef PATCHAGE_CANVAS_HPP #define PATCHAGE_CANVAS_HPP @@ -20,17 +7,17 @@ #include "ActionSink.hpp" #include "ClientID.hpp" #include "PortID.hpp" -#include "SignalDirection.hpp" #include "warnings.hpp" PATCHAGE_DISABLE_GANV_WARNINGS -#include "ganv/Canvas.hpp" -#include "ganv/types.h" +#include <ganv/Canvas.hpp> +#include <ganv/types.h> PATCHAGE_RESTORE_WARNINGS #include <gdk/gdk.h> #include <map> +#include <random> namespace Ganv { class Node; @@ -38,6 +25,8 @@ class Node; namespace patchage { +enum class SignalDirection; + struct PortInfo; class CanvasModule; @@ -86,6 +75,8 @@ private: ActionSink& _action_sink; PortIndex _port_index; ModuleIndex _module_index; + + std::minstd_rand _rng; }; } // namespace patchage |