17 static constexpr auto rectangleProperties = [] {
18 using namespace std::literals;
22 "-w"sv,
"-h"sv,
"-relw"sv,
"-relh"sv,
23 "-scale"sv,
"-image"sv,
24 "-bordersize"sv,
"-relbordersize"sv,
32 [[nodiscard]] std::span<const std::string_view>
getProperties()
const override {
33 return rectangleProperties;
36 std::string_view name,
const TclObject& value)
override;
38 [[nodiscard]] std::string_view
getType()
const override;
41 [[nodiscard]]
bool takeImageDimensions()
const;
44 [[nodiscard]] uint8_t getFadedAlpha()
const override;
45 [[nodiscard]] std::unique_ptr<GLImage> create(
OutputSurface& output)
override;
48 std::string imageName;
51 float borderSize = 0.0f;
52 float relBorderSize = 0.0f;
53 uint32_t borderRGBA = 0x000000ff;
Represents the output window/screen of openMSX.
void getProperty(std::string_view name, TclObject &result) const override
std::span< const std::string_view > getProperties() const override
void setProperty(Interpreter &interp, std::string_view name, const TclObject &value) override
std::string_view getType() const override
A frame buffer where pixels can be written to.
This file implemented 3 utility functions:
constexpr auto concatArray(const std::array< T, X > &x, const std::array< T, Y > &y)