1%% 2%% %CopyrightBegin% 3%% 4%% Copyright Ericsson AB 2009-2016. 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%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxspinevent.html">wxSpinEvent</a>. 22%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt> 23%% <dd><em>command_spinctrl_updated</em>, <em>spin_up</em>, <em>spin_down</em>, <em>spin</em></dd></dl> 24%% See also the message variant {@link wxEvtHandler:wxSpin(). #wxSpin{}} event record type. 25%% 26%% <p>This class is derived (and can use functions) from: 27%% <br />{@link wxNotifyEvent} 28%% <br />{@link wxCommandEvent} 29%% <br />{@link wxEvent} 30%% </p> 31%% @type wxSpinEvent(). An object reference, The representation is internal 32%% and can be changed without notice. It can't be used for comparsion 33%% stored on disc or distributed for use on other nodes. 34 35-module(wxSpinEvent). 36-include("wxe.hrl"). 37-export([getPosition/1,setPosition/2]). 38 39%% inherited exports 40-export([allow/1,getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1, 41 getSkipped/1,getString/1,getTimestamp/1,isAllowed/1,isChecked/1,isCommandEvent/1, 42 isSelection/1,parent_class/1,resumePropagation/2,setInt/2,setString/2, 43 shouldPropagate/1,skip/1,skip/2,stopPropagation/1,veto/1]). 44 45-export_type([wxSpinEvent/0]). 46%% @hidden 47parent_class(wxNotifyEvent) -> true; 48parent_class(wxCommandEvent) -> true; 49parent_class(wxEvent) -> true; 50parent_class(_Class) -> erlang:error({badtype, ?MODULE}). 51 52-type wxSpinEvent() :: wx:wx_object(). 53%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxspinevent.html#wxspineventgetposition">external documentation</a>. 54-spec getPosition(This) -> integer() when 55 This::wxSpinEvent(). 56getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> 57 ?CLASS(ThisT,wxSpinEvent), 58 wxe_util:call(?wxSpinEvent_GetPosition, 59 <<ThisRef:32/?UI>>). 60 61%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxspinevent.html#wxspineventsetposition">external documentation</a>. 62-spec setPosition(This, Pos) -> 'ok' when 63 This::wxSpinEvent(), Pos::integer(). 64setPosition(#wx_ref{type=ThisT,ref=ThisRef},Pos) 65 when is_integer(Pos) -> 66 ?CLASS(ThisT,wxSpinEvent), 67 wxe_util:cast(?wxSpinEvent_SetPosition, 68 <<ThisRef:32/?UI,Pos:32/?UI>>). 69 70 %% From wxNotifyEvent 71%% @hidden 72veto(This) -> wxNotifyEvent:veto(This). 73%% @hidden 74isAllowed(This) -> wxNotifyEvent:isAllowed(This). 75%% @hidden 76allow(This) -> wxNotifyEvent:allow(This). 77 %% From wxCommandEvent 78%% @hidden 79setString(This,S) -> wxCommandEvent:setString(This,S). 80%% @hidden 81setInt(This,I) -> wxCommandEvent:setInt(This,I). 82%% @hidden 83isSelection(This) -> wxCommandEvent:isSelection(This). 84%% @hidden 85isChecked(This) -> wxCommandEvent:isChecked(This). 86%% @hidden 87getString(This) -> wxCommandEvent:getString(This). 88%% @hidden 89getSelection(This) -> wxCommandEvent:getSelection(This). 90%% @hidden 91getInt(This) -> wxCommandEvent:getInt(This). 92%% @hidden 93getExtraLong(This) -> wxCommandEvent:getExtraLong(This). 94%% @hidden 95getClientData(This) -> wxCommandEvent:getClientData(This). 96 %% From wxEvent 97%% @hidden 98stopPropagation(This) -> wxEvent:stopPropagation(This). 99%% @hidden 100skip(This, Options) -> wxEvent:skip(This, Options). 101%% @hidden 102skip(This) -> wxEvent:skip(This). 103%% @hidden 104shouldPropagate(This) -> wxEvent:shouldPropagate(This). 105%% @hidden 106resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel). 107%% @hidden 108isCommandEvent(This) -> wxEvent:isCommandEvent(This). 109%% @hidden 110getTimestamp(This) -> wxEvent:getTimestamp(This). 111%% @hidden 112getSkipped(This) -> wxEvent:getSkipped(This). 113%% @hidden 114getId(This) -> wxEvent:getId(This). 115