CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
CaptureMoment::UI::Display Namespace Reference

Namespace containing Qt-specific UI components for CaptureMoment. More...

Classes

struct  DisplayConfig
 Compile-time configuration constants for display management. More...
 
class  DisplayManager
 Central manager for image display, zoom, pan, and viewport coordination. More...
 
struct  ScreenInfo
 Physical screen characteristics. More...
 
struct  ViewportCalculation
 Result of viewport calculation for an image. More...
 
class  ViewportManager
 Manages viewport calculations for optimal display across all screen types. More...
 
struct  ViewportState
 Current viewport state for zoom/pan operations. More...
 

Functions

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

Detailed Description

Namespace containing Qt-specific UI components for CaptureMoment.

  • This namespace includes classes responsible for rendering and UI integration using Qt Quick and the Qt Rendering Hardware Interface (QRhi).

Function Documentation

◆ calculateTextureMemoryMB()

size_t CaptureMoment::UI::Display::calculateTextureMemoryMB ( const QSize & size,
int bytes_per_pixel = 4 )
inlinenoexcept

Calculates texture memory usage in megabytes.

Parameters
sizeThe texture size in pixels.
bytes_per_pixelBytes per pixel (default 4 for RGBA8).
Returns
Memory usage in megabytes (MB).

Definition at line 142 of file viewport_config.h.

Referenced by CaptureMoment::UI::Display::ViewportManager::calculateDisplay().

◆ determinePlafond()

int CaptureMoment::UI::Display::determinePlafond ( int screen_physical_width,
int screen_physical_height )
inlinenoexcept

Determines the plafond based on physical screen size.

Parameters
screen_physical_widthPhysical screen width in pixels.
screen_physical_heightPhysical screen height in pixels.
Returns
The appropriate plafond (plafondSmallScreen or plafondLargeScreen).

Definition at line 160 of file viewport_config.h.

References CaptureMoment::UI::Display::DisplayConfig::largeScreenThreshold(), CaptureMoment::UI::Display::DisplayConfig::plafondLargeScreen(), and CaptureMoment::UI::Display::DisplayConfig::plafondSmallScreen().

Referenced by CaptureMoment::UI::Display::ViewportManager::initialize().

CaptureMoment — footer