Method DrawFloor
- Namespace
- OpenEphys.EphysVisualization.Design
- Assembly
- OpenEphys.EphysVisualization.Design.dll
DrawFloor(string, IReadOnlyList<uint>, float, float, ref float, float, float, string, string?)
Draws the control with only its lower handle, the colormap's top held at the bar's right edge. Must be called once per frame.
public static bool DrawFloor(string id, IReadOnlyList<uint> colormap, float domainMin, float domainMax, ref float rangeMin, float width = -1, float height = -1, string valueFormat = "F1", string? tooltip = null)
Parameters
idstringUnique ID for this control's interactive elements.
colormapIReadOnlyList<uint>The colormap as a packed-ABGR lookup table, from its low end to its high end.
domainMinfloatFixed lower bound of the axis (left edge of the bar).
domainMaxfloatFixed upper bound of the axis (right edge of the bar), where the colormap ends.
rangeMinfloatCurrent handle value; clamped into [domainMin, domainMax].
widthfloatBar width in pixels, or -1 to use the available content region width.
heightfloatBar height in pixels, or -1 to use the default ImGui frame height.
valueFormatstring.NET numeric format string used for all labels.
tooltipstringTooltip shown while hovering the handle, or null.
Returns
- bool
True if
rangeMinchanged this frame.