MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ImGuiMV Namespace Reference

namespace for easy access to functions related to ImGui MultiViewport More...

Functions

MRVIEWER_API void 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
 
MRVIEWER_API ImVec2 GetLocalMousePos ()
 returns the coordinates of the mouse in the main viewport space
 
MRVIEWER_API ImVec2 GetMainViewportShift ()
 returns the shift of the main viewport relative to global coordinates
 
MRVIEWER_API ImVec2 Screen2WindowSpaceImVec2 (const ImVec2 &point)
 convert points from screen space to window space
 
MRVIEWER_API Contour2f Screen2WindowSpaceContour2f (const Contour2f &points)
 
MRVIEWER_API ImVec2 Window2ScreenSpaceImVec2 (const ImVec2 &point)
 convert points from window space to screen space
 
MRVIEWER_API Vector2f Window2ScreenSpaceVector2f (const Vector2f &point)
 

Detailed Description

namespace for easy access to functions related to ImGui MultiViewport

Function Documentation

◆ GetLocalMousePos()

MRVIEWER_API ImVec2 MR::ImGuiMV::GetLocalMousePos ( )

returns the coordinates of the mouse in the main viewport space

◆ GetMainViewportShift()

MRVIEWER_API ImVec2 MR::ImGuiMV::GetMainViewportShift ( )

returns the shift of the main viewport relative to global coordinates

◆ Screen2WindowSpaceContour2f()

MRVIEWER_API Contour2f MR::ImGuiMV::Screen2WindowSpaceContour2f ( const Contour2f & points)

◆ Screen2WindowSpaceImVec2()

MRVIEWER_API ImVec2 MR::ImGuiMV::Screen2WindowSpaceImVec2 ( const ImVec2 & point)

convert points from screen space to window space

◆ SetNextWindowPosMainViewport()

MRVIEWER_API 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

◆ Window2ScreenSpaceImVec2()

MRVIEWER_API ImVec2 MR::ImGuiMV::Window2ScreenSpaceImVec2 ( const ImVec2 & point)

convert points from window space to screen space

◆ Window2ScreenSpaceVector2f()

MRVIEWER_API Vector2f MR::ImGuiMV::Window2ScreenSpaceVector2f ( const Vector2f & point)