openMSX
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
openmsx::ImGuiPalette Class Referencefinal

#include <ImGuiPalette.hh>

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

Public Member Functions

 ImGuiPalette (ImGuiManager &manager_)
 
zstring_view iniName () const override
 
void save (ImGuiTextBuffer &buf) override
 
void loadLine (std::string_view name, zstring_view value) override
 
void paint (MSXMotherBoard *motherBoard) override
 
std::span< const uint16_t, 16 > getPalette (const VDP *vdp) const
 
- Public Member Functions inherited from openmsx::ImGuiPart
 ImGuiPart (ImGuiManager &manager_)
 
 ~ImGuiPart ()
 
 ImGuiPart (const ImGuiPart &)=delete
 
 ImGuiPart (ImGuiPart &&)=delete
 
ImGuiPartoperator= (const ImGuiPart &)=delete
 
ImGuiPartoperator= (ImGuiPart &&)=delete
 
- Public Member Functions inherited from openmsx::ImGuiPartInterface
virtual void loadStart ()
 
virtual void loadEnd ()
 
virtual void showMenu (MSXMotherBoard *)
 

Static Public Member Functions

static uint32_t toRGBA (uint16_t msxColor)
 

Public Attributes

im::WindowStatus window
 
int whichPalette = PALETTE_VDP
 

Additional Inherited Members

- Protected Attributes inherited from openmsx::ImGuiPart
ImGuiManagermanager
 

Detailed Description

Definition at line 15 of file ImGuiPalette.hh.

Constructor & Destructor Documentation

◆ ImGuiPalette()

openmsx::ImGuiPalette::ImGuiPalette ( ImGuiManager manager_)
explicit

Definition at line 27 of file ImGuiPalette.cc.

Member Function Documentation

◆ getPalette()

std::span< const uint16_t, 16 > openmsx::ImGuiPalette::getPalette ( const VDP vdp) const

◆ iniName()

zstring_view openmsx::ImGuiPalette::iniName ( ) const
inlineoverridevirtual

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 20 of file ImGuiPalette.hh.

◆ loadLine()

void openmsx::ImGuiPalette::loadLine ( std::string_view  name,
zstring_view  value 
)
overridevirtual

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 45 of file ImGuiPalette.cc.

References openmsx::loadOnePersistent(), and StringOp::split_view().

◆ paint()

void openmsx::ImGuiPalette::paint ( MSXMotherBoard motherBoard)
overridevirtual

◆ save()

void openmsx::ImGuiPalette::save ( ImGuiTextBuffer &  buf)
overridevirtual

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 33 of file ImGuiPalette.cc.

References openmsx::savePersistent(), and xrange().

◆ toRGBA()

uint32_t openmsx::ImGuiPalette::toRGBA ( uint16_t  msxColor)
static

Definition at line 74 of file ImGuiPalette.cc.

References g.

Referenced by paint().

Member Data Documentation

◆ whichPalette

int openmsx::ImGuiPalette::whichPalette = PALETTE_VDP

Definition at line 30 of file ImGuiPalette.hh.

Referenced by getPalette(), and paint().

◆ window

im::WindowStatus openmsx::ImGuiPalette::window

Definition at line 29 of file ImGuiPalette.hh.

Referenced by paint().


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