~statik/ubuntu/maverick/erlang/erlang-merge-testing

1.2.3 by Sergei Golovan
Import upstream version 13.b.2.1-dfsg
1
%%
2
%% %CopyrightBegin%
1.2.5 by Sergei Golovan
Import upstream version 13.b.4-dfsg
3
%%
4
%% Copyright Ericsson AB 2009-2010. All Rights Reserved.
5
%%
1.2.3 by Sergei Golovan
Import upstream version 13.b.2.1-dfsg
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/.
1.2.5 by Sergei Golovan
Import upstream version 13.b.4-dfsg
11
%%
1.2.3 by Sergei Golovan
Import upstream version 13.b.2.1-dfsg
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
15
%% under the License.
1.2.5 by Sergei Golovan
Import upstream version 13.b.4-dfsg
16
%%
1.2.3 by Sergei Golovan
Import upstream version 13.b.2.1-dfsg
17
%% %CopyrightEnd%
18
%% This file is generated DO NOT EDIT
19
20
%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html">wxAuiManagerEvent</a>.
21
%% <dl><dt>Use {@link wxEvtHandler:connect/3.} with EventType:</dt>
22
%% <dd><em>aui_pane_button</em>, <em>aui_pane_close</em>, <em>aui_pane_maximize</em>, <em>aui_pane_restore</em>, <em>aui_render</em>, <em>aui_find_manager</em></dd></dl>
23
%% See also the message variant {@link wxEvtHandler:wxAuiManager(). #wxAuiManager{}} event record type.
24
%%
1.2.5 by Sergei Golovan
Import upstream version 13.b.4-dfsg
25
%% <p>This class is derived (and can use functions) from:
1.2.3 by Sergei Golovan
Import upstream version 13.b.2.1-dfsg
26
%% <br />{@link wxEvent}
27
%% </p>
28
%% @type wxAuiManagerEvent().  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.
31
32
-module(wxAuiManagerEvent).
33
-include("wxe.hrl").
34
-export([canVeto/1,getButton/1,getDC/1,getManager/1,getPane/1,getVeto/1,setButton/2,
35
  setCanVeto/2,setDC/2,setManager/2,setPane/2,veto/1,veto/2]).
36
37
%% inherited exports
38
-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1,
39
  resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]).
40
41
%% @hidden
42
parent_class(wxEvent) -> true;
43
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
44
45
%% @spec (This::wxAuiManagerEvent(), Mgr::wxAuiManager:wxAuiManager()) -> ok
46
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetmanager">external documentation</a>.
47
setManager(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MgrT,ref=MgrRef}) ->
48
  ?CLASS(ThisT,wxAuiManagerEvent),
49
  ?CLASS(MgrT,wxAuiManager),
50
  wxe_util:cast(?wxAuiManagerEvent_SetManager,
51
  <<ThisRef:32/?UI,MgrRef:32/?UI>>).
52
53
%% @spec (This::wxAuiManagerEvent()) -> wxAuiManager:wxAuiManager()
54
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetmanager">external documentation</a>.
55
getManager(#wx_ref{type=ThisT,ref=ThisRef}) ->
56
  ?CLASS(ThisT,wxAuiManagerEvent),
57
  wxe_util:call(?wxAuiManagerEvent_GetManager,
58
  <<ThisRef:32/?UI>>).
59
60
%% @spec (This::wxAuiManagerEvent(), P::wxAuiPaneInfo:wxAuiPaneInfo()) -> ok
61
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetpane">external documentation</a>.
62
setPane(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PT,ref=PRef}) ->
63
  ?CLASS(ThisT,wxAuiManagerEvent),
64
  ?CLASS(PT,wxAuiPaneInfo),
65
  wxe_util:cast(?wxAuiManagerEvent_SetPane,
66
  <<ThisRef:32/?UI,PRef:32/?UI>>).
