yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
adaptive_sheet_layout.h File Reference
#include <algorithm>
#include <cmath>
#include <string_view>
Include dependency graph for adaptive_sheet_layout.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yaze::gui::AdaptiveSheetLayout
 
struct  yaze::gui::AdaptiveSheetGridLayout
 

Namespaces

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

Enumerations

enum class  yaze::gui::AdaptiveSheetScaleMode { yaze::gui::kFit , yaze::gui::k1x , yaze::gui::k2x , yaze::gui::k4x }
 

Functions

std::string_view yaze::gui::AdaptiveSheetScaleModeLabel (AdaptiveSheetScaleMode mode)
 
float yaze::gui::AdaptiveSheetFixedScale (AdaptiveSheetScaleMode mode)
 
AdaptiveSheetLayout yaze::gui::ResolveAdaptiveSheetLayout (float available_width, int source_width, int source_height, AdaptiveSheetScaleMode mode=AdaptiveSheetScaleMode::kFit, float min_scale=0.35f, float max_scale=4.0f, float horizontal_chrome=24.0f)
 
AdaptiveSheetGridLayout yaze::gui::ResolveAdaptiveSheetGridLayout (float available_width, int source_item_width, int source_item_height, int item_count, int preferred_columns=2, AdaptiveSheetScaleMode mode=AdaptiveSheetScaleMode::kFit, float min_scale=0.35f, float max_scale=4.0f, float gap=4.0f, float horizontal_chrome=24.0f)