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(wxHelpEvent).
22-include("wxe.hrl").
23-export([getOrigin/1,getPosition/1,setOrigin/2,setPosition/2]).
24
25%% inherited exports
26-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
27  resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
28
29-type wxHelpEvent() :: wx:wx_object().
30-include("wx.hrl").
31-type wxHelpEventType() :: 'help' | 'detailed_help'.
32-export_type([wxHelpEvent/0, wxHelp/0, wxHelpEventType/0]).
33%% @hidden
34parent_class(wxEvent) -> true;
35parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
36
37%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxhelpevent.html#wxhelpeventgetorigin">external documentation</a>.
38%%<br /> Res = ?wxHelpEvent_Origin_Unknown | ?wxHelpEvent_Origin_Keyboard | ?wxHelpEvent_Origin_HelpButton
39-spec getOrigin(This) -> wx:wx_enum() when
40	This::wxHelpEvent().
41getOrigin(#wx_ref{type=ThisT}=This) ->
42  ?CLASS(ThisT,wxHelpEvent),
43  wxe_util:queue_cmd(This,?get_env(),?wxHelpEvent_GetOrigin),
44  wxe_util:rec(?wxHelpEvent_GetOrigin).
45
46%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxhelpevent.html#wxhelpeventgetposition">external documentation</a>.
47-spec getPosition(This) -> {X::integer(), Y::integer()} when
48	This::wxHelpEvent().
49getPosition(#wx_ref{type=ThisT}=This) ->
50  ?CLASS(ThisT,wxHelpEvent),
51  wxe_util:queue_cmd(This,?get_env(),?wxHelpEvent_GetPosition),
52  wxe_util:rec(?wxHelpEvent_GetPosition).
53
54%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxhelpevent.html#wxhelpeventsetorigin">external documentation</a>.
55%%<br /> Origin = ?wxHelpEvent_Origin_Unknown | ?wxHelpEvent_Origin_Keyboard | ?wxHelpEvent_Origin_HelpButton
56-spec setOrigin(This, Origin) -> 'ok' when
57	This::wxHelpEvent(), Origin::wx:wx_enum().
58setOrigin(#wx_ref{type=ThisT}=This,Origin)
59 when is_integer(Origin) ->
60  ?CLASS(ThisT,wxHelpEvent),
61  wxe_util:queue_cmd(This,Origin,?get_env(),?wxHelpEvent_SetOrigin).
62
63%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxhelpevent.html#wxhelpeventsetposition">external documentation</a>.
64-spec setPosition(This, Pt) -> 'ok' when
65	This::wxHelpEvent(), Pt::{X::integer(), Y::integer()}.
66setPosition(#wx_ref{type=ThisT}=This,{PtX,PtY} = Pt)
67 when is_integer(PtX),is_integer(PtY) ->
68  ?CLASS(ThisT,wxHelpEvent),
69  wxe_util:queue_cmd(This,Pt,?get_env(),?wxHelpEvent_SetPosition).
70
71 %% From wxEvent
72%% @hidden
73stopPropagation(This) -> wxEvent:stopPropagation(This).
74%% @hidden
75skip(This, Options) -> wxEvent:skip(This, Options).
76%% @hidden
77skip(This) -> wxEvent:skip(This).
78%% @hidden
79shouldPropagate(This) -> wxEvent:shouldPropagate(This).
80%% @hidden
81resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
82%% @hidden
83isCommandEvent(This) -> wxEvent:isCommandEvent(This).
84%% @hidden
85getTimestamp(This) -> wxEvent:getTimestamp(This).
86%% @hidden
87getSkipped(This) -> wxEvent:getSkipped(This).
88%% @hidden
89getId(This) -> wxEvent:getId(This).
90