1%%
2%% %CopyrightBegin%
3%%
4%% Copyright Ericsson AB 2008-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_wxsashevent.html">wxSashEvent</a>.
22%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
23%% <dd><em>sash_dragged</em></dd></dl>
24%% See also the message variant {@link wxEvtHandler:wxSash(). #wxSash{}} event record type.
25%%
26%% <p>This class is derived (and can use functions) from:
27%% <br />{@link wxCommandEvent}
28%% <br />{@link wxEvent}
29%% </p>
30%% @type wxSashEvent().  An object reference, The representation is internal
31%% and can be changed without notice. It can't be used for comparsion
32%% stored on disc or distributed for use on other nodes.
33
34-module(wxSashEvent).
35-include("wxe.hrl").
36-export([getDragRect/1,getDragStatus/1,getEdge/1]).
37
38%% inherited exports
39-export([getClientData/1,getExtraLong/1,getId/1,getInt/1,getSelection/1,getSkipped/1,
40  getString/1,getTimestamp/1,isChecked/1,isCommandEvent/1,isSelection/1,
41  parent_class/1,resumePropagation/2,setInt/2,setString/2,shouldPropagate/1,
42  skip/1,skip/2,stopPropagation/1]).
43
44-export_type([wxSashEvent/0]).
45%% @hidden
46parent_class(wxCommandEvent) -> true;
47parent_class(wxEvent) -> true;
48parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
49
50-type wxSashEvent() :: wx:wx_object().
51%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxsashevent.html#wxsasheventgetedge">external documentation</a>.
52%%<br /> Res = ?wxSASH_TOP | ?wxSASH_RIGHT | ?wxSASH_BOTTOM | ?wxSASH_LEFT | ?wxSASH_NONE
53-spec getEdge(This) -> wx:wx_enum() when
54	This::wxSashEvent().
55getEdge(#wx_ref{type=ThisT,ref=ThisRef}) ->
56  ?CLASS(ThisT,wxSashEvent),
57  wxe_util:call(?wxSashEvent_GetEdge,
58  <<ThisRef:32/?UI>>).
59
60%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxsashevent.html#wxsasheventgetdragrect">external documentation</a>.
61-spec getDragRect(This) -> {X::integer(), Y::integer(), W::integer(), H::integer()} when
62	This::wxSashEvent().
63getDragRect(#wx_ref{type=ThisT,ref=ThisRef}) ->
64  ?CLASS(ThisT,wxSashEvent),
65  wxe_util:call(?wxSashEvent_GetDragRect,
66  <<ThisRef:32/?UI>>).
67
68%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxsashevent.html#wxsasheventgetdragstatus">external documentation</a>.
69%%<br /> Res = ?wxSASH_STATUS_OK | ?wxSASH_STATUS_OUT_OF_RANGE
70-spec getDragStatus(This) -> wx:wx_enum() when
71	This::wxSashEvent().
72getDragStatus(#wx_ref{type=ThisT,ref=ThisRef}) ->
73  ?CLASS(ThisT,wxSashEvent),
74  wxe_util:call(?wxSashEvent_GetDragStatus,
75  <<ThisRef:32/?UI>>).
76
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