openMSX
|
#include <OSDImageBasedWidget.hh>
Public Member Functions | |
gl::vec2 | getPos () const override |
uint32_t | getRGBA (uint32_t corner) const |
std::span< const uint32_t, 4 > | getRGBA4 () const |
virtual uint8_t | getFadedAlpha () const =0 |
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 |
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 | getRelPos () const |
float | getZ () const |
OSDWidget * | getParent () |
const OSDWidget * | getParent () const |
const SubWidgets & | getChildren () const |
void | addWidget (std::unique_ptr< OSDWidget > widget) |
void | deleteWidget (OSDWidget &widget) |
virtual std::string_view | getType () const =0 |
void | invalidateRecursive () |
void | paintRecursive (OutputSurface &output) |
int | getScaleFactor (const OutputSurface &output) const |
gl::vec2 | transformPos (const OutputSurface &output, gl::vec2 pos, gl::vec2 relPos) const |
BoundingBox | getBoundingBox (const OutputSurface &output) const |
virtual gl::vec2 | getSize (const OutputSurface &output) const =0 |
Display & | getDisplay () const |
Protected Member Functions | |
OSDImageBasedWidget (Display &display, const TclObject &name) | |
~OSDImageBasedWidget () override | |
bool | hasConstantAlpha () const |
void | createImage (OutputSurface &output) |
void | invalidateLocal () override |
void | paint (OutputSurface &output) override |
virtual std::unique_ptr< GLImage > | create (OutputSurface &output)=0 |
gl::vec2 | getRenderedSize () const |
void | setError (std::string message) |
bool | hasError () const |
Protected Member Functions inherited from openmsx::OSDWidget | |
OSDWidget (Display &display, TclObject name) | |
void | invalidateChildren () const |
bool | needSuppressErrors () const |
Protected Attributes | |
std::unique_ptr< GLImage > | image |
Static Protected Attributes | |
static constexpr auto | imageBasedProperties |
Static Protected Attributes inherited from openmsx::OSDWidget | |
static constexpr auto | widgetProperties |
Definition at line 16 of file OSDImageBasedWidget.hh.
|
protected |
Definition at line 22 of file OSDImageBasedWidget.cc.
References ranges::fill().
|
overrideprotecteddefault |
|
protectedpure virtual |
Referenced by createImage().
|
protected |
Definition at line 299 of file OSDImageBasedWidget.cc.
References create(), hasError(), image, and setError().
Referenced by getRenderedSize(), and paint().
|
pure virtual |
Referenced by isVisible(), and paint().
|
overridevirtual |
Reimplemented from openmsx::OSDWidget.
Definition at line 169 of file OSDImageBasedWidget.cc.
References openmsx::OSDWidget::getPos(), openmsx::Timer::getTime(), and t.
|
inlineoverridevirtual |
Reimplemented from openmsx::OSDWidget.
Reimplemented in openmsx::OSDRectangle, and openmsx::OSDText.
Definition at line 41 of file OSDImageBasedWidget.hh.
References imageBasedProperties.
|
overridevirtual |
Reimplemented from openmsx::OSDWidget.
Reimplemented in openmsx::OSDRectangle, and openmsx::OSDText.
Definition at line 109 of file OSDImageBasedWidget.cc.
References openmsx::TclObject::addListElement(), openmsx::OSDWidget::getProperty(), and getRenderedSize().
Referenced by openmsx::OSDRectangle::getProperty(), and openmsx::OSDText::getProperty().
|
overridevirtual |
Reimplemented from openmsx::OSDWidget.
Definition at line 209 of file OSDImageBasedWidget.cc.
References openmsx::OSDWidget::getParent(), and openmsx::OSDWidget::getRecursiveFadeValue().
|
protected |
Definition at line 310 of file OSDImageBasedWidget.cc.
References createImage(), openmsx::OSDWidget::getBoundingBox(), openmsx::OSDWidget::getDisplay(), openmsx::Display::getOutputSurface(), openmsx::OSDWidget::getScaleFactor(), image, and openmsx::OSDWidget::BoundingBox::size.
Referenced by getProperty().
|
inline |
Definition at line 36 of file OSDImageBasedWidget.hh.
|
inline |
Definition at line 37 of file OSDImageBasedWidget.hh.
|
protected |
Definition at line 204 of file OSDImageBasedWidget.cc.
References ranges::all_equal().
|
inlineprotected |
Definition at line 62 of file OSDImageBasedWidget.hh.
Referenced by createImage().
|
overrideprotectedvirtual |
Implements openmsx::OSDWidget.
Definition at line 271 of file OSDImageBasedWidget.cc.
References image.
Referenced by openmsx::OSDRectangle::setProperty(), and openmsx::OSDText::setProperty().
|
overridevirtual |
Implements openmsx::OSDWidget.
Definition at line 224 of file OSDImageBasedWidget.cc.
References openmsx::OSDWidget::getParent(), and openmsx::OSDWidget::isRecursiveFading().
Referenced by isVisible(), and paint().
|
overridevirtual |
Implements openmsx::OSDWidget.
Definition at line 214 of file OSDImageBasedWidget.cc.
References getFadedAlpha(), and isRecursiveFading().
|
overrideprotectedvirtual |
Implements openmsx::OSDWidget.
Definition at line 332 of file OSDImageBasedWidget.cc.
References createImage(), openmsx::OSDWidget::getDisplay(), getFadedAlpha(), openmsx::Display::getOSDGUI(), image, isRecursiveFading(), and openmsx::OSDGUI::refresh().
|
protected |
Definition at line 283 of file OSDImageBasedWidget.cc.
References openmsx::OSDWidget::getDisplay(), openmsx::Display::getOSDGUI(), openmsx::OSDGUI::getTopWidget(), openmsx::OSDWidget::needSuppressErrors(), and openmsx::OSDTopWidget::queueError().
Referenced by createImage().
|
overridevirtual |
Reimplemented from openmsx::OSDWidget.
Reimplemented in openmsx::OSDRectangle, and openmsx::OSDText.
Definition at line 45 of file OSDImageBasedWidget.cc.
References openmsx::TclObject::getFloat(), openmsx::Timer::getTime(), openmsx::OSDWidget::setProperty(), and xrange().
Referenced by openmsx::OSDRectangle::setProperty(), and openmsx::OSDText::setProperty().
|
protected |
Definition at line 64 of file OSDImageBasedWidget.hh.
Referenced by createImage(), getRenderedSize(), invalidateLocal(), and paint().
|
staticconstexprprotected |
Definition at line 19 of file OSDImageBasedWidget.hh.
Referenced by getProperties().