Plasma Engine  2.0
Loading...
Searching...
No Matches
WidgetUtils.h
1#pragma once
2
3#include <GuiFoundation/GuiFoundationDLL.h>
4
5class QRectF;
6class QScreen;
7
8namespace plWidgetUtils
9{
12 PL_GUIFOUNDATION_DLL QScreen& GetClosestScreen(const QPoint& point);
13
14 PL_GUIFOUNDATION_DLL void AdjustGridDensity(
15 double& ref_fFinestDensity, double& ref_fRoughDensity, plUInt32 uiWindowWidth, double fViewportSceneWidth, plUInt32 uiMinPixelsForStep);
16
17 PL_GUIFOUNDATION_DLL void ComputeGridExtentsX(const QRectF& viewportSceneRect, double fGridStops, double& out_fMinX, double& out_fMaxX);
18
19 PL_GUIFOUNDATION_DLL void ComputeGridExtentsY(const QRectF& viewportSceneRect, double fGridStops, double& out_fMinY, double& out_fMaxY);
20} // namespace plWidgetUtils