// Warning: the validity of monitor DPI information on Windows depends on the application DPI awareness settings, which generally needs to be set in the manifest or at runtime.
// Warning: the validity of monitor DPI information on Windows depends on the application DPI awareness settings, which generally needs to be set in the manifest or at runtime.
IM_ASSERT(mon.FullMin.x<mon.FullMax.x&&mon.FullMin.y<mon.FullMax.y&&"Monitor bounds not setup properly.");
IM_ASSERT(mon.WorkMin.x<mon.WorkMax.x&&mon.WorkMin.y<mon.WorkMax.y&&"Monitor bounds not setup properly. If you don't have work area information, just copy Min/Max into them.");
ImGui::BulletText("Monitor #%d: DPI %.0f%%, Min (%.0f,%.0f), Max (%.0f,%.0f), Size (%.0f,%.0f)",i,mon.DpiScale*100.0f,mon.Pos.x,mon.Pos.y,mon.Pos.x+mon.Size.x,mon.Pos.y+mon.Size.y,mon.Size.x,mon.Size.y);
// Dear ImGui only uses this to clamp the position of popups and tooltips so they don't straddle multiple monitors
structImGuiPlatformMonitor
{
ImVec2Pos;
ImVec2Size;
ImVec2FullMin,FullMax;// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
ImVec2WorkMin,WorkMax;// (Optional) Coordinates without task bars / side bars / menu bars. imgui uses this to avoid positioning popups/tooltips inside this region.