Public Member Functions | Static Protected Attributes | List of all members
openmsx::OSDRectangle Class Referencefinal

#include <OSDRectangle.hh>

Inheritance diagram for openmsx::OSDRectangle:
Inheritance graph
Collaboration diagram for openmsx::OSDRectangle:
Collaboration graph

Public Member Functions

 OSDRectangle (Display &display, const TclObject &name)
std::span< const std::string_view > getProperties () const override
void setProperty (Interpreter &interp, std::string_view name, const TclObject &value) override
void getProperty (std::string_view name, TclObject &result) const override
std::string_view getType () const override
- Public Member Functions inherited from openmsx::OSDImageBasedWidget
uint32_t getRGBA (uint32_t corner) const
std::span< const uint32_t, 4 > getRGBA4 () const
float getRecursiveFadeValue () const override
bool isVisible () const override
bool isRecursiveFading () const override
- Public Member Functions inherited from openmsx::OSDWidget
virtual ~OSDWidget ()=default
std::string_view getName () const
gl::vec2 getPos () const
gl::vec2 getRelPos () const
float getZ () const
OSDWidgetgetParent ()
const OSDWidgetgetParent () const
const SubWidgets & getChildren () const
void addWidget (std::unique_ptr< OSDWidget > widget)
void deleteWidget (OSDWidget &widget)
void invalidateRecursive ()
void paintSDLRecursive (OutputSurface &output)
void paintGLRecursive (OutputSurface &output)
int getScaleFactor (const OutputSurface &output) const
gl::vec2 transformPos (const OutputSurface &output, gl::vec2 pos, gl::vec2 relPos) const
void getBoundingBox (const OutputSurface &output, gl::vec2 &pos, gl::vec2 &size) const
DisplaygetDisplay () const

Static Protected Attributes

static constexpr auto rectangleProperties
- Static Protected Attributes inherited from openmsx::OSDImageBasedWidget
static constexpr auto imageBasedProperties
- Static Protected Attributes inherited from openmsx::OSDWidget
static constexpr auto widgetProperties

Additional Inherited Members

- Protected Member Functions inherited from openmsx::OSDImageBasedWidget
 OSDImageBasedWidget (Display &display, const TclObject &name)
 ~OSDImageBasedWidget () override
bool hasConstantAlpha () const
void createImage (OutputSurface &output)
void invalidateLocal () override
void paintSDL (OutputSurface &output) override
void paintGL (OutputSurface &output) override
void setError (std::string message)
bool hasError () const
- Protected Member Functions inherited from openmsx::OSDWidget
 OSDWidget (Display &display, TclObject name)
void invalidateChildren ()
bool needSuppressErrors () const
- Protected Attributes inherited from openmsx::OSDImageBasedWidget
std::unique_ptr< BaseImageimage

Detailed Description

Definition at line 13 of file OSDRectangle.hh.

Constructor & Destructor Documentation

◆ OSDRectangle()

openmsx::OSDRectangle::OSDRectangle ( Display display,
const TclObject name 

Definition at line 20 of file

Member Function Documentation

◆ getProperties()

std::span<const std::string_view> openmsx::OSDRectangle::getProperties ( ) const

Reimplemented from openmsx::OSDImageBasedWidget.

Definition at line 31 of file OSDRectangle.hh.

References rectangleProperties.

◆ getProperty()

void openmsx::OSDRectangle::getProperty ( std::string_view  name,
TclObject result 
) const

Reimplemented from openmsx::OSDImageBasedWidget.

Definition at line 95 of file

References openmsx::OSDImageBasedWidget::getProperty().

◆ getType()

std::string_view openmsx::OSDRectangle::getType ( ) const

Implements openmsx::OSDWidget.

Definition at line 120 of file

◆ setProperty()

void openmsx::OSDRectangle::setProperty ( Interpreter interp,
std::string_view  name,
const TclObject value 

Member Data Documentation

◆ rectangleProperties

constexpr auto openmsx::OSDRectangle::rectangleProperties
Initial value:
= [] {
using namespace std::literals;
return concatArray(
"-w"sv, "-h"sv, "-relw"sv, "-relh"sv,
"-scale"sv, "-image"sv,
"-bordersize"sv, "-relbordersize"sv,
static constexpr auto imageBasedProperties
constexpr auto concatArray(const std::array< T, X > &x, const std::array< T, Y > &y)
Definition: stl.hh:381

Definition at line 16 of file OSDRectangle.hh.

Referenced by getProperties().

The documentation for this class was generated from the following files: