From a181c06152a3c935fdf63659322020fb7625b577 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 16 Feb 2012 11:04:18 +0100 Subject: [wx] Generated types for all wx classes --- lib/wx/src/gen/wxMDIParentFrame.erl | 60 ++++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 20 deletions(-) (limited to 'lib/wx/src/gen/wxMDIParentFrame.erl') diff --git a/lib/wx/src/gen/wxMDIParentFrame.erl b/lib/wx/src/gen/wxMDIParentFrame.erl index 7f8a305876..545d52c3cd 100644 --- a/lib/wx/src/gen/wxMDIParentFrame.erl +++ b/lib/wx/src/gen/wxMDIParentFrame.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 @@ -82,6 +82,7 @@ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2, validate/1,warpPointer/3]). +-export_type([wxMDIParentFrame/0]). %% @hidden parent_class(wxFrame) -> true; parent_class(wxTopLevelWindow) -> true; @@ -89,21 +90,27 @@ parent_class(wxWindow) -> true; parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxMDIParentFrame() +-type wxMDIParentFrame() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxMDIParentFrame(). new() -> wxe_util:construct(?wxMDIParentFrame_new_0, <<>>). -%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> wxMDIParentFrame() %% @equiv new(Parent,Id,Title, []) +-spec new(Parent, Id, Title) -> wxMDIParentFrame() when + Parent::wxWindow:wxWindow(), Id::integer(), Title::string(). + new(Parent,Id,Title) when is_record(Parent, wx_ref),is_integer(Id),is_list(Title) -> new(Parent,Id,Title, []). -%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> wxMDIParentFrame() -%% Option = {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See external documentation. +-spec new(Parent, Id, Title, [Option]) -> wxMDIParentFrame() when + Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), + Option :: {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()}. new(#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options) when is_integer(Id),is_list(Title),is_list(Options) -> ?CLASS(ParentT,wxWindow), @@ -116,43 +123,52 @@ new(#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options) wxe_util:construct(?wxMDIParentFrame_new_4, <>). -%% @spec (This::wxMDIParentFrame()) -> ok %% @doc See external documentation. +-spec activateNext(This) -> ok when + This::wxMDIParentFrame(). activateNext(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxMDIParentFrame), wxe_util:cast(?wxMDIParentFrame_ActivateNext, <>). -%% @spec (This::wxMDIParentFrame()) -> ok %% @doc See external documentation. +-spec activatePrevious(This) -> ok when + This::wxMDIParentFrame(). activatePrevious(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxMDIParentFrame), wxe_util:cast(?wxMDIParentFrame_ActivatePrevious, <>). -%% @spec (This::wxMDIParentFrame()) -> ok %% @doc See external documentation. +-spec arrangeIcons(This) -> ok when + This::wxMDIParentFrame(). arrangeIcons(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxMDIParentFrame), wxe_util:cast(?wxMDIParentFrame_ArrangeIcons, <>). -%% @spec (This::wxMDIParentFrame()) -> ok %% @doc See external documentation. +-spec cascade(This) -> ok when + This::wxMDIParentFrame(). cascade(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxMDIParentFrame), wxe_util:cast(?wxMDIParentFrame_Cascade, <>). -%% @spec (This::wxMDIParentFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string()) -> bool() %% @equiv create(This,Parent,Id,Title, []) +-spec create(This, Parent, Id, Title) -> boolean() when + This::wxMDIParentFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(). + create(This,Parent,Id,Title) when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_list(Title) -> create(This,Parent,Id,Title, []). -%% @spec (This::wxMDIParentFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), [Option]) -> bool() -%% Option = {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See external documentation. +-spec create(This, Parent, Id, Title, [Option]) -> boolean() when + This::wxMDIParentFrame(), Parent::wxWindow:wxWindow(), Id::integer(), Title::string(), + Option :: {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()}. create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Title, Options) when is_integer(Id),is_list(Title),is_list(Options) -> ?CLASS(ThisT,wxMDIParentFrame), @@ -166,31 +182,35 @@ create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,Ti wxe_util:call(?wxMDIParentFrame_Create, <>). -%% @spec (This::wxMDIParentFrame()) -> wxMDIChildFrame:wxMDIChildFrame() %% @doc See external documentation. +-spec getActiveChild(This) -> wxMDIChildFrame:wxMDIChildFrame() when + This::wxMDIParentFrame(). getActiveChild(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxMDIParentFrame), wxe_util:call(?wxMDIParentFrame_GetActiveChild, <>). -%% @spec (This::wxMDIParentFrame()) -> wxMDIClientWindow:wxMDIClientWindow() %% @doc See external documentation. +-spec getClientWindow(This) -> wxMDIClientWindow:wxMDIClientWindow() when + This::wxMDIParentFrame(). getClientWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxMDIParentFrame), wxe_util:call(?wxMDIParentFrame_GetClientWindow, <>). -%% @spec (This::wxMDIParentFrame()) -> ok %% @equiv tile(This, []) +-spec tile(This) -> ok when + This::wxMDIParentFrame(). + tile(This) when is_record(This, wx_ref) -> tile(This, []). -%% @spec (This::wxMDIParentFrame(), [Option]) -> ok -%% Option = {orient, WxOrientation} -%% WxOrientation = integer() %% @doc See external documentation. -%%
WxOrientation is one of ?wxHORIZONTAL | ?wxVERTICAL | ?wxBOTH +%%
Orient = ?wxHORIZONTAL | ?wxVERTICAL | ?wxBOTH +-spec tile(This, [Option]) -> ok when + This::wxMDIParentFrame(), + Option :: {orient, wx:wx_enum()}. tile(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxMDIParentFrame), @@ -200,8 +220,8 @@ tile(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxMDIParentFrame_Tile, <>). -%% @spec (This::wxMDIParentFrame()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxMDIParentFrame) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxMDIParentFrame), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3