# `wxSpinEvent` [🔗](https://github.com/kikofernandez/otp/blob/kiko/otp/release-gh-action-backup-continuation/OTP-20040/lib/wx/src/gen/wxSpinEvent.erl#L58) This event class is used for the events generated by `m:wxSpinButton` and `m:wxSpinCtrl`. See: * `m:wxSpinButton` * `m:wxSpinCtrl` This class is derived, and can use functions, from: * `m:wxNotifyEvent` * `m:wxCommandEvent` * `m:wxEvent` wxWidgets docs: [wxSpinEvent](https://docs.wxwidgets.org/3.2/classwx_spin_event.html) ## Events Use `wxEvtHandler:connect/3` with `wxSpinEventType` to subscribe to events of this type. # `wxSpin` ```elixir -type wxSpin() :: #wxSpin{type :: wxSpinEvent:wxSpinEventType(), commandInt :: integer()}. ``` # `wxSpinEvent` ```elixir -type wxSpinEvent() :: wx:wx_object(). ``` # `wxSpinEventType` ```elixir -type wxSpinEventType() :: command_spinctrl_updated | spin_up | spin_down | spin. ``` # `getPosition` ```elixir -spec getPosition(This) -> integer() when This :: wxSpinEvent(). ``` Retrieve the current spin button or control value. # `setPosition` ```elixir -spec setPosition(This, Pos) -> ok when This :: wxSpinEvent(), Pos :: integer(). ``` Set the value associated with the event. --- *Consult [api-reference.md](api-reference.md) for complete listing*