Move member variable before functions
This commit is contained in:
parent
5197295368
commit
259c62b01b
@ -36,6 +36,11 @@ class Monitor {
|
|||||||
|
|
||||||
friend BOOL detail::enumMonitorsCallback(HMONITOR, HDC, LPRECT, LPARAM);
|
friend BOOL detail::enumMonitorsCallback(HMONITOR, HDC, LPRECT, LPARAM);
|
||||||
|
|
||||||
|
const HMONITOR m_hMonitor;
|
||||||
|
const PhysicalMonitor m_physicalMonitor;
|
||||||
|
|
||||||
|
std::optional<std::pair<DWORD, DWORD>> m_brightnessRange;
|
||||||
|
|
||||||
Monitor(HMONITOR hMonitor, PHYSICAL_MONITOR physicalMonitor);
|
Monitor(HMONITOR hMonitor, PHYSICAL_MONITOR physicalMonitor);
|
||||||
|
|
||||||
bool hasBrightnessCapability() const;
|
bool hasBrightnessCapability() const;
|
||||||
@ -45,11 +50,6 @@ class Monitor {
|
|||||||
{
|
{
|
||||||
return (value - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
|
return (value - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
|
||||||
}
|
}
|
||||||
|
|
||||||
const HMONITOR m_hMonitor;
|
|
||||||
const PhysicalMonitor m_physicalMonitor;
|
|
||||||
|
|
||||||
std::optional<std::pair<DWORD, DWORD>> m_brightnessRange;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user