#include <MRImGuiMeasurementIndicators.h>
◆ Params()
| MRVIEWER_API MR::ImGuiMeasurementIndicators::Params::Params |
( |
| ) |
|
]
This picks the colors based on the current color theme.
◆ arrowHalfWidth
| float MR::ImGuiMeasurementIndicators::Params::arrowHalfWidth = 4 |
◆ arrowLen
| float MR::ImGuiMeasurementIndicators::Params::arrowLen = 12 |
◆ arrowTipBackwardOffset
| float MR::ImGuiMeasurementIndicators::Params::arrowTipBackwardOffset = 2.5f |
The arrow tip is moved back for this amount of pixels, to compensate for the outline that otherwise makes the tip look longer than it actually is. This only applies if the tip doesn't continue into a line.
◆ clickableLabelLineWidth
| float MR::ImGuiMeasurementIndicators::Params::clickableLabelLineWidth = 1.f |
◆ clickableLabelLineWidthSelected
| float MR::ImGuiMeasurementIndicators::Params::clickableLabelLineWidthSelected = 2.f |
◆ clickableLabelOutlineWidth
| float MR::ImGuiMeasurementIndicators::Params::clickableLabelOutlineWidth = 1.f |
◆ colorMain
| Color MR::ImGuiMeasurementIndicators::Params::colorMain |
◆ colorOutline
| Color MR::ImGuiMeasurementIndicators::Params::colorOutline |
◆ colorText
| Color MR::ImGuiMeasurementIndicators::Params::colorText |
◆ colorTextOutline
| Color MR::ImGuiMeasurementIndicators::Params::colorTextOutline |
◆ colorTextOutlineActive
| Color MR::ImGuiMeasurementIndicators::Params::colorTextOutlineActive |
◆ colorTextOutlineHovered
| Color MR::ImGuiMeasurementIndicators::Params::colorTextOutlineHovered |
◆ invertedOverhang
| float MR::ImGuiMeasurementIndicators::Params::invertedOverhang = 24 |
When drawing inverted (short) distances, the line is extended by this amount on both sides.
◆ leaderLineLen
| float MR::ImGuiMeasurementIndicators::Params::leaderLineLen = 20 |
The length of the leader lines (short lines attaching text to other things).
◆ list
| ImDrawList* MR::ImGuiMeasurementIndicators::Params::list = ImGui::GetBackgroundDrawList() |
◆ notchHalfLen
| float MR::ImGuiMeasurementIndicators::Params::notchHalfLen = 8 |
A small perpendicular line at the end of some arrows.
◆ outlineWidth
| float MR::ImGuiMeasurementIndicators::Params::outlineWidth = 1.5f |
◆ pointDiameter
| float MR::ImGuiMeasurementIndicators::Params::pointDiameter = 6 |
◆ smallWidth
| float MR::ImGuiMeasurementIndicators::Params::smallWidth = 0.75f |
◆ stippleDashed
| Stipple MR::ImGuiMeasurementIndicators::Params::stippleDashed |
We don't use those directly, but you can pass them to LineParams::stipple if you want: [
◆ textOutlineRounding
| float MR::ImGuiMeasurementIndicators::Params::textOutlineRounding = 3.f |
◆ textOutlineWidth
| float MR::ImGuiMeasurementIndicators::Params::textOutlineWidth = 4.f |
◆ textToLineSpacingA
| ImVec2 MR::ImGuiMeasurementIndicators::Params::textToLineSpacingA = ImVec2( 0, 0 ) |
The spacing box around the text is extended by this amount.
◆ textToLineSpacingB
| ImVec2 MR::ImGuiMeasurementIndicators::Params::textToLineSpacingB = ImVec2( 0, 0 ) |
◆ textToLineSpacingRadius
| float MR::ImGuiMeasurementIndicators::Params::textToLineSpacingRadius = 8 |
Further, the lines around the text are shortened by this amount.
Bottom-right corner.
◆ totalLenThreshold
| float MR::ImGuiMeasurementIndicators::Params::totalLenThreshold = 48 |
For a distance, when the total length is less than this, an alternative rendering method is used. If the text is added, its size can make the actual threshold larger.
◆ width
| float MR::ImGuiMeasurementIndicators::Params::width = 1.5f |
The documentation for this struct was generated from the following file: