yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gfx::PaletteChangeEvent Struct Reference

Event notification for palette changes. More...

#include <palette_manager.h>

Public Types

enum class  Type {
  kColorChanged , kPaletteReset , kGroupSaved , kGroupDiscarded ,
  kAllSaved , kAllDiscarded
}
 

Public Attributes

Type type
 
std::string group_name
 
int palette_index = -1
 
int color_index = -1
 

Detailed Description

Event notification for palette changes.

Definition at line 37 of file palette_manager.h.

Member Enumeration Documentation

◆ Type

Enumerator
kColorChanged 

Single color was modified.

kPaletteReset 

Entire palette was reset.

kGroupSaved 

Palette group was saved to ROM.

kGroupDiscarded 

Palette group changes were discarded.

kAllSaved 

All changes saved to ROM.

kAllDiscarded 

All changes discarded.

Definition at line 38 of file palette_manager.h.

Member Data Documentation

◆ type

Type yaze::gfx::PaletteChangeEvent::type

Definition at line 47 of file palette_manager.h.

◆ group_name

std::string yaze::gfx::PaletteChangeEvent::group_name

◆ palette_index

int yaze::gfx::PaletteChangeEvent::palette_index = -1

Definition at line 49 of file palette_manager.h.

◆ color_index

int yaze::gfx::PaletteChangeEvent::color_index = -1

Definition at line 50 of file palette_manager.h.


The documentation for this struct was generated from the following file: