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)
 
string_view getType () const override
 
gl::vec2 getSize (const OutputSurface &output) const override
 
void queueError (std::string message)
 
void showAllErrors ()
 
OSDWidgetfindByName (string_view name)
 
const OSDWidgetfindByName (string_view name) const
 
void addName (OSDWidget &widget)
 
void removeName (OSDWidget &widget)
 
std::vector< string_viewgetAllWidgetNames () const
 
- Public Member Functions inherited from openmsx::OSDWidget
virtual ~OSDWidget ()=default
 
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< string_viewgetProperties () const
 
virtual void setProperty (Interpreter &interp, string_view name, const TclObject &value)
 
virtual void getProperty (string_view name, TclObject &result) const
 
virtual float getRecursiveFadeValue () const
 
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)
 
DisplaygetDisplay () const
 

Protected Member Functions

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

Detailed Description

Definition at line 13 of file OSDTopWidget.hh.

Constructor & Destructor Documentation

◆ OSDTopWidget()

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

Definition at line 9 of file OSDTopWidget.cc.

References addName().

Member Function Documentation

◆ addName()

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

Definition at line 65 of file OSDTopWidget.cc.

References openmsx::OSDWidget::getName().

Referenced by OSDTopWidget().

◆ findByName() [1/2]

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

Definition at line 54 of file OSDTopWidget.cc.

References end().

Referenced by findByName().

◆ findByName() [2/2]

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

Definition at line 60 of file OSDTopWidget.cc.

References findByName().

◆ getAllWidgetNames()

std::vector< string_view > openmsx::OSDTopWidget::getAllWidgetNames ( ) const

Definition at line 81 of file OSDTopWidget.cc.

References to_vector(), and view::transform().

◆ getSize()

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

Implements openmsx::OSDWidget.

Definition at line 20 of file OSDTopWidget.cc.

References openmsx::OutputSurface::getLogicalSize().

◆ getType()

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

Implements openmsx::OSDWidget.

Definition at line 15 of file OSDTopWidget.cc.

◆ invalidateLocal()

void openmsx::OSDTopWidget::invalidateLocal ( )
overrideprotectedvirtual

Implements openmsx::OSDWidget.

Definition at line 25 of file OSDTopWidget.cc.

◆ paintGL()

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

Implements openmsx::OSDWidget.

Definition at line 35 of file OSDTopWidget.cc.

◆ paintSDL()

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

Implements openmsx::OSDWidget.

Definition at line 30 of file OSDTopWidget.cc.

◆ queueError()

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

Definition at line 40 of file OSDTopWidget.cc.

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

◆ removeName()

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

Definition at line 71 of file OSDTopWidget.cc.

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

◆ showAllErrors()

void openmsx::OSDTopWidget::showAllErrors ( )

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