benilla-re systems structs docs

CSimpleColorSelect::OnMouseMove

function · ui · primitive

Address
0x78bd80 · 394 bytes, up to 0x78bf09
Meaning
Sets hue and saturation, or value, from the cursor while dragging
Confidence
verified, proof one
Finding
ui/colorselect#dragging
Test
ui::geo_78bd80

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 3

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