SDL Event and UserEvent questions

EDIT:
My goal was to obtain a pointer to the color UInt32 variable of the picker instance (expressed in C with &picker.x). I forgot that – correct me if I’m wrong – crystal struct and class instance vars are not accessible other than by methods. In that context, pointer_of(picker.color) doesn’t make any sense. What could be improved, if anything, would be the compilation error message. Something in the order of can't take address of method picker.color would have helped.

Also, placing the search box at the head of the topics list and filtering the latter by matching search results sections might help flatten the curve a bit. So much more about pointers exists than is found in the one pointer_of section of the topics list.


IGNORE:

I assumed that the return type of picker.color (indirectly created after declaring color a property) would be taken into account by the compiler, as opposed to compilation failing with a not-so-helpful can't take address of picker.color message. That left me on a chase before I saw your helpful answer.