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(wxContextMenuEvent).
22-include("wxe.hrl").
23-export([getPosition/1,setPosition/2]).
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 wxContextMenuEvent() :: wx:wx_object().
32-include("wx.hrl").
33-type wxContextMenuEventType() :: 'context_menu'.
34-export_type([wxContextMenuEvent/0, wxContextMenu/0, wxContextMenuEventType/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_wxcontextmenuevent.html#wxcontextmenueventgetposition">external documentation</a>.
41-spec getPosition(This) -> {X::integer(), Y::integer()} when
42	This::wxContextMenuEvent().
43getPosition(#wx_ref{type=ThisT}=This) ->
44  ?CLASS(ThisT,wxContextMenuEvent),
45  wxe_util:queue_cmd(This,?get_env(),?wxContextMenuEvent_GetPosition),
46  wxe_util:rec(?wxContextMenuEvent_GetPosition).
47
48%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcontextmenuevent.html#wxcontextmenueventsetposition">external documentation</a>.
49-spec setPosition(This, Point) -> 'ok' when
50	This::wxContextMenuEvent(), Point::{X::integer(), Y::integer()}.
51setPosition(#wx_ref{type=ThisT}=This,{PointX,PointY} = Point)
52 when is_integer(PointX),is_integer(PointY) ->
53  ?CLASS(ThisT,wxContextMenuEvent),
54  wxe_util:queue_cmd(This,Point,?get_env(),?wxContextMenuEvent_SetPosition).
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