diff options
author | Dan Gudmundsson <[email protected]> | 2012-02-28 12:21:15 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2012-02-28 12:21:15 +0100 |
commit | 77426493dc04593cc00c166e6fb17dd5fc985255 (patch) | |
tree | 868060b6e16d4e9f6a347202ac1ba9c78761f404 /lib/wx/src/gen/wxSizerItem.erl | |
parent | 6510ee4abddbecf10b41d0474a35af1e780ea5be (diff) | |
parent | 6628dbe4ba097a5abed4ca7439a5b515adb0f556 (diff) | |
download | otp-77426493dc04593cc00c166e6fb17dd5fc985255.tar.gz otp-77426493dc04593cc00c166e6fb17dd5fc985255.tar.bz2 otp-77426493dc04593cc00c166e6fb17dd5fc985255.zip |
Merge branch 'dgud/wx/misc-improvements/OTP-9947' into maint
* dgud/wx/misc-improvements/OTP-9947:
[wx] Add simple taskbaricon test
[wx] Add missing stc function
[wx] Add wxTaskBarIcon class
[wx] Doc overloaded functions
[wx] Fix spec errors
[wx] Fix api bugs in wxDC
[wx] Fix wxGraphicContext bugs
[wx] Remove redundant erts version check
[wx] Generated types for all wx classes
[wx] Generate GL api from latest version
[wx] Cleanup Makefiles
Diffstat (limited to 'lib/wx/src/gen/wxSizerItem.erl')
-rw-r--r-- | lib/wx/src/gen/wxSizerItem.erl | 134 |
1 files changed, 86 insertions, 48 deletions
diff --git a/lib/wx/src/gen/wxSizerItem.erl b/lib/wx/src/gen/wxSizerItem.erl index 41cb86eae2..22533500da 100644 --- a/lib/wx/src/gen/wxSizerItem.erl +++ b/lib/wx/src/gen/wxSizerItem.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2011. All Rights Reserved. +%% Copyright Ericsson AB 2008-2012. 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 @@ -35,17 +35,20 @@ %% inherited exports -export([parent_class/1]). +-export_type([wxSizerItem/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxSizerItem() +-type wxSizerItem() :: wx:wx_object(). %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>. +-spec new() -> wxSizerItem(). new() -> wxe_util:construct(?wxSizerItem_new_0, <<>>). -%% @spec (Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>. +-spec new(Window, Flags) -> wxSizerItem() when + Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Flags::wxSizerFlags:wxSizerFlags(). new(#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) -> WindowOP = case ?CLASS_T(WindowT,wxWindow) of true -> @@ -58,16 +61,18 @@ new(#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=FlagsT,ref=FlagsRef}) -> wxe_util:construct(WindowOP, <<WindowRef:32/?UI,FlagsRef:32/?UI>>). -%% @spec (Width::integer(), Height::integer(), Flags::wxSizerFlags:wxSizerFlags()) -> wxSizerItem() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>. +-spec new(Width, Height, Flags) -> wxSizerItem() when + Width::integer(), Height::integer(), Flags::wxSizerFlags:wxSizerFlags(). 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, <<Width:32/?UI,Height:32/?UI,FlagsRef:32/?UI>>). -%% @spec (Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx()) -> wxSizerItem() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>. +-spec new(Window, Proportion, Flag, Border, UserData) -> wxSizerItem() when + Window::wxWindow:wxWindow() | wxSizer:wxSizer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx(). 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 @@ -81,214 +86,241 @@ new(#wx_ref{type=WindowT,ref=WindowRef},Proportion,Flag,Border,#wx_ref{type=User wxe_util:construct(WindowOP, <<WindowRef:32/?UI,Proportion:32/?UI,Flag:32/?UI,Border:32/?UI,UserDataRef:32/?UI>>). -%% @spec (Width::integer(), Height::integer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx()) -> wxSizerItem() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemwxsizeritem">external documentation</a>. +-spec new(Width, Height, Proportion, Flag, Border, UserData) -> wxSizerItem() when + Width::integer(), Height::integer(), Proportion::integer(), Flag::integer(), Border::integer(), UserData::wx:wx(). 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, <<Width:32/?UI,Height:32/?UI,Proportion:32/?UI,Flag:32/?UI,Border:32/?UI,UserDataRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> {W::integer(), H::integer()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemcalcmin">external documentation</a>. +-spec calcMin(This) -> {W::integer(), H::integer()} when + This::wxSizerItem(). calcMin(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_CalcMin, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemdeletewindows">external documentation</a>. +-spec deleteWindows(This) -> ok when + This::wxSizerItem(). deleteWindows(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_DeleteWindows, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemdetachsizer">external documentation</a>. +-spec detachSizer(This) -> ok when + This::wxSizerItem(). detachSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_DetachSizer, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetborder">external documentation</a>. +-spec getBorder(This) -> integer() when + This::wxSizerItem(). getBorder(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetBorder, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetflag">external documentation</a>. +-spec getFlag(This) -> integer() when + This::wxSizerItem(). getFlag(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetFlag, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> {W::integer(), H::integer()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetminsize">external documentation</a>. +-spec getMinSize(This) -> {W::integer(), H::integer()} when + This::wxSizerItem(). getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetMinSize, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> {X::integer(), Y::integer()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetposition">external documentation</a>. +-spec getPosition(This) -> {X::integer(), Y::integer()} when + This::wxSizerItem(). getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetPosition, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetproportion">external documentation</a>. +-spec getProportion(This) -> integer() when + This::wxSizerItem(). getProportion(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetProportion, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> float() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetratio">external documentation</a>. +-spec getRatio(This) -> number() when + This::wxSizerItem(). getRatio(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetRatio, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> {X::integer(), Y::integer(), W::integer(), H::integer()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetrect">external documentation</a>. +-spec getRect(This) -> {X::integer(), Y::integer(), W::integer(), H::integer()} when + This::wxSizerItem(). getRect(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetRect, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> {W::integer(), H::integer()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetsize">external documentation</a>. +-spec getSize(This) -> {W::integer(), H::integer()} when + This::wxSizerItem(). getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetSize, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> wxSizer:wxSizer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetsizer">external documentation</a>. +-spec getSizer(This) -> wxSizer:wxSizer() when + This::wxSizerItem(). getSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetSizer, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> {W::integer(), H::integer()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetspacer">external documentation</a>. +-spec getSpacer(This) -> {W::integer(), H::integer()} when + This::wxSizerItem(). getSpacer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetSpacer, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> wx:wx() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetuserdata">external documentation</a>. +-spec getUserData(This) -> wx:wx() when + This::wxSizerItem(). getUserData(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetUserData, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> wxWindow:wxWindow() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemgetwindow">external documentation</a>. +-spec getWindow(This) -> wxWindow:wxWindow() when + This::wxSizerItem(). getWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_GetWindow, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemissizer">external documentation</a>. +-spec isSizer(This) -> boolean() when + This::wxSizerItem(). isSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_IsSizer, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemisshown">external documentation</a>. +-spec isShown(This) -> boolean() when + This::wxSizerItem(). isShown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_IsShown, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemisspacer">external documentation</a>. +-spec isSpacer(This) -> boolean() when + This::wxSizerItem(). isSpacer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_IsSpacer, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem()) -> bool() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemiswindow">external documentation</a>. +-spec isWindow(This) -> boolean() when + This::wxSizerItem(). isWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSizerItem), wxe_util:call(?wxSizerItem_IsWindow, <<ThisRef:32/?UI>>). -%% @spec (This::wxSizerItem(), Border::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetborder">external documentation</a>. +-spec setBorder(This, Border) -> ok when + This::wxSizerItem(), Border::integer(). setBorder(#wx_ref{type=ThisT,ref=ThisRef},Border) when is_integer(Border) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetBorder, <<ThisRef:32/?UI,Border:32/?UI>>). -%% @spec (This::wxSizerItem(), Pos::{X::integer(), Y::integer()}, Size::{W::integer(), H::integer()}) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetdimension">external documentation</a>. +-spec setDimension(This, Pos, Size) -> ok when + This::wxSizerItem(), Pos::{X::integer(), Y::integer()}, Size::{W::integer(), H::integer()}. 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, <<ThisRef:32/?UI,PosX:32/?UI,PosY:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>). -%% @spec (This::wxSizerItem(), Flag::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetflag">external documentation</a>. +-spec setFlag(This, Flag) -> ok when + This::wxSizerItem(), Flag::integer(). setFlag(#wx_ref{type=ThisT,ref=ThisRef},Flag) when is_integer(Flag) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetFlag, <<ThisRef:32/?UI,Flag:32/?UI>>). -%% @spec (This::wxSizerItem(), X::integer(), Y::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetinitsize">external documentation</a>. +-spec setInitSize(This, X, Y) -> ok when + This::wxSizerItem(), X::integer(), Y::integer(). setInitSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetInitSize, <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>). -%% @spec (This::wxSizerItem(), Size::{W::integer(), H::integer()}) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetminsize">external documentation</a>. +-spec setMinSize(This, Size) -> ok when + This::wxSizerItem(), Size::{W::integer(), H::integer()}. 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, <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>). -%% @spec (This::wxSizerItem(), X::integer(), Y::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetminsize">external documentation</a>. +-spec setMinSize(This, X, Y) -> ok when + This::wxSizerItem(), X::integer(), Y::integer(). 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, <<ThisRef:32/?UI,X:32/?UI,Y:32/?UI>>). -%% @spec (This::wxSizerItem(), Proportion::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetproportion">external documentation</a>. +-spec setProportion(This, Proportion) -> ok when + This::wxSizerItem(), Proportion::integer(). setProportion(#wx_ref{type=ThisT,ref=ThisRef},Proportion) when is_integer(Proportion) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetProportion, <<ThisRef:32/?UI,Proportion:32/?UI>>). -%% @spec (This::wxSizerItem(),X::float()|term()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetratio">external documentation</a>. -%% <br /> Alternatives: -%% <p><c> -%% setRatio(This::wxSizerItem(), Ratio::float()) -> ok </c> -%% </p> -%% <p><c> -%% setRatio(This::wxSizerItem(), Size::{W::integer(), H::integer()}) -> ok </c> -%% </p> +%% <br /> Also:<br /> +%% setRatio(This, Size) -> ok when<br /> +%% This::wxSizerItem(), Size::{W::integer(), H::integer()}.<br /> +%% +-spec setRatio(This, Ratio) -> ok when + This::wxSizerItem(), Ratio::number(); + (This, Size) -> ok when + This::wxSizerItem(), Size::{W::integer(), H::integer()}. setRatio(#wx_ref{type=ThisT,ref=ThisRef},Ratio) - when is_float(Ratio) -> + when is_number(Ratio) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_SetRatio_1_0, <<ThisRef:32/?UI,Ratio:32/?F>>); @@ -298,56 +330,62 @@ setRatio(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) wxe_util:cast(?wxSizerItem_SetRatio_1_1, <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>). -%% @spec (This::wxSizerItem(), Width::integer(), Height::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetratio">external documentation</a>. +-spec setRatio(This, Width, Height) -> ok when + This::wxSizerItem(), Width::integer(), Height::integer(). 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, <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI>>). -%% @spec (This::wxSizerItem(), Sizer::wxSizer:wxSizer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetsizer">external documentation</a>. +-spec setSizer(This, Sizer) -> ok when + This::wxSizerItem(), Sizer::wxSizer:wxSizer(). setSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) -> ?CLASS(ThisT,wxSizerItem), ?CLASS(SizerT,wxSizer), wxe_util:cast(?wxSizerItem_SetSizer, <<ThisRef:32/?UI,SizerRef:32/?UI>>). -%% @spec (This::wxSizerItem(), Size::{W::integer(), H::integer()}) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetspacer">external documentation</a>. +-spec setSpacer(This, Size) -> ok when + This::wxSizerItem(), Size::{W::integer(), H::integer()}. 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, <<ThisRef:32/?UI,SizeW:32/?UI,SizeH:32/?UI>>). -%% @spec (This::wxSizerItem(), Width::integer(), Height::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetspacer">external documentation</a>. +-spec setSpacer(This, Width, Height) -> ok when + This::wxSizerItem(), Width::integer(), Height::integer(). 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, <<ThisRef:32/?UI,Width:32/?UI,Height:32/?UI>>). -%% @spec (This::wxSizerItem(), Window::wxWindow:wxWindow()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemsetwindow">external documentation</a>. +-spec setWindow(This, Window) -> ok when + This::wxSizerItem(), Window::wxWindow:wxWindow(). setWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSizerItem), ?CLASS(WindowT,wxWindow), wxe_util:cast(?wxSizerItem_SetWindow, <<ThisRef:32/?UI,WindowRef:32/?UI>>). -%% @spec (This::wxSizerItem(), Show::bool()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsizeritem.html#wxsizeritemshow">external documentation</a>. +-spec show(This, Show) -> ok when + This::wxSizerItem(), Show::boolean(). show(#wx_ref{type=ThisT,ref=ThisRef},Show) when is_boolean(Show) -> ?CLASS(ThisT,wxSizerItem), wxe_util:cast(?wxSizerItem_Show, <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>). -%% @spec (This::wxSizerItem()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxSizerItem()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxSizerItem), wxe_util:destroy(?DESTROY_OBJECT,Obj), |