4
%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
18
%% This file is generated DO NOT EDIT
20
%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html">wxNavigationKeyEvent</a>.
21
%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
22
%% <dd><em>navigation_key</em></dd></dl>
23
%% See also the message variant {@link wxEvtHandler:wxNavigationKey(). #wxNavigationKey{}} event record type.
25
%% <p>This class is derived (and can use functions) from:
26
%% <br />{@link wxEvent}
28
%% @type wxNavigationKeyEvent(). An object reference, The representation is internal
29
%% and can be changed without notice. It can't be used for comparsion
30
%% stored on disc or distributed for use on other nodes.
32
-module(wxNavigationKeyEvent).
34
-export([getCurrentFocus/1,getDirection/1,isFromTab/1,isWindowChange/1,setCurrentFocus/2,
35
setDirection/2,setFromTab/2,setWindowChange/2]).
38
-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
39
resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
42
parent_class(wxEvent) -> true;
43
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
45
%% @spec (This::wxNavigationKeyEvent()) -> bool()
46
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventgetdirection">external documentation</a>.
47
getDirection(#wx_ref{type=ThisT,ref=ThisRef}) ->
48
?CLASS(ThisT,wxNavigationKeyEvent),
49
wxe_util:call(?wxNavigationKeyEvent_GetDirection,
52
%% @spec (This::wxNavigationKeyEvent(), BForward::bool()) -> ok
53
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventsetdirection">external documentation</a>.
54
setDirection(#wx_ref{type=ThisT,ref=ThisRef},BForward)
55
when is_boolean(BForward) ->
56
?CLASS(ThisT,wxNavigationKeyEvent),
57
wxe_util:cast(?wxNavigationKeyEvent_SetDirection,
58
<<ThisRef:32/?UI,(wxe_util:from_bool(BForward)):32/?UI>>).
60
%% @spec (This::wxNavigationKeyEvent()) -> bool()
61
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventiswindowchange">external documentation</a>.
62
isWindowChange(#wx_ref{type=ThisT,ref=ThisRef}) ->
63
?CLASS(ThisT,wxNavigationKeyEvent),
64
wxe_util:call(?wxNavigationKeyEvent_IsWindowChange,
67
%% @spec (This::wxNavigationKeyEvent(), BIs::bool()) -> ok
68
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventsetwindowchange">external documentation</a>.
69
setWindowChange(#wx_ref{type=ThisT,ref=ThisRef},BIs)
70
when is_boolean(BIs) ->
71
?CLASS(ThisT,wxNavigationKeyEvent),
72
wxe_util:cast(?wxNavigationKeyEvent_SetWindowChange,
73
<<ThisRef:32/?UI,(wxe_util:from_bool(BIs)):32/?UI>>).
75
%% @spec (This::wxNavigationKeyEvent()) -> bool()
76
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventisfromtab">external documentation</a>.
77
isFromTab(#wx_ref{type=ThisT,ref=ThisRef}) ->
78
?CLASS(ThisT,wxNavigationKeyEvent),
79
wxe_util:call(?wxNavigationKeyEvent_IsFromTab,
82
%% @spec (This::wxNavigationKeyEvent(), BIs::bool()) -> ok
83
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventsetfromtab">external documentation</a>.
84
setFromTab(#wx_ref{type=ThisT,ref=ThisRef},BIs)
85
when is_boolean(BIs) ->
86
?CLASS(ThisT,wxNavigationKeyEvent),
87
wxe_util:cast(?wxNavigationKeyEvent_SetFromTab,
88
<<ThisRef:32/?UI,(wxe_util:from_bool(BIs)):32/?UI>>).
90
%% @spec (This::wxNavigationKeyEvent()) -> wxWindow:wxWindow()
91
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventgetcurrentfocus">external documentation</a>.
92
getCurrentFocus(#wx_ref{type=ThisT,ref=ThisRef}) ->
93
?CLASS(ThisT,wxNavigationKeyEvent),
94
wxe_util:call(?wxNavigationKeyEvent_GetCurrentFocus,
97
%% @spec (This::wxNavigationKeyEvent(), Win::wxWindow:wxWindow()) -> ok
98
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxnavigationkeyevent.html#wxnavigationkeyeventsetcurrentfocus">external documentation</a>.
99
setCurrentFocus(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) ->
100
?CLASS(ThisT,wxNavigationKeyEvent),
101
?CLASS(WinT,wxWindow),
102
wxe_util:cast(?wxNavigationKeyEvent_SetCurrentFocus,
103
<<ThisRef:32/?UI,WinRef:32/?UI>>).
107
stopPropagation(This) -> wxEvent:stopPropagation(This).
109
skip(This, Options) -> wxEvent:skip(This, Options).
111
skip(This) -> wxEvent:skip(This).
113
shouldPropagate(This) -> wxEvent:shouldPropagate(This).
115
resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
117
isCommandEvent(This) -> wxEvent:isCommandEvent(This).
119
getTimestamp(This) -> wxEvent:getTimestamp(This).
121
getSkipped(This) -> wxEvent:getSkipped(This).
123
getId(This) -> wxEvent:getId(This).