aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src/gen/wxXmlResource.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-08-19 10:12:18 +0200
committerDan Gudmundsson <[email protected]>2016-08-19 10:12:18 +0200
commit2757590a9d7e092dcbaf15c15354f7ccd0154219 (patch)
tree660cc9197bfeab43c696282ce3ab2da25e24cb1a /lib/wx/src/gen/wxXmlResource.erl
parentb55872ff87a46d7f8eb3d8142731b196df20e500 (diff)
parent6b495675c81a7517c0d84e21bc573ba3a1df1a7d (diff)
downloadotp-2757590a9d7e092dcbaf15c15354f7ccd0154219.tar.gz
otp-2757590a9d7e092dcbaf15c15354f7ccd0154219.tar.bz2
otp-2757590a9d7e092dcbaf15c15354f7ccd0154219.zip
Merge branch 'dgud/wx/broken-links' into maint
* dgud/wx/broken-links: wx: Add missing specs
Diffstat (limited to 'lib/wx/src/gen/wxXmlResource.erl')
-rw-r--r--lib/wx/src/gen/wxXmlResource.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/wx/src/gen/wxXmlResource.erl b/lib/wx/src/gen/wxXmlResource.erl
index ae02c74751..aa65b8b04e 100644
--- a/lib/wx/src/gen/wxXmlResource.erl
+++ b/lib/wx/src/gen/wxXmlResource.erl
@@ -334,8 +334,6 @@ unload(#wx_ref{type=ThisT,ref=ThisRef},Filename)
<<ThisRef:32/?UI,(byte_size(Filename_UC)):32/?UI,(Filename_UC)/binary, 0:(((8- ((0+byte_size(Filename_UC)) band 16#7)) band 16#7))/unit:8>>).
-%% @spec (Window::wxWindow:wxWindow(),Name::string(), Type::atom()) -> wx:wxObject()
-
%% @doc Looks up a control with Name in a window created with XML
%% resources. You can use it to set/get values from controls.
%% The object is type casted to <b>Type</b>.
@@ -345,6 +343,10 @@ unload(#wx_ref{type=ThisT,ref=ThisRef},Filename)
%% true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "controls_dialog"), <br />
%% LCtrl = xrcctrl(Dlg, "controls_listctrl", wxListCtrl), <br />
%% wxListCtrl:insertColumn(LCtrl, 0, "Name", [{width, 200}]), <br />
+-spec xrcctrl(Window, Name, Type) -> wx:wx_object() when
+ Window::wxWindow:wxWindow(),
+ Name::string(),
+ Type::atom().
xrcctrl(Window = #wx_ref{}, Name, Type) when is_list(Name), is_atom(Type) ->
%% Func Id ?wxXmlResource_xrcctrl