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(wxEvent). 22-include("wxe.hrl"). 23-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,resumePropagation/2, 24 shouldPropagate/1,skip/1,skip/2,stopPropagation/1]). 25 26%% inherited exports 27-export([parent_class/1]). 28 29-type wxEvent() :: wx:wx_object(). 30-export_type([wxEvent/0]). 31%% @hidden 32parent_class(_Class) -> erlang:error({badtype, ?MODULE}). 33 34%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxevent.html#wxeventgetid">external documentation</a>. 35-spec getId(This) -> integer() when 36 This::wxEvent(). 37getId(#wx_ref{type=ThisT}=This) -> 38 ?CLASS(ThisT,wxEvent), 39 wxe_util:queue_cmd(This,?get_env(),?wxEvent_GetId), 40 wxe_util:rec(?wxEvent_GetId). 41 42%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxevent.html#wxeventgetskipped">external documentation</a>. 43-spec getSkipped(This) -> boolean() when 44 This::wxEvent(). 45getSkipped(#wx_ref{type=ThisT}=This) -> 46 ?CLASS(ThisT,wxEvent), 47 wxe_util:queue_cmd(This,?get_env(),?wxEvent_GetSkipped), 48 wxe_util:rec(?wxEvent_GetSkipped). 49 50%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxevent.html#wxeventgettimestamp">external documentation</a>. 51-spec getTimestamp(This) -> integer() when 52 This::wxEvent(). 53getTimestamp(#wx_ref{type=ThisT}=This) -> 54 ?CLASS(ThisT,wxEvent), 55 wxe_util:queue_cmd(This,?get_env(),?wxEvent_GetTimestamp), 56 wxe_util:rec(?wxEvent_GetTimestamp). 57 58%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxevent.html#wxeventiscommandevent">external documentation</a>. 59-spec isCommandEvent(This) -> boolean() when 60 This::wxEvent(). 61isCommandEvent(#wx_ref{type=ThisT}=This) -> 62 ?CLASS(ThisT,wxEvent), 63 wxe_util:queue_cmd(This,?get_env(),?wxEvent_IsCommandEvent), 64 wxe_util:rec(?wxEvent_IsCommandEvent). 65 66%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxevent.html#wxeventresumepropagation">external documentation</a>. 67-spec resumePropagation(This, PropagationLevel) -> 'ok' when 68 This::wxEvent(), PropagationLevel::integer(). 69resumePropagation(#wx_ref{type=ThisT}=This,PropagationLevel) 70 when is_integer(PropagationLevel) -> 71 ?CLASS(ThisT,wxEvent), 72 wxe_util:queue_cmd(This,PropagationLevel,?get_env(),?wxEvent_ResumePropagation). 73 74%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxevent.html#wxeventshouldpropagate">external documentation</a>. 75-spec shouldPropagate(This) -> boolean() when 76 This::wxEvent(). 77shouldPropagate(#wx_ref{type=ThisT}=This) -> 78 ?CLASS(ThisT,wxEvent), 79 wxe_util:queue_cmd(This,?get_env(),?wxEvent_ShouldPropagate), 80 wxe_util:rec(?wxEvent_ShouldPropagate). 81 82%% @equiv skip(This, []) 83-spec skip(This) -> 'ok' when 84 This::wxEvent(). 85 86skip(This) 87 when is_record(This, wx_ref) -> 88 skip(This, []). 89 90%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxevent.html#wxeventskip">external documentation</a>. 91-spec skip(This, [Option]) -> 'ok' when 92 This::wxEvent(), 93 Option :: {'skip', boolean()}. 94skip(#wx_ref{type=ThisT}=This, Options) 95 when is_list(Options) -> 96 ?CLASS(ThisT,wxEvent), 97 MOpts = fun({skip, _skip} = Arg) -> Arg; 98 (BadOpt) -> erlang:error({badoption, BadOpt}) end, 99 Opts = lists:map(MOpts, Options), 100 wxe_util:queue_cmd(This, Opts,?get_env(),?wxEvent_Skip). 101 102%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxevent.html#wxeventstoppropagation">external documentation</a>. 103-spec stopPropagation(This) -> integer() when 104 This::wxEvent(). 105stopPropagation(#wx_ref{type=ThisT}=This) -> 106 ?CLASS(ThisT,wxEvent), 107 wxe_util:queue_cmd(This,?get_env(),?wxEvent_StopPropagation), 108 wxe_util:rec(?wxEvent_StopPropagation). 109 110