CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
viewport_config.h File Reference

Configuration constants and helper functions for viewport management. More...

#include <QSize>
#include <QtGlobal>
#include <algorithm>
+ Include dependency graph for viewport_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CaptureMoment::UI::Display::DisplayConfig
 Compile-time configuration constants for display management. More...
 

Namespaces

namespace  CaptureMoment
 
namespace  CaptureMoment::UI
 
namespace  CaptureMoment::UI::Display
 Namespace containing Qt-specific UI components for CaptureMoment.
 

Functions

size_t CaptureMoment::UI::Display::calculateTextureMemoryMB (const QSize &size, int bytes_per_pixel=4) noexcept
 Calculates texture memory usage in megabytes.
 
int CaptureMoment::UI::Display::determinePlafond (int screen_physical_width, int screen_physical_height) noexcept
 Determines the plafond based on physical screen size.
 

Detailed Description

Configuration constants and helper functions for viewport management.

Author
CaptureMoment Team
Date
2026

This file provides screen-based limits and quality settings for optimal display across all screen types. The configuration is based on physical screen characteristics, not device categories.

Definition in file viewport_config.h.

CaptureMoment — footer