Method Draw
- Namespace
- OpenEphys.EphysVisualization.Design
- Assembly
- OpenEphys.EphysVisualization.Design.dll
Draw(string, IReadOnlyList<uint>, float, float, ref float, ref float, float, float, string, string?, string?)
Draws the control and handles handle-drag interaction. Must be called once per frame.
public static bool Draw(string id, IReadOnlyList<uint> colormap, float domainMin, float domainMax, ref float rangeMin, ref float rangeMax, float width = -1, float height = -1, string valueFormat = "F1", string? minHandleTooltip = null, string? maxHandleTooltip = 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).
rangeMinfloatCurrent lower handle value; clamped into [domainMin, rangeMax].
rangeMaxfloatCurrent upper handle value; clamped into [rangeMin, 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.
minHandleTooltipstringTooltip shown while hovering the min handle, or null.
maxHandleTooltipstringTooltip shown while hovering the max handle, or null.
Returns
- bool
True if
rangeMinorrangeMaxchanged this frame.