openMSX
Classes | Public Member Functions | Protected Member Functions | List of all members
openmsx::OSDTopWidget Class Referencefinal

#include <OSDTopWidget.hh>

Inheritance diagram for openmsx::OSDTopWidget:
Inheritance graph
[legend]
Collaboration diagram for openmsx::OSDTopWidget:
Collaboration graph
[legend]

Public Member Functions

 OSDTopWidget (Display &display)
 
std::string_view getType () const override
 
gl::vec2 getSize (const OutputSurface &output) const override
 
bool isVisible () const override
 
bool isRecursiveFading () const override
 
void queueError (std::string message)
 
void showAllErrors ()
 
OSDWidgetfindByName (std::string_view name)
 
const OSDWidgetfindByName (std::string_view name) const
 
void addName (OSDWidget &widget)
 
void removeName (OSDWidget &widget)
 
auto getAllWidgetNames () const
 
- Public Member Functions inherited from openmsx::OSDWidget
virtual ~OSDWidget ()=default
 
std::string_view getName () const
 
virtual 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::span< const 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
 
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
 
DisplaygetDisplay () const
 

Protected Member Functions

void invalidateLocal () override
 
void paint (OutputSurface &output) override
 
- Protected Member Functions inherited from openmsx::OSDWidget
 OSDWidget (Display &display, TclObject name)
 
void invalidateChildren () const
 
bool needSuppressErrors () const
 

Additional Inherited Members

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

Detailed Description

Definition at line 13 of file OSDTopWidget.hh.

Constructor & Destructor Documentation

◆ OSDTopWidget()

openmsx::OSDTopWidget::OSDTopWidget ( Display display)
explicit

Definition at line 8 of file OSDTopWidget.cc.

References addName().

Member Function Documentation

◆ addName()

void openmsx::OSDTopWidget::addName ( OSDWidget widget)

Definition at line 69 of file OSDTopWidget.cc.

References openmsx::OSDWidget::getName().

Referenced by OSDTopWidget().

◆ findByName() [1/2]

OSDWidget * openmsx::OSDTopWidget::findByName ( std::string_view  name)

Definition at line 58 of file OSDTopWidget.cc.

References end().

Referenced by findByName().

◆ findByName() [2/2]

const OSDWidget * openmsx::OSDTopWidget::findByName ( std::string_view  name) const

Definition at line 64 of file OSDTopWidget.cc.

References findByName().

◆ getAllWidgetNames()

auto openmsx::OSDTopWidget::getAllWidgetNames ( ) const
inline

Definition at line 29 of file OSDTopWidget.hh.

References view::transform().

◆ getSize()

gl::vec2 openmsx::OSDTopWidget::getSize ( const OutputSurface output) const
overridevirtual

Implements openmsx::OSDWidget.

Definition at line 19 of file OSDTopWidget.cc.

References openmsx::OutputSurface::getLogicalSize().

◆ getType()

std::string_view openmsx::OSDTopWidget::getType ( ) const
overridevirtual

Implements openmsx::OSDWidget.

Definition at line 14 of file OSDTopWidget.cc.

◆ invalidateLocal()

void openmsx::OSDTopWidget::invalidateLocal ( )
overrideprotectedvirtual

Implements openmsx::OSDWidget.

Definition at line 34 of file OSDTopWidget.cc.

◆ isRecursiveFading()

bool openmsx::OSDTopWidget::isRecursiveFading ( ) const
overridevirtual

Implements openmsx::OSDWidget.

Definition at line 29 of file OSDTopWidget.cc.

◆ isVisible()

bool openmsx::OSDTopWidget::isVisible ( ) const
overridevirtual

Implements openmsx::OSDWidget.

Definition at line 24 of file OSDTopWidget.cc.

◆ paint()

void openmsx::OSDTopWidget::paint ( OutputSurface output)
overrideprotectedvirtual

Implements openmsx::OSDWidget.

Definition at line 39 of file OSDTopWidget.cc.

◆ queueError()

void openmsx::OSDTopWidget::queueError ( std::string  message)

Definition at line 44 of file OSDTopWidget.cc.

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

◆ removeName()

void openmsx::OSDTopWidget::removeName ( OSDWidget widget)

Definition at line 75 of file OSDTopWidget.cc.

References end(), openmsx::OSDWidget::getName(), and removeName().

Referenced by removeName().

◆ showAllErrors()

void openmsx::OSDTopWidget::showAllErrors ( )

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