MeshLib C++ Docs
Loading...
Searching...
No Matches
MRImGuiMultiViewport.h
Go to the documentation of this file.
1#pragma once
2#include "exports.h"
3#include "MRImGui.h"
5#include "MRMesh/MRMeshFwd.h"
6
7// namespace for easy access to functions related to ImGui MultiViewport
8namespace MR::ImGuiMV
9{
10
11// attaches the next window to the viewport of the main window and sets the position relative to it
12MRVIEWER_API void SetNextWindowPosMainViewport( const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivot = ImVec2( 0, 0 ) );
13
14// returns the coordinates of the mouse in the main viewport space
15MRVIEWER_API ImVec2 GetLocalMousePos();
16
17// returns the shift of the main viewport relative to global coordinates
18MRVIEWER_API ImVec2 GetMainViewportShift();
19
20// convert points from screen space to window space
21MRVIEWER_API ImVec2 Screen2WindowSpaceImVec2( const ImVec2& point );
22MRVIEWER_API Contour2f Screen2WindowSpaceContour2f( const Contour2f& points );
23// convert points from window space to screen space
24MRVIEWER_API ImVec2 Window2ScreenSpaceImVec2( const ImVec2& point );
25MRVIEWER_API Vector2f Window2ScreenSpaceVector2f( const Vector2f& point );
26}
Definition MRImGuiMultiViewport.h:9
MRVIEWER_API ImVec2 GetLocalMousePos()
MRVIEWER_API void SetNextWindowPosMainViewport(const ImVec2 &pos, ImGuiCond cond=0, const ImVec2 &pivot=ImVec2(0, 0))
MRVIEWER_API ImVec2 Window2ScreenSpaceImVec2(const ImVec2 &point)
MRVIEWER_API Contour2f Screen2WindowSpaceContour2f(const Contour2f &points)
MRVIEWER_API ImVec2 Screen2WindowSpaceImVec2(const ImVec2 &point)
MRVIEWER_API Vector2f Window2ScreenSpaceVector2f(const Vector2f &point)
MRVIEWER_API ImVec2 GetMainViewportShift()
Contour2< float > Contour2f
Definition MRMeshFwd.h:377