67
68
%% @spec (This::wxAuiManagerEvent()) -> wxAuiPaneInfo:wxAuiPaneInfo()
69
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetpane">external documentation</a>.
70
getPane(#wx_ref{type=ThisT,ref=ThisRef}) ->
71
  ?CLASS(ThisT,wxAuiManagerEvent),
72
  wxe_util:call(?wxAuiManagerEvent_GetPane,
73
  <<ThisRef:32/?UI>>).
74
75
%% @spec (This::wxAuiManagerEvent(), B::integer()) -> ok
76
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetbutton">external documentation</a>.
77
setButton(#wx_ref{type=ThisT,ref=ThisRef},B)
78
 when is_integer(B) ->
79
  ?CLASS(ThisT,wxAuiManagerEvent),
80
  wxe_util:cast(?wxAuiManagerEvent_SetButton,
81
  <<ThisRef:32/?UI,B:32/?UI>>).
82
83
%% @spec (This::wxAuiManagerEvent()) -> integer()
84
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetbutton">external documentation</a>.
85
getButton(#wx_ref{type=ThisT,ref=ThisRef}) ->
86
  ?CLASS(ThisT,wxAuiManagerEvent),
87
  wxe_util:call(?wxAuiManagerEvent_GetButton,
88
  <<ThisRef:32/?UI>>).
89
90
%% @spec (This::wxAuiManagerEvent(), Pdc::wxDC:wxDC()) -> ok
91
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetdc">external documentation</a>.
92
setDC(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PdcT,ref=PdcRef}) ->
93
  ?CLASS(ThisT,wxAuiManagerEvent),
94
  ?CLASS(PdcT,wxDC),
95
  wxe_util:cast(?wxAuiManagerEvent_SetDC,
96
  <<ThisRef:32/?UI,PdcRef:32/?UI>>).
97
98
%% @spec (This::wxAuiManagerEvent()) -> wxDC:wxDC()
99
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetdc">external documentation</a>.
100
getDC(#wx_ref{type=ThisT,ref=ThisRef}) ->
101
  ?CLASS(ThisT,wxAuiManagerEvent),
102
  wxe_util:call(?wxAuiManagerEvent_GetDC,
103
  <<ThisRef:32/?UI>>).
104
105
%% @spec (This::wxAuiManagerEvent()) -> ok
106
%% @equiv veto(This, [])
107
veto(This)
108
 when is_record(This, wx_ref) ->
109
  veto(This, []).
110
111
%% @spec (This::wxAuiManagerEvent(), [Option]) -> ok
112
%% Option = {veto, bool()}
113
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventveto">external documentation</a>.
114
veto(#wx_ref{type=ThisT,ref=ThisRef}, Options)
115
 when is_list(Options) ->
116
  ?CLASS(ThisT,wxAuiManagerEvent),
117
  MOpts = fun({veto, Veto}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Veto)):32/?UI>>|Acc];
118
          (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
119
  BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
120
  wxe_util:cast(?wxAuiManagerEvent_Veto,
121
  <<ThisRef:32/?UI, 0:32,BinOpt/binary>>).
122
123
%% @spec (This::wxAuiManagerEvent()) -> bool()
124
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventgetveto">external documentation</a>.
125
getVeto(#wx_ref{type=ThisT,ref=ThisRef}) ->
126
  ?CLASS(ThisT,wxAuiManagerEvent),
127
  wxe_util:call(?wxAuiManagerEvent_GetVeto,
128
  <<ThisRef:32/?UI>>).
129
130
%% @spec (This::wxAuiManagerEvent(), Can_veto::bool()) -> ok
131
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventsetcanveto">external documentation</a>.
132
setCanVeto(#wx_ref{type=ThisT,ref=ThisRef},Can_veto)
133
 when is_boolean(Can_veto) ->
134
  ?CLASS(ThisT,wxAuiManagerEvent),
135
  wxe_util:cast(?wxAuiManagerEvent_SetCanVeto,
136
  <<ThisRef:32/?UI,(wxe_util:from_bool(Can_veto)):32/?UI>>).
137
138
%% @spec (This::wxAuiManagerEvent()) -> bool()
139
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxauimanagerevent.html#wxauimanagereventcanveto">external documentation</a>.
140
canVeto(#wx_ref{type=ThisT,ref=ThisRef}) ->
141
  ?CLASS(ThisT,wxAuiManagerEvent),
142
  wxe_util:call(?wxAuiManagerEvent_CanVeto,
143
  <<ThisRef:32/?UI>>).
144
1.2.5 by Sergei Golovan
Import upstream version 13.b.4-dfsg
145
 %% From wxEvent
1.2.3 by Sergei Golovan
Import upstream version 13.b.2.1-dfsg
146
%% @hidden
147
stopPropagation(This) -> wxEvent:stopPropagation(This).
148
%% @hidden
149
skip(This, Options) -> wxEvent:skip(This, Options).
150
%% @hidden
151
skip(This) -> wxEvent:skip(This).
152
%% @hidden
153
shouldPropagate(This) -> wxEvent:shouldPropagate(This).
154
%% @hidden
155
resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel).
156
%% @hidden
157
isCommandEvent(This) -> wxEvent:isCommandEvent(This).
158
%% @hidden
159
getTimestamp(This) -> wxEvent:getTimestamp(This).
160
%% @hidden
161
getSkipped(This) -> wxEvent:getSkipped(This).
162
%% @hidden
163
getId(This) -> wxEvent:getId(This).