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
Collaboration diagram for openmsx::ImGuiPalette:
Collaboration graph

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

Detailed Description

Definition at line 15 of file ImGuiPalette.hh.

Constructor & Destructor Documentation

◆ ImGuiPalette()

openmsx::ImGuiPalette::ImGuiPalette ( ImGuiManager manager_)

Definition at line 27 of file

Member Function Documentation

◆ getPalette()

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

Definition at line 93 of file

References openmsx::VDP::getPalette(), and whichPalette.

◆ iniName()

zstring_view openmsx::ImGuiPalette::iniName ( ) const

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 20 of file ImGuiPalette.hh.

◆ loadLine()

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

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 45 of file

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

◆ paint()

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

◆ save()

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

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 33 of file

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

◆ toRGBA()

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

Definition at line 74 of file

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: