Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PixelUnits.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <PhosphorShaders/phosphorshaders_export.h>
7
8#include <QLatin1String>
9#include <QString>
10#include <QVariantList>
11#include <QVariantMap>
12
13namespace PhosphorShaders {
14
23inline QLatin1String pixelUnit()
24{
25 return QLatin1String("px");
26}
27
60PHOSPHORSHADERS_EXPORT void scalePixelParams(const QVariantList& parameterInfos, QVariantMap& values, double factor);
61
62} // namespace PhosphorShaders
Definition ShaderEffect.h:33
QLatin1String pixelUnit()
The unit a parameter declares when its value is logical pixels of the real surface the shader draws o...
Definition PixelUnits.h:23
PHOSPHORSHADERS_EXPORT void scalePixelParams(const QVariantList &parameterInfos, QVariantMap &values, double factor)
Scale every px-denominated parameter for a host that renders the shader on a surface smaller than the...