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

Go to the source code of this file.

Classes

struct  yaze::gui::UIConfig
 Centralized UI dimension constants. More...
 
struct  yaze::gui::SizeConstraints
 Returns min/max size pair suitable for ImGui::SetNextWindowSizeConstraints. More...
 

Namespaces

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

Functions

ImVec2 yaze::gui::ViewportRelativeSize (float width_factor, float height_factor)
 Returns an ImVec2 sized as a fraction of the main viewport WorkSize.
 
ImVec2 yaze::gui::DialogSize (float width_factor=0.6f, float height_factor=0.65f)
 Returns a standard dialog size as a fraction of the viewport.
 
SizeConstraints yaze::gui::ConstrainToViewport (ImVec2 min_size, float max_factor=0.95f)
 
ImVec2 yaze::gui::ScaledSize (float base_width, float base_height)
 Returns a DPI-scaled version of a fixed pixel size.
 
ImVec2 yaze::gui::GetContentRegionAvailClamped (const ImVec2 &min_size)
 Returns content region available size clamped to a minimum.