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(wxStdDialogButtonSizer).
22-include("wxe.hrl").
23-export([addButton/2,destroy/1,new/0,realize/1,setAffirmativeButton/2,setCancelButton/2,
24  setNegativeButton/2]).
25
26%% inherited exports
27-export([add/2,add/3,add/4,addSpacer/2,addStretchSpacer/1,addStretchSpacer/2,
28  calcMin/1,clear/1,clear/2,detach/2,fit/2,fitInside/2,getChildren/1,getItem/2,
29  getItem/3,getMinSize/1,getOrientation/1,getPosition/1,getSize/1,hide/2,
30  hide/3,insert/3,insert/4,insert/5,insertSpacer/3,insertStretchSpacer/2,
31  insertStretchSpacer/3,isShown/2,layout/1,parent_class/1,prepend/2,
32  prepend/3,prepend/4,prependSpacer/2,prependStretchSpacer/1,prependStretchSpacer/2,
33  recalcSizes/1,remove/2,replace/3,replace/4,setDimension/3,setDimension/5,
34  setItemMinSize/3,setItemMinSize/4,setMinSize/2,setMinSize/3,setSizeHints/2,
35  setVirtualSizeHints/2,show/2,show/3,showItems/2]).
36
37-type wxStdDialogButtonSizer() :: wx:wx_object().
38-export_type([wxStdDialogButtonSizer/0]).
39%% @hidden
40parent_class(wxBoxSizer) -> true;
41parent_class(wxSizer) -> true;
42parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
43
44%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizerwxstddialogbuttonsizer">external documentation</a>.
45-spec new() -> wxStdDialogButtonSizer().
46new() ->
47  wxe_util:queue_cmd(?get_env(), ?wxStdDialogButtonSizer_new),
48  wxe_util:rec(?wxStdDialogButtonSizer_new).
49
50%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizeraddbutton">external documentation</a>.
51-spec addButton(This, Button) -> 'ok' when
52	This::wxStdDialogButtonSizer(), Button::wxButton:wxButton().
53addButton(#wx_ref{type=ThisT}=This,#wx_ref{type=ButtonT}=Button) ->
54  ?CLASS(ThisT,wxStdDialogButtonSizer),
55  ?CLASS(ButtonT,wxButton),
56  wxe_util:queue_cmd(This,Button,?get_env(),?wxStdDialogButtonSizer_AddButton).
57
58%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizerrealize">external documentation</a>.
59-spec realize(This) -> 'ok' when
60	This::wxStdDialogButtonSizer().
61realize(#wx_ref{type=ThisT}=This) ->
62  ?CLASS(ThisT,wxStdDialogButtonSizer),
63  wxe_util:queue_cmd(This,?get_env(),?wxStdDialogButtonSizer_Realize).
64
65%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizersetaffirmativebutton">external documentation</a>.
66-spec setAffirmativeButton(This, Button) -> 'ok' when
67	This::wxStdDialogButtonSizer(), Button::wxButton:wxButton().
68setAffirmativeButton(#wx_ref{type=ThisT}=This,#wx_ref{type=ButtonT}=Button) ->
69  ?CLASS(ThisT,wxStdDialogButtonSizer),
70  ?CLASS(ButtonT,wxButton),
71  wxe_util:queue_cmd(This,Button,?get_env(),?wxStdDialogButtonSizer_SetAffirmativeButton).
72
73%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizersetcancelbutton">external documentation</a>.
74-spec setCancelButton(This, Button) -> 'ok' when
75	This::wxStdDialogButtonSizer(), Button::wxButton:wxButton().
76setCancelButton(#wx_ref{type=ThisT}=This,#wx_ref{type=ButtonT}=Button) ->
77  ?CLASS(ThisT,wxStdDialogButtonSizer),
78  ?CLASS(ButtonT,wxButton),
79  wxe_util:queue_cmd(This,Button,?get_env(),?wxStdDialogButtonSizer_SetCancelButton).
80
81%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizersetnegativebutton">external documentation</a>.
82-spec setNegativeButton(This, Button) -> 'ok' when
83	This::wxStdDialogButtonSizer(), Button::wxButton:wxButton().
84setNegativeButton(#wx_ref{type=ThisT}=This,#wx_ref{type=ButtonT}=Button) ->
85  ?CLASS(ThisT,wxStdDialogButtonSizer),
86  ?CLASS(ButtonT,wxButton),
87  wxe_util:queue_cmd(This,Button,?get_env(),?wxStdDialogButtonSizer_SetNegativeButton).
88
89%% @doc Destroys this object, do not use object again
90-spec destroy(This::wxStdDialogButtonSizer()) -> 'ok'.
91destroy(Obj=#wx_ref{type=Type}) ->
92  ?CLASS(Type,wxStdDialogButtonSizer),
93  wxe_util:queue_cmd(Obj, ?get_env(), ?DESTROY_OBJECT),
94  ok.
95 %% From wxBoxSizer
96%% @hidden
97getOrientation(This) -> wxBoxSizer:getOrientation(This).
98 %% From wxSizer
99%% @hidden
100showItems(This,Show) -> wxSizer:showItems(This,Show).
101%% @hidden
102show(This,Window, Options) -> wxSizer:show(This,Window, Options).
103%% @hidden
104show(This,Window) -> wxSizer:show(This,Window).
105%% @hidden
106setSizeHints(This,Window) -> wxSizer:setSizeHints(This,Window).
107%% @hidden
108setItemMinSize(This,Window,Width,Height) -> wxSizer:setItemMinSize(This,Window,Width,Height).
109%% @hidden
110setItemMinSize(This,Window,Size) -> wxSizer:setItemMinSize(This,Window,Size).
111%% @hidden
112setMinSize(This,Width,Height) -> wxSizer:setMinSize(This,Width,Height).
113%% @hidden
114setMinSize(This,Size) -> wxSizer:setMinSize(This,Size).
115%% @hidden
116setDimension(This,X,Y,Width,Height) -> wxSizer:setDimension(This,X,Y,Width,Height).
117%% @hidden
118setDimension(This,Pos,Size) -> wxSizer:setDimension(This,Pos,Size).
119%% @hidden
120replace(This,Oldwin,Newwin, Options) -> wxSizer:replace(This,Oldwin,Newwin, Options).
121%% @hidden
122replace(This,Oldwin,Newwin) -> wxSizer:replace(This,Oldwin,Newwin).
123%% @hidden
124remove(This,Index) -> wxSizer:remove(This,Index).
125%% @hidden
126prependStretchSpacer(This, Options) -> wxSizer:prependStretchSpacer(This, Options).
127%% @hidden
128prependStretchSpacer(This) -> wxSizer:prependStretchSpacer(This).
129%% @hidden
130prependSpacer(This,Size) -> wxSizer:prependSpacer(This,Size).
131%% @hidden
132prepend(This,Width,Height, Options) -> wxSizer:prepend(This,Width,Height, Options).
133%% @hidden
134prepend(This,Width,Height) -> wxSizer:prepend(This,Width,Height).
135%% @hidden
136prepend(This,Item) -> wxSizer:prepend(This,Item).
137%% @hidden
138layout(This) -> wxSizer:layout(This).
139%% @hidden
140recalcSizes(This) -> wxSizer:recalcSizes(This).
141%% @hidden
142isShown(This,Window) -> wxSizer:isShown(This,Window).
143%% @hidden
144insertStretchSpacer(This,Index, Options) -> wxSizer:insertStretchSpacer(This,Index, Options).
145%% @hidden
146insertStretchSpacer(This,Index) -> wxSizer:insertStretchSpacer(This,Index).
147%% @hidden
148insertSpacer(This,Index,Size) -> wxSizer:insertSpacer(This,Index,Size).
149%% @hidden
150insert(This,Index,Width,Height, Options) -> wxSizer:insert(This,Index,Width,Height, Options).
151%% @hidden
152insert(This,Index,Width,Height) -> wxSizer:insert(This,Index,Width,Height).
153%% @hidden
154insert(This,Index,Item) -> wxSizer:insert(This,Index,Item).
155%% @hidden
156hide(This,Window, Options) -> wxSizer:hide(This,Window, Options).
157%% @hidden
158hide(This,Window) -> wxSizer:hide(This,Window).
159%% @hidden
160getMinSize(This) -> wxSizer:getMinSize(This).
161%% @hidden
162getPosition(This) -> wxSizer:getPosition(This).
163%% @hidden
164getSize(This) -> wxSizer:getSize(This).
165%% @hidden
166getItem(This,Window, Options) -> wxSizer:getItem(This,Window, Options).
167%% @hidden
168getItem(This,Window) -> wxSizer:getItem(This,Window).
169%% @hidden
170getChildren(This) -> wxSizer:getChildren(This).
171%% @hidden
172fitInside(This,Window) -> wxSizer:fitInside(This,Window).
173%% @hidden
174setVirtualSizeHints(This,Window) -> wxSizer:setVirtualSizeHints(This,Window).
175%% @hidden
176fit(This,Window) -> wxSizer:fit(This,Window).
177%% @hidden
178detach(This,Window) -> wxSizer:detach(This,Window).
179%% @hidden
180clear(This, Options) -> wxSizer:clear(This, Options).
181%% @hidden
182clear(This) -> wxSizer:clear(This).
183%% @hidden
184calcMin(This) -> wxSizer:calcMin(This).
185%% @hidden
186addStretchSpacer(This, Options) -> wxSizer:addStretchSpacer(This, Options).
187%% @hidden
188addStretchSpacer(This) -> wxSizer:addStretchSpacer(This).
189%% @hidden
190addSpacer(This,Size) -> wxSizer:addSpacer(This,Size).
191%% @hidden
192add(This,Width,Height, Options) -> wxSizer:add(This,Width,Height, Options).
193%% @hidden
194add(This,Width,Height) -> wxSizer:add(This,Width,Height).
195%% @hidden
196add(This,Window) -> wxSizer:add(This,Window).
197