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 {
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<BaseImage> createSDL(
OutputSurface& output)
override;
46 [[nodiscard]] std::unique_ptr<BaseImage> createGL (
OutputSurface& output)
override;
47 template<
typename IMAGE> [[nodiscard]] std::unique_ptr<BaseImage> create(
51 std::string imageName;
54 float borderSize = 0.0f;
55 float relBorderSize = 0.0f;
56 uint32_t borderRGBA = 0x000000ff;
Represents the output window/screen of openMSX.
void getProperty(std::string_view name, TclObject &result) const override
OSDRectangle(Display &display, const TclObject &name)
std::span< const std::string_view > getProperties() const override
static constexpr auto rectangleProperties
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)