diff options
author | Dan Gudmundsson <[email protected]> | 2016-08-19 10:13:11 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-08-19 10:13:11 +0200 |
commit | 2bb55f7bb6c8aa534d84087da18736e431bb482b (patch) | |
tree | d70d197a4cf60d1b96b353b44a051090e685589c /lib/wx/api_gen/wx_extra/wxXmlResource.erl | |
parent | 08cece25cf519d35b97b5cf38619a51c53416129 (diff) | |
parent | 2757590a9d7e092dcbaf15c15354f7ccd0154219 (diff) | |
download | otp-2bb55f7bb6c8aa534d84087da18736e431bb482b.tar.gz otp-2bb55f7bb6c8aa534d84087da18736e431bb482b.tar.bz2 otp-2bb55f7bb6c8aa534d84087da18736e431bb482b.zip |
Merge branch 'maint'
* maint:
wx: Add missing specs
Diffstat (limited to 'lib/wx/api_gen/wx_extra/wxXmlResource.erl')
-rw-r--r-- | lib/wx/api_gen/wx_extra/wxXmlResource.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/wx/api_gen/wx_extra/wxXmlResource.erl b/lib/wx/api_gen/wx_extra/wxXmlResource.erl index 7700e2333e..b29ffba7c6 100644 --- a/lib/wx/api_gen/wx_extra/wxXmlResource.erl +++ b/lib/wx/api_gen/wx_extra/wxXmlResource.erl @@ -21,8 +21,6 @@ <<EXPORT:xrcctrl xrcctrl/3 xrcctrl:EXPORT>> <<xrcctrl -%% @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>. @@ -32,6 +30,10 @@ %% 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 ~s |