Table of Contents

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

id string

Unique ID for this control's interactive elements.

colormap IReadOnlyList<uint>

The colormap as a packed-ABGR lookup table, from its low end to its high end.

domainMin float

Fixed lower bound of the axis (left edge of the bar).

domainMax float

Fixed upper bound of the axis (right edge of the bar), where the colormap ends.

rangeMin float

Current handle value; clamped into [domainMin, domainMax].

width float

Bar width in pixels, or -1 to use the available content region width.

height float

Bar height in pixels, or -1 to use the default ImGui frame height.

valueFormat string

.NET numeric format string used for all labels.

tooltip string

Tooltip shown while hovering the handle, or null.

Returns

bool

True if rangeMin changed this frame.