Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
GuiGeometry.cpp File Reference
#include "GuiGeometry.h"
#include "utils/AspectRatioVocabulary.h"
#include <algorithm>
#include <cmath>

Namespaces

namespace  KODI
 
namespace  KODI::WINDOWING
 

Functions

CRect KODI::WINDOWING::ComputeRasterRect (const RESOLUTION_INFO &info, float rasterAspect)
 The largest rectangle of rasterAspect centred in the calibrated area, or the whole display when rasterAspect is zero or below.
 
CRect KODI::WINDOWING::ComputeViewWindow (const RESOLUTION_INFO &info, float rasterAspect)
 The calibrated area the picture is placed in, bounded by the raster when rasterAspect is above zero.
 
CRect KODI::WINDOWING::ComputeGuiRect (const RESOLUTION_INFO &skinRes, const RESOLUTION_INFO &info, float rasterAspect, const CRect &guiContentRect, bool keepShape, float zoomFraction, float &scaleX, float &scaleY)
 The rectangle the interface occupies, and in scaleX and scaleY the skin-to-screen scale that puts it there.
 
CRect KODI::WINDOWING::ComputeClipBounds (const CRect &display, const CRect &raster, const CRect &heldRect)
 The display, bounded by the raster and by heldRect, which is empty for no hold.
 
float KODI::WINDOWING::ComputeRasterAspectInForce (float stated, bool screenTool)
 The stated shape, or none while a screen tool is on screen.
 
bool KODI::WINDOWING::ComputeGuiKeepShape (bool hold, bool fullScreenVideo, bool screenTool)
 Whether the hold is in force: asked for, with no fullscreen video and no screen tool.