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

#include <OSDWidget.hh>

Inheritance diagram for openmsx::OSDWidget:
Inheritance graph

Public Member Functions

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::vector< std::string_view > getProperties () const
virtual void setProperty (Interpreter &interp, std::string_view name, const TclObject &value)
virtual void getProperty (std::string_view name, TclObject &result) const
virtual float getRecursiveFadeValue () const
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) const
virtual gl::vec2 getSize (const OutputSurface &output) const =0
DisplaygetDisplay () const

Protected Member Functions

 OSDWidget (Display &display, const TclObject &name)
void invalidateChildren ()
bool needSuppressErrors () const
virtual void invalidateLocal ()=0
virtual void paintSDL (OutputSurface &output)=0
virtual void paintGL (OutputSurface &output)=0

Detailed Description

Definition at line 16 of file OSDWidget.hh.

Constructor & Destructor Documentation

◆ ~OSDWidget()

virtual openmsx::OSDWidget::~OSDWidget ( )

◆ OSDWidget()

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

Definition at line 139 of file

Member Function Documentation

◆ addWidget()

void openmsx::OSDWidget::addWidget ( std::unique_ptr< OSDWidget widget)

Definition at line 150 of file

◆ deleteWidget()

void openmsx::OSDWidget::deleteWidget ( OSDWidget widget)

Definition at line 173 of file

References rfind_if_unguarded().

◆ getBoundingBox()

void openmsx::OSDWidget::getBoundingBox ( const OutputSurface output,
gl::vec2 pos,
gl::vec2 size 
) const

Definition at line 443 of file

References transformPos().

Referenced by paintGLRecursive(), and paintSDLRecursive().

◆ getChildren()

const SubWidgets& openmsx::OSDWidget::getChildren ( ) const

Definition at line 29 of file OSDWidget.hh.

◆ getDisplay()

Display& openmsx::OSDWidget::getDisplay ( ) const

◆ getName()

std::string_view openmsx::OSDWidget::getName ( ) const

◆ getParent() [1/2]

OSDWidget* openmsx::OSDWidget::getParent ( )

◆ getParent() [2/2]

const OSDWidget* openmsx::OSDWidget::getParent ( ) const

Definition at line 28 of file OSDWidget.hh.

◆ getPos()

gl::vec2 openmsx::OSDWidget::getPos ( ) const

Definition at line 23 of file OSDWidget.hh.

Referenced by transformPos().

◆ getProperties()

vector< string_view > openmsx::OSDWidget::getProperties ( ) const

◆ getProperty()

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

◆ getRecursiveFadeValue()

float openmsx::OSDWidget::getRecursiveFadeValue ( ) const

Reimplemented in openmsx::OSDImageBasedWidget.

Definition at line 305 of file

Referenced by openmsx::OSDImageBasedWidget::getRecursiveFadeValue().

◆ getRelPos()

gl::vec2 openmsx::OSDWidget::getRelPos ( ) const

Definition at line 24 of file OSDWidget.hh.

Referenced by transformPos().

◆ getScaleFactor()

int openmsx::OSDWidget::getScaleFactor ( const OutputSurface output) const

◆ getSize()

virtual gl::vec2 openmsx::OSDWidget::getSize ( const OutputSurface output) const
pure virtual

Implemented in openmsx::OSDTopWidget.

Referenced by transformPos().

◆ getType()

virtual std::string_view openmsx::OSDWidget::getType ( ) const
pure virtual

◆ getZ()

float openmsx::OSDWidget::getZ ( ) const

Definition at line 25 of file OSDWidget.hh.

◆ invalidateChildren()

void openmsx::OSDWidget::invalidateChildren ( )

Definition at line 316 of file

Referenced by invalidateRecursive(), and openmsx::OSDText::setProperty().

◆ invalidateLocal()

virtual void openmsx::OSDWidget::invalidateLocal ( )
protectedpure virtual

◆ invalidateRecursive()

void openmsx::OSDWidget::invalidateRecursive ( )

◆ needSuppressErrors()

bool openmsx::OSDWidget::needSuppressErrors ( ) const

Definition at line 323 of file

References getParent().

Referenced by openmsx::OSDImageBasedWidget::setError().

◆ paintGL()

virtual void openmsx::OSDWidget::paintGL ( OutputSurface output)
protectedpure virtual

◆ paintGLRecursive()

void openmsx::OSDWidget::paintGLRecursive ( OutputSurface output)

Definition at line 348 of file

References getBoundingBox(), paintGL(), and utf8::unchecked::size().

Referenced by openmsx::GLOSDGUILayer::paint().

◆ paintSDL()

virtual void openmsx::OSDWidget::paintSDL ( OutputSurface output)
protectedpure virtual

◆ paintSDLRecursive()

void openmsx::OSDWidget::paintSDLRecursive ( OutputSurface output)

Definition at line 332 of file

References getBoundingBox(), paintSDL(), and utf8::unchecked::size().

Referenced by openmsx::SDLOSDGUILayer::paint().

◆ setProperty()

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

◆ transformPos()

vec2 openmsx::OSDWidget::transformPos ( const OutputSurface output,
gl::vec2  pos,
gl::vec2  relPos 
) const

Definition at line 378 of file

References getParent(), getPos(), getRelPos(), getScaleFactor(), and getSize().

Referenced by getBoundingBox().

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