#include <palette_editor.h>
Public Member Functions | |
void | RecordChange (const std::string &group_name, size_t palette_index, size_t color_index, const gfx::SnesColor &original_color, const gfx::SnesColor &new_color) |
gfx::SnesColor | RestoreOriginalColor (const std::string &group_name, size_t palette_index, size_t color_index) const |
auto | size () const |
gfx::SnesColor & | GetModifiedColor (size_t index) |
gfx::SnesColor & | GetOriginalColor (size_t index) |
const std::deque< PaletteChange > & | GetRecentChanges () const |
Private Attributes | |
std::deque< PaletteChange > | recent_changes_ |
Static Private Attributes | |
static const size_t | kMaxHistorySize = 50 |
Definition at line 29 of file palette_editor.h.
|
inline |
Definition at line 31 of file palette_editor.h.
References kMaxHistorySize, and recent_changes_.
Referenced by yaze::app::editor::PaletteEditor::HandleColorPopup().
|
inline |
Definition at line 42 of file palette_editor.h.
References recent_changes_.
|
inline |
Definition at line 55 of file palette_editor.h.
References recent_changes_.
Referenced by yaze::app::editor::PaletteEditor::DrawModifiedColors().
|
inline |
Definition at line 57 of file palette_editor.h.
References recent_changes_.
Referenced by yaze::app::editor::PaletteEditor::DrawModifiedColors().
|
inline |
Definition at line 60 of file palette_editor.h.
References recent_changes_.
Referenced by yaze::app::editor::PaletteEditor::DrawModifiedColors().
|
inline |
Definition at line 64 of file palette_editor.h.
References recent_changes_.
|
private |
Definition at line 69 of file palette_editor.h.
Referenced by GetModifiedColor(), GetOriginalColor(), GetRecentChanges(), RecordChange(), RestoreOriginalColor(), and size().
|
staticprivate |
Definition at line 70 of file palette_editor.h.
Referenced by RecordChange().