|
CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
|
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. | |
Namespace containing Qt-specific UI components for CaptureMoment.
|
inlinenoexcept |
Calculates texture memory usage in megabytes.
| size | The texture size in pixels. |
| bytes_per_pixel | Bytes per pixel (default 4 for RGBA8). |
Definition at line 142 of file viewport_config.h.
Referenced by CaptureMoment::UI::Display::ViewportManager::calculateDisplay().
|
inlinenoexcept |
Determines the plafond based on physical screen size.
| screen_physical_width | Physical screen width in pixels. |
| screen_physical_height | Physical screen height in pixels. |
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().