22 using SubWidgets = std::vector<std::unique_ptr<OSDWidget>>;
26 using namespace std::literals;
28 "-type"sv,
"-x"sv,
"-y"sv,
"-z"sv,
"-relx"sv,
"-rely"sv,
"-scaled"sv,
29 "-clip"sv,
"-mousecoord"sv,
"-suppressErrors"sv,
39 [[nodiscard]]
float getZ()
const {
return z; }
43 [[nodiscard]]
const SubWidgets&
getChildren()
const {
return subWidgets; }
44 void addWidget(std::unique_ptr<OSDWidget> widget);
47 [[nodiscard]]
virtual std::span<const std::string_view>
getProperties()
const {
51 std::string_view name,
const TclObject& value);
55 [[nodiscard]]
virtual std::string_view
getType()
const = 0;
81 [[nodiscard]]
gl::vec2 getMouseCoord()
const;
84 void setParent(
OSDWidget* parent_) { parent = parent_; }
91 SubWidgets subWidgets;
102 bool suppressErrors =
false;
Represents the output window/screen of openMSX.
A frame buffer where pixels can be written to.
zstring_view getString() const
This file implemented 3 utility functions: