benilla-re systems structs docs

CSimpleColorSelect::OnMouseDown

function · ui · orchestration

Address
0x78bf10 · 115 bytes, up to 0x78bf82
Meaning
Starts a wheel or value drag for a press inside either and applies it
Confidence
verified, proof one
Finding
ui/colorselect#dragging

Finding: Dragging in ui: ColorSelect

A press inside the wheel's rectangle starts a wheel drag, inside the strip's a value drag, and the press is applied at once. During a wheel drag each move sets the hue to the angle of the cursor from the wheel's centre, (atan2 + π) in degrees, and the saturation to its distance in half widths and half heights, at most 1; the wheel's corners count. During a value drag the value is the cursor's height in the strip, clamped to 0 to 1. Each move redraws and runs OnColorSelect.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.