#pragma region CPL License /* Nuclex Native Framework Copyright (C) 2002-2021 Nuclex Development Labs This library is free software; you can redistribute it and/or modify it under the terms of the IBM Common Public License as published by the IBM Corporation; either version 1.0 of the License, or (at your option) any later version. This library 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 IBM Common Public License for more details. You should have received a copy of the IBM Common Public License along with this library */ #pragma endregion // CPL License #ifndef NUCLEX_PIXELS_SIZE_H #define NUCLEX_PIXELS_SIZE_H #include "Nuclex/Pixels/Config.h" #include // for std::size_t namespace Nuclex { namespace Pixels { // ------------------------------------------------------------------------------------------- // /// Size of a 2D rectangle in pixels struct NUCLEX_PIXELS_TYPE Size { /// Initializes a new rectangle size /// Width of the rectangle in pixels /// Height of the rectangle in pixels public: NUCLEX_PIXELS_API Size(std::size_t width, std::size_t height) : Width(width), Height(height) {} /// Width of the rectangle in pixels public: std::size_t Width; /// Height of the rectangle in pixels public: std::size_t Height; }; // ------------------------------------------------------------------------------------------- // }} // namespace Nuclex::Pixels #endif // NUCLEX_PIXELS_SIZE_H