yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
ui_helpers.cc File Reference
#include "app/gui/ui_helpers.h"
#include "app/gui/color.h"
#include "app/gui/icons.h"
#include "app/gui/theme_manager.h"
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"

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::GetThemeColor (ImGuiCol idx)
 
ImVec4 yaze::gui::GetSuccessColor ()
 
ImVec4 yaze::gui::GetWarningColor ()
 
ImVec4 yaze::gui::GetErrorColor ()
 
ImVec4 yaze::gui::GetInfoColor ()
 
ImVec4 yaze::gui::GetAccentColor ()
 
ImVec4 yaze::gui::GetEntranceColor ()
 
ImVec4 yaze::gui::GetExitColor ()
 
ImVec4 yaze::gui::GetItemColor ()
 
ImVec4 yaze::gui::GetSpriteColor ()
 
ImVec4 yaze::gui::GetSelectedColor ()
 
ImVec4 yaze::gui::GetLockedColor ()
 
ImVec4 yaze::gui::GetVanillaRomColor ()
 
ImVec4 yaze::gui::GetCustomRomColor ()
 
ImVec4 yaze::gui::GetModifiedColor ()
 
void yaze::gui::BeginField (const char *label, float label_width)
 
void yaze::gui::EndField ()
 
bool yaze::gui::BeginPropertyTable (const char *id, int columns, ImGuiTableFlags extra_flags)
 
void yaze::gui::EndPropertyTable ()
 
void yaze::gui::PropertyRow (const char *label, const char *value)
 
void yaze::gui::PropertyRow (const char *label, int value)
 
void yaze::gui::PropertyRowHex (const char *label, uint8_t value)
 
void yaze::gui::PropertyRowHex (const char *label, uint16_t value)
 
void yaze::gui::SectionHeader (const char *icon, const char *label, const ImVec4 &color)
 
bool yaze::gui::IconButton (const char *icon, const char *label, const ImVec2 &size)
 
bool yaze::gui::ColoredButton (const char *label, ButtonType type, const ImVec2 &size)
 
bool yaze::gui::ToggleIconButton (const char *icon_on, const char *icon_off, bool *state, const char *tooltip)
 
void yaze::gui::HelpMarker (const char *desc)
 
void yaze::gui::SeparatorText (const char *label)
 
void yaze::gui::StatusBadge (const char *text, ButtonType type)
 
void yaze::gui::BeginToolset (const char *id)
 
void yaze::gui::EndToolset ()
 
void yaze::gui::ToolsetButton (const char *icon, bool selected, const char *tooltip, std::function< void()> on_click)
 
void yaze::gui::BeginCanvasContainer (const char *id, bool scrollable)
 
void yaze::gui::EndCanvasContainer ()
 
bool yaze::gui::EditorTabItem (const char *icon, const char *label, bool *p_open)
 
bool yaze::gui::ConfirmationDialog (const char *id, const char *title, const char *message, const char *confirm_text, const char *cancel_text)
 
void yaze::gui::StatusIndicator (const char *label, bool active, const char *tooltip)
 
void yaze::gui::RomVersionBadge (const char *version, bool is_vanilla)
 
void yaze::gui::LockIndicator (bool locked, const char *label)
 
void yaze::gui::VerticalSpacing (float pixels)
 
void yaze::gui::HorizontalSpacing (float pixels)
 
void yaze::gui::CenterText (const char *text)
 
void yaze::gui::RightAlign (float width)
 
float yaze::gui::GetPulseAlpha (float speed)
 
float yaze::gui::GetFadeIn (float duration)
 
void yaze::gui::PushPulseEffect (float speed)
 
void yaze::gui::PopPulseEffect ()
 
void yaze::gui::LoadingSpinner (const char *label, float radius)
 
float yaze::gui::GetResponsiveWidth (float min_width, float max_width, float ratio)
 
void yaze::gui::SetupResponsiveColumns (int count, float min_col_width)
 
void yaze::gui::BeginTwoColumns (const char *id, float split_ratio)
 
void yaze::gui::SwitchColumn ()
 
void yaze::gui::EndTwoColumns ()
 
bool yaze::gui::LabeledInputHex (const char *label, uint8_t *value)
 
bool yaze::gui::LabeledInputHex (const char *label, uint16_t *value)
 
bool yaze::gui::IconCombo (const char *icon, const char *label, int *current, const char *const items[], int count)