MeshLib C++ Docs
Loading...
Searching...
No Matches
MRImGuiMultiViewport.h File Reference
#include "exports.h"
#include "MRImGui.h"
#include "MRImGuiVectorOperators.h"
#include "MRMesh/MRMeshFwd.h"

Go to the source code of this file.

Namespaces

namespace  MR
 only for bindings generation
namespace  MR::ImGuiMV
 namespace for easy access to functions related to ImGui MultiViewport

Functions

void MR::ImGuiMV::SetNextWindowPosMainViewport (const ImVec2 &pos, ImGuiCond cond=0, const ImVec2 &pivot=ImVec2(0, 0))
 attaches the next window to the viewport of the main window and sets the position relative to it
ImVec2 MR::ImGuiMV::GetLocalMousePos ()
 returns the coordinates of the mouse in the main viewport space
ImVec2 MR::ImGuiMV::GetMainViewportShift ()
 returns the shift of the main viewport relative to global coordinates
ImVec2 MR::ImGuiMV::Screen2WindowSpaceImVec2 (const ImVec2 &point)
 convert points from screen space to window space
Contour2f MR::ImGuiMV::Screen2WindowSpaceContour2f (const Contour2f &points)
ImVec2 MR::ImGuiMV::Window2ScreenSpaceImVec2 (const ImVec2 &point)
 convert points from window space to screen space
Vector2f MR::ImGuiMV::Window2ScreenSpaceVector2f (const Vector2f &point)