%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2008-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. %% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. %% %% %CopyrightEnd% %% This file is generated DO NOT EDIT %% @doc See external documentation: wxSizer. %% @type wxSizer(). An object reference, The representation is internal %% and can be changed without notice. It can't be used for comparsion %% stored on disc or distributed for use on other nodes. -module(wxSizer). -include("wxe.hrl"). -export([add/2,add/3,add/4,addSpacer/2,addStretchSpacer/1,addStretchSpacer/2, calcMin/1,clear/1,clear/2,detach/2,fit/2,fitInside/2,getChildren/1,getItem/2, getItem/3,getMinSize/1,getPosition/1,getSize/1,hide/2,hide/3,insert/3, insert/4,insert/5,insertSpacer/3,insertStretchSpacer/2,insertStretchSpacer/3, isShown/2,layout/1,prepend/2,prepend/3,prepend/4,prependSpacer/2,prependStretchSpacer/1, prependStretchSpacer/2,recalcSizes/1,remove/2,replace/3,replace/4, setDimension/5,setItemMinSize/3,setItemMinSize/4,setMinSize/2,setMinSize/3, setSizeHints/2,setVirtualSizeHints/2,show/2,show/3]). %% inherited exports -export([parent_class/1]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). %% @spec (This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> wxSizerItem:wxSizerItem() %% @equiv add(This,Window, []) add(This,Window) when is_record(This, wx_ref),is_record(Window, wx_ref) -> add(This,Window, []). %% @spec (This::wxSizer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. %%
Alternatives: %%

%% add(This::wxSizer(), Width::integer(), Height::integer()) -> add(This,Width,Height, [])

%%

%% add(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() %%
Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} %%

%%

