yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
themed_widgets.h File Reference
#include <functional>
#include <string>
#include "app/gui/core/ui_config.h"
#include "imgui/imgui.h"
Include dependency graph for themed_widgets.h:

Go to the source code of this file.

Namespaces

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

Functions

ImVec2 yaze::gui::IconSize::Small ()
 
ImVec2 yaze::gui::IconSize::Medium ()
 
ImVec2 yaze::gui::IconSize::Large ()
 
ImVec2 yaze::gui::IconSize::Toolbar ()
 
ImVec2 yaze::gui::IconSize::ActivityBar ()
 
bool yaze::gui::RippleButton (const char *label, const ImVec2 &size=ImVec2(0, 0), const ImVec4 &ripple_color=ImVec4(1.0f, 1.0f, 1.0f, 0.3f), const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a button with animated click ripple effect.
 
bool yaze::gui::BouncyButton (const char *label, const ImVec2 &size=ImVec2(0, 0), const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a bouncy animated button that scales on press.
 
bool yaze::gui::ThemedIconButton (const char *icon, const char *tooltip=nullptr, const ImVec2 &size=ImVec2(0, 0), bool is_active=false, bool is_disabled=false, const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a standard icon button with theme-aware colors.
 
bool yaze::gui::TransparentIconButton (const char *icon, const ImVec2 &size, const char *tooltip=nullptr, bool is_active=false, const ImVec4 &active_color=ImVec4(0, 0, 0, 0), const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a transparent icon button (hover effect only).
 
bool yaze::gui::ThemedButton (const char *label, const ImVec2 &size=ImVec2(0, 0), const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a standard text button with theme colors.
 
bool yaze::gui::PrimaryButton (const char *label, const ImVec2 &size=ImVec2(0, 0), const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a primary action button (accented color).
 
bool yaze::gui::DangerButton (const char *label, const ImVec2 &size=ImVec2(0, 0), const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a danger action button (error color).
 
bool yaze::gui::SuccessButton (const char *label, const ImVec2 &size=ImVec2(0, 0), const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a success action button (green color).
 
bool yaze::gui::ToolbarIconButton (const char *icon, const char *tooltip=nullptr, bool is_active=false)
 Convenience wrapper for toolbar-sized icon buttons.
 
bool yaze::gui::InlineIconButton (const char *icon, const char *tooltip=nullptr, bool is_active=false)
 Convenience wrapper for small inline icon buttons.
 
void yaze::gui::SectionHeader (const char *label)
 Draw a section header.
 
bool yaze::gui::BeginThemedTabBar (const char *id, ImGuiTabBarFlags flags=0)
 A stylized tab bar with "Mission Control" branding.
 
void yaze::gui::EndThemedTabBar ()
 
void yaze::gui::ValueChangeFlash (bool changed, const char *id)
 Provide visual "flash" feedback when a value changes.
 
void yaze::gui::DrawCanvasHUD (const char *label, const ImVec2 &pos, const ImVec2 &size, std::function< void()> draw_content)
 Draw a stylized Heads-Up Display (HUD) for canvas status.
 
bool yaze::gui::PaletteColorButton (const char *id, const struct SnesColor &color, bool is_selected, bool is_modified, const ImVec2 &size, const char *panel_id=nullptr, const char *anim_id=nullptr)
 Draw a palette color button.
 
void yaze::gui::PanelHeader (const char *title, const char *icon=nullptr, bool *p_open=nullptr, const char *panel_id=nullptr)
 Draw a panel header with consistent styling.
 
void yaze::gui::ThemedTooltip (const char *text)
 Draw a tooltip with theme-aware background and borders.