%% %% %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: wxSizerItem. %% @type wxSizerItem(). 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(wxSizerItem). -include("wxe.hrl"). -export([calcMin/1,deleteWindows/1,destroy/1,detachSizer/1,getBorder/1,getFlag/1, getMinSize/1,getPosition/1,getProportion/1,getRatio/1,getRect/1,getSize/1, getSizer/1,getSpacer/1,getUserData/1,getWindow/1,isShown/1,isSizer/1, isSpacer/1,isWindow/1,new/0,new/2,new/3,new/5,new/6,setBorder/2,setDimension/3, setFlag/2,setInitSize/3,setMinSize/2,setMinSize/3,setProportion/2, setRatio/2,setRatio/3,setSizer/2,setSpacer/2,setSpacer/3,setWindow/2, show/2]). %% inherited exports -export([parent_class/1]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). %% @spec () -> wxSizerItem() %% @doc See external documentation. new() -> wxe_util:construct(?wxSizerItem_new_0, <<>>). %% @spec (Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem() %% @doc See external documentation. new(#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) -> WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?CLASS(FlagsT,wxSizerFlags), ?wxSizerItem_new_2_1; _ -> ?CLASS(WindowT,wxSizer), ?CLASS(FlagsT,wxSizerFlags), ?wxSizerItem_new_2_0 end, wxe_util:construct(WindowOP, <>). %% @spec (Width::integer(), Height::integer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem() %% @doc See external documentation. new(Width,Height,#wx_ref{type=FlagsT,ref=FlagsRef}) when is_integer(Width),is_integer(Height) -> ?CLASS(FlagsT,wxSizerFlags), wxe_util:construct(?wxSizerItem_new_3, <>). %% @spec (Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx()) -> wxSizerItem() %% @doc See external documentation. new(#wx_ref{type=WindowT,ref=WindowRef},Proportion,Flag,Border,#wx_ref{type=UserDataT,ref=UserDataRef}) when is_integer(Proportion),is_integer(Flag),is_integer(Border) -> WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> ?CLASS(UserDataT,wx), ?wxSizerItem_new_5_1; _ -> ?CLASS(WindowT,wxSizer), ?CLASS(UserDataT,wx), ?wxSizerItem_new_5_0 end, wxe_util:construct(WindowOP, <>). %% @spec (Width::integer(), Height::integer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx()) -> wxSizerItem() %% @doc See external documentation. new(Width,Height,Proportion,Flag,Border,#wx_ref{type=UserDataT,ref=UserDataRef}) when is_integer(Width),is_integer(Height),is_integer(Proportion),is_integer(Flag),is_integer(Border) -> ?CLASS(UserDataT,wx), wxe_util:construct(?wxSizerItem_new_6, <>). %% @spec (This::wxSizerItem()) -> {W::integer(), H::integer()} %% @doc See external documentation. calcMin(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_CalcMin, <>). %% @spec (This::wxSizerItem()) -> ok %% @doc See external documentation. deleteWindows(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_DeleteWindows, <>). %% @spec (This::wxSizerItem()) -> ok %% @doc See external documentation. detachSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_DetachSizer, <>). %% @spec (This::wxSizerItem()) -> integer() %% @doc See external documentation. getBorder(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetBorder, <>). %% @spec (This::wxSizerItem()) -> integer() %% @doc See external documentation. getFlag(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetFlag, <>). %% @spec (This::wxSizerItem()) -> {W::integer(), H::integer()} %% @doc See external documentation. getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetMinSize, <>). %% @spec (This::wxSizerItem()) -> {X::integer(), Y::integer()} %% @doc See external documentation. getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetPosition, <>). %% @spec (This::wxSizerItem()) -> integer() %% @doc See external documentation. getProportion(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetProportion, <>). %% @spec (This::wxSizerItem()) -> float() %% @doc See external documentation. getRatio(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetRatio, <>). %% @spec (This::wxSizerItem()) -> {X::integer(), Y::integer(), W::integer(), H::integer()} %% @doc See external documentation. getRect(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetRect, <>). %% @spec (This::wxSizerItem()) -> {W::integer(), H::integer()} %% @doc See external documentation. getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetSize, <>). %% @spec (This::wxSizerItem()) -> wxSizer:wxSizer() %% @doc See external documentation. getSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetSizer, <>). %% @spec (This::wxSizerItem()) -> {W::integer(), H::integer()} %% @doc See external documentation. getSpacer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetSpacer, <>). %% @spec (This::wxSizerItem()) -> wx:wx() %% @doc See external documentation. getUserData(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetUserData, <>). %% @spec (This::wxSizerItem()) -> wxWindow:wxWindow() %% @doc See external documentation. getWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetWindow, <>). %% @spec (This::wxSizerItem()) -> bool() %% @doc See external documentation. isSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_IsSizer, <>). %% @spec (This::wxSizerItem()) -> bool() %% @doc See external documentation. isShown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_IsShown, <>). %% @spec (This::wxSizerItem()) -> bool() %% @doc See external documentation. isSpacer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_IsSpacer, <>). %% @spec (This::wxSizerItem()) -> bool() %% @doc See external documentation. isWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_IsWindow, <>). %% @spec (This::wxSizerItem(), Border::integer()) -> ok %% @doc See external documentation. setBorder(#wx_ref{type=ThisT,ref=ThisRef},Border) when is_integer(Border) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetBorder, <>). %% @spec (This::wxSizerItem(), Pos::{X::integer(), Y::integer()}, Size::{W::integer(), H::integer()}) -> ok %% @doc See external documentation. setDimension(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY},{SizeW,SizeH}) when is_integer(PosX),is_integer(PosY),is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetDimension, <>). %% @spec (This::wxSizerItem(), Flag::integer()) -> ok %% @doc See external documentation. setFlag(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_integer(Flag) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetFlag, <>). %% @spec (This::wxSizerItem(), X::integer(), Y::integer()) -> ok %% @doc See external documentation. setInitSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetInitSize, <>). %% @spec (This::wxSizerItem(), 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,wxSizerItem), wxe_util:cast(?wxSizerItem_SetMinSize_1, <>). %% @spec (This::wxSizerItem(), X::integer(), Y::integer()) -> ok %% @doc See external documentation. setMinSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetMinSize_2, <>). %% @spec (This::wxSizerItem(), Proportion::integer()) -> ok %% @doc See external documentation. setProportion(#wx_ref{type=ThisT,ref=ThisRef},Proportion) when is_integer(Proportion) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetProportion, <>). %% @spec (This::wxSizerItem(),X::float()|term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% setRatio(This::wxSizerItem(), Ratio::float()) -> ok %%

%%

%% setRatio(This::wxSizerItem(), Size::{W::integer(), H::integer()}) -> ok %%

setRatio(#wx_ref{type=ThisT,ref=ThisRef},Ratio) when is_float(Ratio) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetRatio_1_0, <>); setRatio(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetRatio_1_1, <>). %% @spec (This::wxSizerItem(), Width::integer(), Height::integer()) -> ok %% @doc See external documentation. setRatio(#wx_ref{type=ThisT,ref=ThisRef},Width,Height) when is_integer(Width),is_integer(Height) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetRatio_2, <>). %% @spec (This::wxSizerItem(), Sizer::wxSizer:wxSizer()) -> ok %% @doc See external documentation. setSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) -> ?CLASS(ThisT,wxSizerItem), ?CLASS(SizerT,wxSizer), wxe_util:cast(?wxSizerItem_SetSizer, <>). %% @spec (This::wxSizerItem(), Size::{W::integer(), H::integer()}) -> ok %% @doc See external documentation. setSpacer(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetSpacer_1, <>). %% @spec (This::wxSizerItem(), Width::integer(), Height::integer()) -> ok %% @doc See external documentation. setSpacer(#wx_ref{type=ThisT,ref=ThisRef},Width,Height) when is_integer(Width),is_integer(Height) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetSpacer_2, <>). %% @spec (This::wxSizerItem(), Window::wxWindow:wxWindow()) -> ok %% @doc See external documentation. setWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSizerItem), ?CLASS(WindowT,wxWindow), wxe_util:cast(?wxSizerItem_SetWindow, <>). %% @spec (This::wxSizerItem(), Show::bool()) -> ok %% @doc See external documentation. show(#wx_ref{type=ThisT,ref=ThisRef},Show) when is_boolean(Show) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_Show, <>). %% @spec (This::wxSizerItem()) -> ok %% @doc Destroys this object, do not use object again destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxSizerItem), wxe_util:destroy(?DESTROY_OBJECT,Obj), ok.