%% add(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() %%

add(This,Width,Height) when is_record(This, wx_ref),is_integer(Width),is_integer(Height) -> add(This,Width,Height, []); add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_Add_2_1; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_Add_2_0 end, MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc]; ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc]; ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc]; ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(WindowOP, <>); add(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?CLASS(FlagsT,wxSizerFlags), ?wxSizer_Add_2_3; _ -> ?CLASS(WindowT,wxSizer), ?CLASS(FlagsT,wxSizerFlags), ?wxSizer_Add_2_2 end, wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem() %% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} %% @doc See external documentation. add(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options) when is_integer(Width),is_integer(Height),is_list(Options) -> ?CLASS(ThisT,wxSizer), MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc]; ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc]; ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc]; ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxSizer_Add_3, <>). %% @spec (This::wxSizer(), Size::integer()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. addSpacer(#wx_ref{type=ThisT,ref=ThisRef},Size) when is_integer(Size) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_AddSpacer, <>). %% @spec (This::wxSizer()) -> wxSizerItem:wxSizerItem() %% @equiv addStretchSpacer(This, []) addStretchSpacer(This) when is_record(This, wx_ref) -> addStretchSpacer(This, []). %% @spec (This::wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() %% Option = {prop, integer()} %% @doc See external documentation. addStretchSpacer(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), MOpts = fun({prop, Prop}, Acc) -> [<<1:32/?UI,Prop:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxSizer_AddStretchSpacer, <>). %% @spec (This::wxSizer()) -> {W::integer(), H::integer()} %% @doc See external documentation. calcMin(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_CalcMin, <>). %% @spec (This::wxSizer()) -> ok %% @equiv clear(This, []) clear(This) when is_record(This, wx_ref) -> clear(This, []). %% @spec (This::wxSizer(), [Option]) -> ok %% Option = {delete_windows, bool()} %% @doc See external documentation. clear(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), MOpts = fun({delete_windows, Delete_windows}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Delete_windows)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxSizer_Clear, <>). %% @spec (This::wxSizer(),X::integer()|term()) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% detach(This::wxSizer(), Index::integer()) -> bool() %%

%%

%% detach(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> bool() %%

detach(#wx_ref{type=ThisT,ref=ThisRef},Index) when is_integer(Index) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_Detach_1_0, <>); detach(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_Detach_1_2; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_Detach_1_1 end, wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> {W::integer(), H::integer()} %% @doc See external documentation. fit(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSizer), ?CLASS(WindowT,wxWindow), wxe_util:call(?wxSizer_Fit, <>). %% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok %% @doc See external documentation. fitInside(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSizer), ?CLASS(WindowT,wxWindow), wxe_util:cast(?wxSizer_FitInside, <>). %% @spec (This::wxSizer()) -> [wxSizerItem:wxSizerItem()] %% @doc See external documentation. getChildren(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_GetChildren, <>). %% @spec (This::wxSizer(),X::term()|integer()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. %%
Alternatives: %%

%% getItem(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> getItem(This,Window, [])

%%

%% getItem(This::wxSizer(), Index::integer()) -> wxSizerItem:wxSizerItem() %%

getItem(This,Window) when is_record(This, wx_ref),is_record(Window, wx_ref) -> getItem(This,Window, []); getItem(#wx_ref{type=ThisT,ref=ThisRef},Index) when is_integer(Index) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_GetItem_1, <>). %% @spec (This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() %% Option = {recursive, bool()} %% @doc See external documentation. getItem(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_GetItem_2_1; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_GetItem_2_0 end, MOpts = fun({recursive, Recursive}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Recursive)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer()) -> {W::integer(), H::integer()} %% @doc See external documentation. getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_GetSize, <>). %% @spec (This::wxSizer()) -> {X::integer(), Y::integer()} %% @doc See external documentation. getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_GetPosition, <>). %% @spec (This::wxSizer()) -> {W::integer(), H::integer()} %% @doc See external documentation. getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_GetMinSize, <>). %% @spec (This::wxSizer(),X::term()|integer()) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% hide(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> hide(This,Window, [])

%%

%% hide(This::wxSizer(), Index::integer()) -> bool() %%

hide(This,Window) when is_record(This, wx_ref),is_record(Window, wx_ref) -> hide(This,Window, []); hide(#wx_ref{type=ThisT,ref=ThisRef},Index) when is_integer(Index) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_Hide_1, <>). %% @spec (This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool() %% Option = {recursive, bool()} %% @doc See external documentation. hide(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_Hide_2_1; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_Hide_2_0 end, MOpts = fun({recursive, Recursive}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Recursive)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer(), Index::integer(), Item::wxSizerItem:wxSizerItem()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. insert(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=ItemT,ref=ItemRef}) when is_integer(Index) -> ?CLASS(ThisT,wxSizer), ?CLASS(ItemT,wxSizerItem), wxe_util:call(?wxSizer_Insert_2, <>). %% @spec (This::wxSizer(),Index::integer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. %%
Alternatives: %%

%% insert(This::wxSizer(), Index::integer(), Width::integer(), Height::integer()) -> insert(This,Index,Width,Height, [])

%%

%% insert(This::wxSizer(), Index::integer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() %%
Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} %%

%%

%% insert(This::wxSizer(), Index::integer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() %%

insert(This,Index,Width,Height) when is_record(This, wx_ref),is_integer(Index),is_integer(Width),is_integer(Height) -> insert(This,Index,Width,Height, []); insert(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=WindowT,ref=WindowRef}, Options) when is_integer(Index),is_list(Options) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_Insert_3_1; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_Insert_3_0 end, MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc]; ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc]; ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc]; ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(WindowOP, <>); insert(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) when is_integer(Index) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?CLASS(FlagsT,wxSizerFlags), ?wxSizer_Insert_3_3; _ -> ?CLASS(WindowT,wxSizer), ?CLASS(FlagsT,wxSizerFlags), ?wxSizer_Insert_3_2 end, wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer(), Index::integer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem() %% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} %% @doc See external documentation. insert(#wx_ref{type=ThisT,ref=ThisRef},Index,Width,Height, Options) when is_integer(Index),is_integer(Width),is_integer(Height),is_list(Options) -> ?CLASS(ThisT,wxSizer), MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc]; ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc]; ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc]; ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxSizer_Insert_4, <>). %% @spec (This::wxSizer(), Index::integer(), Size::integer()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. insertSpacer(#wx_ref{type=ThisT,ref=ThisRef},Index,Size) when is_integer(Index),is_integer(Size) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_InsertSpacer, <>). %% @spec (This::wxSizer(), Index::integer()) -> wxSizerItem:wxSizerItem() %% @equiv insertStretchSpacer(This,Index, []) insertStretchSpacer(This,Index) when is_record(This, wx_ref),is_integer(Index) -> insertStretchSpacer(This,Index, []). %% @spec (This::wxSizer(), Index::integer(), [Option]) -> wxSizerItem:wxSizerItem() %% Option = {prop, integer()} %% @doc See external documentation. insertStretchSpacer(#wx_ref{type=ThisT,ref=ThisRef},Index, Options) when is_integer(Index),is_list(Options) -> ?CLASS(ThisT,wxSizer), MOpts = fun({prop, Prop}, Acc) -> [<<1:32/?UI,Prop:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxSizer_InsertStretchSpacer, <>). %% @spec (This::wxSizer(),X::integer()|term()) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% isShown(This::wxSizer(), Index::integer()) -> bool() %%

%%

%% isShown(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> bool() %%

isShown(#wx_ref{type=ThisT,ref=ThisRef},Index) when is_integer(Index) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_IsShown_1_0, <>); isShown(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_IsShown_1_2; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_IsShown_1_1 end, wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer()) -> ok %% @doc See external documentation. layout(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizer), wxe_util:cast(?wxSizer_Layout, <>). %% @spec (This::wxSizer(), Item::wxSizerItem:wxSizerItem()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. prepend(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ItemT,ref=ItemRef}) -> ?CLASS(ThisT,wxSizer), ?CLASS(ItemT,wxSizerItem), wxe_util:call(?wxSizer_Prepend_1, <>). %% @spec (This::wxSizer(),X::integer()|term(),X::integer()|term()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. %%
Alternatives: %%

%% prepend(This::wxSizer(), Width::integer(), Height::integer()) -> prepend(This,Width,Height, [])

%%

%% prepend(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() %%
Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} %%

%%

%% prepend(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem:wxSizerItem() %%

prepend(This,Width,Height) when is_record(This, wx_ref),is_integer(Width),is_integer(Height) -> prepend(This,Width,Height, []); prepend(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_Prepend_2_1; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_Prepend_2_0 end, MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc]; ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc]; ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc]; ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(WindowOP, <>); prepend(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?CLASS(FlagsT,wxSizerFlags), ?wxSizer_Prepend_2_3; _ -> ?CLASS(WindowT,wxSizer), ?CLASS(FlagsT,wxSizerFlags), ?wxSizer_Prepend_2_2 end, wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer(), Width::integer(), Height::integer(), [Option]) -> wxSizerItem:wxSizerItem() %% Option = {proportion, integer()} | {flag, integer()} | {border, integer()} | {userData, wx:wx()} %% @doc See external documentation. prepend(#wx_ref{type=ThisT,ref=ThisRef},Width,Height, Options) when is_integer(Width),is_integer(Height),is_list(Options) -> ?CLASS(ThisT,wxSizer), MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc]; ({flag, Flag}, Acc) -> [<<2:32/?UI,Flag:32/?UI>>|Acc]; ({border, Border}, Acc) -> [<<3:32/?UI,Border:32/?UI>>|Acc]; ({userData, #wx_ref{type=UserDataT,ref=UserDataRef}}, Acc) -> ?CLASS(UserDataT,wx),[<<4:32/?UI,UserDataRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxSizer_Prepend_3, <>). %% @spec (This::wxSizer(), Size::integer()) -> wxSizerItem:wxSizerItem() %% @doc See external documentation. prependSpacer(#wx_ref{type=ThisT,ref=ThisRef},Size) when is_integer(Size) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_PrependSpacer, <>). %% @spec (This::wxSizer()) -> wxSizerItem:wxSizerItem() %% @equiv prependStretchSpacer(This, []) prependStretchSpacer(This) when is_record(This, wx_ref) -> prependStretchSpacer(This, []). %% @spec (This::wxSizer(), [Option]) -> wxSizerItem:wxSizerItem() %% Option = {prop, integer()} %% @doc See external documentation. prependStretchSpacer(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), MOpts = fun({prop, Prop}, Acc) -> [<<1:32/?UI,Prop:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxSizer_PrependStretchSpacer, <>). %% @spec (This::wxSizer()) -> ok %% @doc See external documentation. recalcSizes(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizer), wxe_util:cast(?wxSizer_RecalcSizes, <>). %% @spec (This::wxSizer(),X::integer()|wxSizer()) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% remove(This::wxSizer(), Index::integer()) -> bool() %%

%%

%% remove(This::wxSizer(), Sizer::wxSizer()) -> bool() %%

remove(#wx_ref{type=ThisT,ref=ThisRef},Index) when is_integer(Index) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_Remove_1_0, <>); remove(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) -> ?CLASS(ThisT,wxSizer), ?CLASS(SizerT,wxSizer), wxe_util:call(?wxSizer_Remove_1_1, <>). %% @spec (This::wxSizer(),X::term()|integer(),X::term()) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% replace(This::wxSizer(), Oldwin::wxWindow:wxWindow() | wxSizer(), Newwin::wxWindow:wxWindow() | wxSizer()) -> replace(This,Oldwin,Newwin, [])

%%

%% replace(This::wxSizer(), Index::integer(), Newitem::wxSizerItem:wxSizerItem()) -> bool() %%

replace(This,Oldwin,Newwin) when is_record(This, wx_ref),is_record(Oldwin, wx_ref),is_record(Newwin, wx_ref) -> replace(This,Oldwin,Newwin, []); replace(#wx_ref{type=ThisT,ref=ThisRef},Index,#wx_ref{type=NewitemT,ref=NewitemRef}) when is_integer(Index) -> ?CLASS(ThisT,wxSizer), ?CLASS(NewitemT,wxSizerItem), wxe_util:call(?wxSizer_Replace_2, <>). %% @spec (This::wxSizer(), Oldwin::wxWindow:wxWindow() | wxSizer(), Newwin::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool() %% Option = {recursive, bool()} %% @doc See external documentation. replace(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=OldwinT,ref=OldwinRef},#wx_ref{type=NewwinT,ref=NewwinRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), OldwinOP = case ?CLASS_T(OldwinT,wxWindow) of true -> ?CLASS(NewwinT,wxWindow), ?wxSizer_Replace_3_1; _ -> ?CLASS(OldwinT,wxSizer), ?CLASS(NewwinT,wxSizer), ?wxSizer_Replace_3_0 end, MOpts = fun({recursive, Recursive}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Recursive)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(OldwinOP, <>). %% @spec (This::wxSizer(), X::integer(), Y::integer(), Width::integer(), Height::integer()) -> ok %% @doc See external documentation. setDimension(#wx_ref{type=ThisT,ref=ThisRef},X,Y,Width,Height) when is_integer(X),is_integer(Y),is_integer(Width),is_integer(Height) -> ?CLASS(ThisT,wxSizer), wxe_util:cast(?wxSizer_SetDimension, <>). %% @spec (This::wxSizer(), Size::{W::integer(), H::integer()}) -> ok %% @doc See external documentation. setMinSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxSizer), wxe_util:cast(?wxSizer_SetMinSize_1, <>). %% @spec (This::wxSizer(), Width::integer(), Height::integer()) -> ok %% @doc See external documentation. setMinSize(#wx_ref{type=ThisT,ref=ThisRef},Width,Height) when is_integer(Width),is_integer(Height) -> ?CLASS(ThisT,wxSizer), wxe_util:cast(?wxSizer_SetMinSize_2, <>). %% @spec (This::wxSizer(),X::integer()|term(),Size::{W::integer(), H::integer()}) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% setItemMinSize(This::wxSizer(), Index::integer(), Size::{W::integer(), H::integer()}) -> bool() %%

%%

%% setItemMinSize(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Size::{W::integer(), H::integer()}) -> bool() %%

setItemMinSize(#wx_ref{type=ThisT,ref=ThisRef},Index,{SizeW,SizeH}) when is_integer(Index),is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_SetItemMinSize_2_0, <>); setItemMinSize(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_SetItemMinSize_2_2; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_SetItemMinSize_2_1 end, wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer(),X::integer()|term(),Width::integer(),Height::integer()) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% setItemMinSize(This::wxSizer(), Index::integer(), Width::integer(), Height::integer()) -> bool() %%

%%

%% setItemMinSize(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), Width::integer(), Height::integer()) -> bool() %%

setItemMinSize(#wx_ref{type=ThisT,ref=ThisRef},Index,Width,Height) when is_integer(Index),is_integer(Width),is_integer(Height) -> ?CLASS(ThisT,wxSizer), wxe_util:call(?wxSizer_SetItemMinSize_3_0, <>); setItemMinSize(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef},Width,Height) when is_integer(Width),is_integer(Height) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_SetItemMinSize_3_2; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_SetItemMinSize_3_1 end, wxe_util:call(WindowOP, <>). %% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok %% @doc See external documentation. setSizeHints(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSizer), ?CLASS(WindowT,wxWindow), wxe_util:cast(?wxSizer_SetSizeHints, <>). %% @spec (This::wxSizer(), Window::wxWindow:wxWindow()) -> ok %% @doc See external documentation. setVirtualSizeHints(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSizer), ?CLASS(WindowT,wxWindow), wxe_util:cast(?wxSizer_SetVirtualSizeHints, <>). %% @spec (This::wxSizer(),X::integer()|term()|bool()) -> bool()|bool()|ok %% @doc See external documentation. %%
Alternatives: %%

%% show(This::wxSizer(), Index::integer()) -> show(This,Index, [])

%%

%% show(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer()) -> show(This,Window, [])

%%

%% show(This::wxSizer(), Show::bool()) -> ok %%

show(This,Index) when is_record(This, wx_ref),is_integer(Index) -> show(This,Index, []); show(This,Window) when is_record(This, wx_ref),is_record(Window, wx_ref) -> show(This,Window, []); show(#wx_ref{type=ThisT,ref=ThisRef},Show) when is_boolean(Show) -> ?CLASS(ThisT,wxSizer), wxe_util:cast(?wxSizer_Show_1, <>). %% @spec (This::wxSizer(),X::integer()|term(),[Option]) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% show(This::wxSizer(), Index::integer(), [Option]) -> bool() %%
Option = {show, bool()} %%

%%

%% show(This::wxSizer(), Window::wxWindow:wxWindow() | wxSizer(), [Option]) -> bool() %%
Option = {show, bool()} | {recursive, bool()} %%

show(#wx_ref{type=ThisT,ref=ThisRef},Index, Options) when is_integer(Index),is_list(Options) -> ?CLASS(ThisT,wxSizer), MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxSizer_Show_2_0, <>); show(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSizer), WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?wxSizer_Show_2_2; _ -> ?CLASS(WindowT,wxSizer), ?wxSizer_Show_2_1 end, MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc]; ({recursive, Recursive}, Acc) -> [<<2:32/?UI,(wxe_util:from_bool(Recursive)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(WindowOP, <>).