yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
color.cc File Reference
#include "color.h"
#include "app/gfx/types/snes_color.h"
#include "app/gfx/types/snes_palette.h"
#include "imgui/imgui.h"
Include dependency graph for color.cc:

Go to the source code of this file.

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::gui
 Graphical User Interface (GUI) components for the application.
 

Functions

ImVec4 yaze::gui::ConvertSnesColorToImVec4 (const gfx::SnesColor &color)
 Convert SnesColor to standard ImVec4 for display.
 
gfx::SnesColor yaze::gui::ConvertImVec4ToSnesColor (const ImVec4 &color)
 Convert standard ImVec4 to SnesColor.
 
IMGUI_API bool yaze::gui::SnesColorButton (absl::string_view id, gfx::SnesColor &color, ImGuiColorEditFlags flags, const ImVec2 &size_arg)
 
IMGUI_API bool yaze::gui::SnesColorEdit4 (absl::string_view label, gfx::SnesColor *color, ImGuiColorEditFlags flags)
 
IMGUI_API bool yaze::gui::InlinePaletteSelector (gfx::SnesPalette &palette, int num_colors=8, int *selected_index=nullptr)
 Small inline palette selector - just color buttons for selection.
 
IMGUI_API absl::Status yaze::gui::InlinePaletteEditor (gfx::SnesPalette &palette, const std::string &title="", ImGuiColorEditFlags flags=0)
 Full inline palette editor with color picker and copy options.
 
IMGUI_API bool yaze::gui::PopupPaletteEditor (const char *popup_id, gfx::SnesPalette &palette, ImGuiColorEditFlags flags=0)
 Popup palette editor - same as inline but in a popup.
 
IMGUI_API bool yaze::gui::DisplayPalette (gfx::SnesPalette &palette, bool loaded)
 
void yaze::gui::SelectablePalettePipeline (uint64_t &palette_id, bool &refresh_graphics, gfx::SnesPalette &palette)
 
absl::Status yaze::gui::DisplayEditablePalette (gfx::SnesPalette &palette, const std::string &title, bool show_color_picker, int colors_per_row, ImGuiColorEditFlags flags)
 
IMGUI_API bool yaze::gui::PaletteColorButton (const char *id, const gfx::SnesColor &color, bool is_selected, bool is_modified, const ImVec2 &size, ImGuiColorEditFlags flags)