some cleanup of headers

This commit is contained in:
Hartmut Seichter 2023-06-30 22:55:59 +02:00
parent 536a639bfd
commit 833a18a3ee
17 changed files with 373 additions and 48 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1999-2021 Hartmut Seichter
* Copyright 2023 Hartmut Seichter
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@ -8,8 +8,8 @@
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@ -20,16 +20,14 @@
* SOFTWARE.
*
*/
#ifndef PARADISO_CONTEXT_HPP
#define PARADISO_CONTEXT_HPP
#include "geometry.hpp"
#include "rgba.hpp"
#include <paradiso/globals.hpp>
#include <paradiso/geometry.hpp>
#include <paradiso/rgba.hpp>
#include <memory>
namespace paradiso {
struct Context final {
@ -46,7 +44,7 @@ struct Context final {
Size viewport_size() const;
Point viewport_origin() const;
Context& set_clearcolor(const RGBA &clear_color);
Context& set_clearcolor(const RGBA& clear_color);
RGBA clearcolor() const;
void clear();
@ -55,10 +53,10 @@ struct Context final {
struct impl;
private:
private:
std::unique_ptr<impl> impl_;
};
}
} // namespace paradiso
#endif