Table of Contents

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

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).

rangeMin float

Current lower handle value; clamped into [domainMin, rangeMax].

rangeMax float

Current upper handle value; clamped into [rangeMin, 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.

minHandleTooltip string

Tooltip shown while hovering the min handle, or null.

maxHandleTooltip string

Tooltip shown while hovering the max handle, or null.

Returns

bool

True if rangeMin or rangeMax changed this frame.