6 ex_gui_slider_default_8c example
gullradriel edited this page 2026-10-09 00:55:18 +02:00

ex_gui_slider_default.c

A slider's default, put back by a double click (headless). "Double click a slider to reset it" is a convention every editor has, and every host implemented it again for each slider it remembered, from n_gui_double_clicked_widget(), and forgot a few. n_gui_slider_set_default() gives the slider its default once; the double click then sets it, calls on_change as a drag would, and ends the drag the second press began, so a pointer that moves before the release does not drag the handle away again.