MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPositionedText.h
Go to the documentation of this file.
1#pragma once
2#include "MRPch/MRBindingMacros.h"
3#include "MRVector3.h"
4#include <string>
5
6namespace MR
7{
8
9struct PositionedText
10{
11 PositionedText() = default;
12 PositionedText( const std::string& text, const Vector3f& position ) : text{text}, position{position}{}
13
14 std::string text;
15 Vector3f position;
16
17 bool operator==( const PositionedText& ) const = default;
18};
19
20using MeshLabel [[deprecated]] MR_BIND_IGNORE = PositionedText;
21
22}
unsafe PositionedText()
MRVIEWER_API std::optional< TextResult > text(Element elem, const Params &params, ImVec2 pos, const Text &text, const TextParams &textParams={}, ImVec2 push={}, ImVec2 pivot={ 0.5f, 0.5f })
Definition MRCameraOrientationPlugin.h:8
ImVec2 position(const ViewportRectangle &rect)
Definition MRViewport.h:24