Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
openmsx::OSDImageBasedWidget Class Referenceabstract

#include <OSDImageBasedWidget.hh>

Inheritance diagram for openmsx::OSDImageBasedWidget:
Inheritance graph
Collaboration diagram for openmsx::OSDImageBasedWidget:
Collaboration graph

Public Member Functions

uint32_t getRGBA (uint32_t corner) const
const uint32_t * getRGBA4 () const
virtual uint8_t getFadedAlpha () const =0
std::vector< 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
- 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)
virtual std::string_view getType () const =0
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)
virtual gl::vec2 getSize (const OutputSurface &output) const =0
DisplaygetDisplay () const

Protected Member Functions

 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
virtual std::unique_ptr< BaseImagecreateSDL (OutputSurface &output)=0
virtual std::unique_ptr< BaseImagecreateGL (OutputSurface &output)=0
void setError (std::string message)
bool hasError () const
- Protected Member Functions inherited from openmsx::OSDWidget
 OSDWidget (Display &display, const TclObject &name)
void invalidateChildren ()
bool needSuppressErrors () const

Protected Attributes

std::unique_ptr< BaseImageimage

Detailed Description

Definition at line 12 of file OSDImageBasedWidget.hh.

Constructor & Destructor Documentation

◆ OSDImageBasedWidget()

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

Definition at line 22 of file

Referenced by getRGBA4().

◆ ~OSDImageBasedWidget()

openmsx::OSDImageBasedWidget::~OSDImageBasedWidget ( )

Referenced by getRGBA4().

Member Function Documentation

◆ createGL()

virtual std::unique_ptr<BaseImage> openmsx::OSDImageBasedWidget::createGL ( OutputSurface output)
protectedpure virtual

Referenced by createImage(), and getRGBA4().

◆ createImage()

void openmsx::OSDImageBasedWidget::createImage ( OutputSurface output)

◆ createSDL()

virtual std::unique_ptr<BaseImage> openmsx::OSDImageBasedWidget::createSDL ( OutputSurface output)
protectedpure virtual

Referenced by createImage(), and getRGBA4().

◆ getFadedAlpha()

virtual uint8_t openmsx::OSDImageBasedWidget::getFadedAlpha ( ) const
pure virtual

Referenced by createImage(), and getRGBA4().

◆ getProperties()

vector< std::string_view > openmsx::OSDImageBasedWidget::getProperties ( ) const

◆ getProperty()

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

◆ getRecursiveFadeValue()

float openmsx::OSDImageBasedWidget::getRecursiveFadeValue ( ) const

◆ getRGBA()

uint32_t openmsx::OSDImageBasedWidget::getRGBA ( uint32_t  corner) const

◆ getRGBA4()

const uint32_t* openmsx::OSDImageBasedWidget::getRGBA4 ( ) const

◆ hasConstantAlpha()

bool openmsx::OSDImageBasedWidget::hasConstantAlpha ( ) const

Definition at line 151 of file

Referenced by getRGBA4(), and openmsx::OSDRectangle::getType().

◆ hasError()

bool openmsx::OSDImageBasedWidget::hasError ( ) const

Definition at line 38 of file OSDImageBasedWidget.hh.

Referenced by createImage(), and openmsx::OSDText::getType().

◆ invalidateLocal()

void openmsx::OSDImageBasedWidget::invalidateLocal ( )

◆ paintGL()

void openmsx::OSDImageBasedWidget::paintGL ( OutputSurface output)

Implements openmsx::OSDWidget.

Definition at line 240 of file

Referenced by getRGBA4().

◆ paintSDL()

void openmsx::OSDImageBasedWidget::paintSDL ( OutputSurface output)

Implements openmsx::OSDWidget.

Definition at line 235 of file

Referenced by getRGBA4().

◆ setError()

void openmsx::OSDImageBasedWidget::setError ( std::string  message)

◆ setProperty()

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

Member Data Documentation

◆ image

std::unique_ptr<BaseImage> openmsx::OSDImageBasedWidget::image

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