Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorTiles::ScriptedHelpers Namespace Reference

Classes

struct  CustomParamDef
 Definition of a custom algorithm parameter, declared by a script's metadata.customParams list. More...
 
struct  ScriptMetadata
 Parsed metadata from a scripted algorithm's metadata table. More...
 

Functions

PHOSPHORTILES_EXPORT QVector< QRect > clampZonesToArea (const QVector< QRect > &zones, const QRect &area, const QString &scriptId)
 Clamp zones to the given area, using the full area as a fallback for zones that fall entirely outside it.
 

Function Documentation

◆ clampZonesToArea()

PHOSPHORTILES_EXPORT QVector< QRect > PhosphorTiles::ScriptedHelpers::clampZonesToArea ( const QVector< QRect > &  zones,
const QRect &  area,
const QString &  scriptId 
)

Clamp zones to the given area, using the full area as a fallback for zones that fall entirely outside it.

Engine-agnostic.