1%%
2%% %CopyrightBegin%
3%%
4%% Copyright Ericsson AB 2009-2020. All Rights Reserved.
5%%
6%% Licensed under the Apache License, Version 2.0 (the "License");
7%% you may not use this file except in compliance with the License.
8%% You may obtain a copy of the License at
9%%
10%%     http://www.apache.org/licenses/LICENSE-2.0
11%%
12%% Unless required by applicable law or agreed to in writing, software
13%% distributed under the License is distributed on an "AS IS" BASIS,
14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15%% See the License for the specific language governing permissions and
16%% limitations under the License.
17%%
18%% %CopyrightEnd%
19%% This file is generated DO NOT EDIT
20
21-module(wxSpinEvent).
22-include("wxe.hrl").
23-export([getPosition/1,setPosition/2]).
24
25%% inherited exports
26-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,
27  getSkipped/1,getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1,
28  isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2,
29  shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]).
30
31-type wxSpinEvent() :: wx:wx_object().
32-include("wx.hrl").
33-type wxSpinEventType() :: 'command_spinctrl_updated' | 'spin_up' | 'spin_down' | 'spin'.
34-export_type([wxSpinEvent/0, wxSpin/0, wxSpinEventType/0]).
35%% @hidden
36parent_class(wxNotifyEvent) -> true;
37parent_class(wxCommandEvent) -> true;
38parent_class(wxEvent) -> true;
39parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
40
41%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxspinevent.html#wxspineventgetposition">external documentation</a>.
42-spec getPosition(This) -> integer() when
43	This::wxSpinEvent().
44getPosition(#wx_ref{type=ThisT}=This) ->
45  ?CLASS(ThisT,wxSpinEvent),
46  wxe_util:queue_cmd(This,?get_env(),?wxSpinEvent_GetPosition),
47  wxe_util:rec(?wxSpinEvent_GetPosition).
48
49%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxspinevent.html#wxspineventsetposition">external documentation</a>.
50-spec setPosition(This, Pos) -> 'ok' when
51	This::wxSpinEvent(), Pos::integer().
52setPosition(#wx_ref{type=ThisT}=This,Pos)
53 when is_integer(Pos) ->
54  ?CLASS(ThisT,wxSpinEvent),
55  wxe_util:queue_cmd(This,Pos,?get_env(),?wxSpinEvent_SetPosition).
56
57 %% From wxNotifyEvent
58%% @hidden
59veto(This) -> wxNotifyEvent:veto(This).
60%% @hidden
61isAllowed(This) -> wxNotifyEvent:isAllowed(This).
62%% @hidden
63allow(This) -> wxNotifyEvent:allow(This).
64 %% From wxCommandEvent
65%% @hidden
66setString(This,String) -> wxCommandEvent:setString(This,String).
67%% @hidden
68setInt(This,IntCommand) -> wxCommandEvent:setInt(This,IntCommand).
69%% @hidden
70isSelection(This) -> wxCommandEvent:isSelection(This).
71%% @hidden
72isChecked(This) -> wxCommandEvent:isChecked(This).
73%% @hidden
74getString(This) -> wxCommandEvent:getString(This).
75%% @hidden
76getSelection(This) -> wxCommandEvent:getSelection(This).
77%% @hidden
78getInt(This) -> wxCommandEvent:getInt(This).
79%% @hidden
80getExtraLong(This) -> wxCommandEvent:getExtraLong(This).
81%% @hidden
82getClientData(This) -> wxCommandEvent:getClientData(This).
83 %% From wxEvent
84%% @hidden
85stopPropagation(This) -> wxEvent:stopPropagation(This).
86%% @hidden
87skip(This, Options) -> wxEvent:skip(This, Options).
88%% @hidden
89skip(This) -> wxEvent:skip(This).
90%% @hidden
91shouldPropagate(This) -> wxEvent:shouldPropagate(This).
92%% @hidden
93resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
94%% @hidden
95isCommandEvent(This) -> wxEvent:isCommandEvent(This).
96%% @hidden
97getTimestamp(This) -> wxEvent:getTimestamp(This).
98%% @hidden
99getSkipped(This) -> wxEvent:getSkipped(This).
100%% @hidden
101getId(This) -> wxEvent:getId(This).
102