#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 26 of file palette_editor.h.
|
inline |
Definition at line 28 of file palette_editor.h.
References kMaxHistorySize, and recent_changes_.
Referenced by yaze::app::editor::PaletteEditor::HandleColorPopup().
|
inline |
Definition at line 39 of file palette_editor.h.
References recent_changes_.
|
inline |
Definition at line 52 of file palette_editor.h.
References recent_changes_.
Referenced by yaze::app::editor::PaletteEditor::DrawModifiedColors().
|
inline |
Definition at line 54 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 61 of file palette_editor.h.
References recent_changes_.
|
private |
Definition at line 66 of file palette_editor.h.
Referenced by GetModifiedColor(), GetOriginalColor(), GetRecentChanges(), RecordChange(), RestoreOriginalColor(), and size().
|
staticprivate |
Definition at line 67 of file palette_editor.h.
Referenced by RecordChange().