1%% 2%% %CopyrightBegin% 3%% 4%% Copyright Ericsson AB 2008-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(wxScrollEvent). 22-include("wxe.hrl"). 23-export([getOrientation/1,getPosition/1]). 24 25%% inherited exports 26-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1, 27 getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1, 28 parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1, 29 skip/1,skip/2,stopPropagation/1]). 30 31-type wxScrollEvent() :: wx:wx_object(). 32-include("wx.hrl"). 33-type wxScrollEventType() :: 'scroll_top' | 'scroll_bottom' | 'scroll_lineup' | 'scroll_linedown' | 'scroll_pageup' | 'scroll_pagedown' | 'scroll_thumbtrack' | 'scroll_thumbrelease' | 'scroll_changed'. 34-export_type([wxScrollEvent/0, wxScroll/0, wxScrollEventType/0]). 35%% @hidden 36parent_class(wxCommandEvent) -> true; 37parent_class(wxEvent) -> true; 38parent_class(_Class) -> erlang:error({badtype, ?MODULE}). 39 40%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxscrollevent.html#wxscrolleventgetorientation">external documentation</a>. 41-spec getOrientation(This) -> integer() when 42 This::wxScrollEvent(). 43getOrientation(#wx_ref{type=ThisT}=This) -> 44 ?CLASS(ThisT,wxScrollEvent), 45 wxe_util:queue_cmd(This,?get_env(),?wxScrollEvent_GetOrientation), 46 wxe_util:rec(?wxScrollEvent_GetOrientation). 47 48%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxscrollevent.html#wxscrolleventgetposition">external documentation</a>. 49-spec getPosition(This) -> integer() when 50 This::wxScrollEvent(). 51getPosition(#wx_ref{type=ThisT}=This) -> 52 ?CLASS(ThisT,wxScrollEvent), 53 wxe_util:queue_cmd(This,?get_env(),?wxScrollEvent_GetPosition), 54 wxe_util:rec(?wxScrollEvent_GetPosition). 55 56 %% From wxCommandEvent 57%% @hidden 58setString(This,String) -> wxCommandEvent:setString(This,String). 59%% @hidden 60setInt(This,IntCommand) -> wxCommandEvent:setInt(This,IntCommand). 61%% @hidden 62isSelection(This) -> wxCommandEvent:isSelection(This). 63%% @hidden 64isChecked(This) -> wxCommandEvent:isChecked(This). 65%% @hidden 66getString(This) -> wxCommandEvent:getString(This). 67%% @hidden 68getSelection(This) -> wxCommandEvent:getSelection(This). 69%% @hidden 70getInt(This) -> wxCommandEvent:getInt(This). 71%% @hidden 72getExtraLong(This) -> wxCommandEvent:getExtraLong(This). 73%% @hidden 74getClientData(This) -> wxCommandEvent:getClientData(This). 75 %% From wxEvent 76%% @hidden 77stopPropagation(This) -> wxEvent:stopPropagation(This). 78%% @hidden 79skip(This, Options) -> wxEvent:skip(This, Options). 80%% @hidden 81skip(This) -> wxEvent:skip(This). 82%% @hidden 83shouldPropagate(This) -> wxEvent:shouldPropagate(This). 84%% @hidden 85resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel). 86%% @hidden 87isCommandEvent(This) -> wxEvent:isCommandEvent(This). 88%% @hidden 89getTimestamp(This) -> wxEvent:getTimestamp(This). 90%% @hidden 91getSkipped(This) -> wxEvent:getSkipped(This). 92%% @hidden 93getId(This) -> wxEvent:getId(This). 94